From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 331/CH3/EX3.10/Example_3_10.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 331/CH3/EX3.10/Example_3_10.sce (limited to '331/CH3/EX3.10/Example_3_10.sce') diff --git a/331/CH3/EX3.10/Example_3_10.sce b/331/CH3/EX3.10/Example_3_10.sce new file mode 100755 index 000000000..6049dc109 --- /dev/null +++ b/331/CH3/EX3.10/Example_3_10.sce @@ -0,0 +1,23 @@ +//Caption: Mode of grouped data +//Example3.10 +//Page47 +clear; +clc; +X = [0,2;2,4;4,6;6,8;8,10;10,12;12,14;14,16;16,18]; +f = [10,15,20,30,8,5,4,3,5]; +[Maxf,i]= max(f); +L = X(i,1); //Lower Limit of the Modal class +C = diff(X(i,:)); //Width of the class interval +f1 = abs(f(i)-f(i-1));//Absolute difference between freq. of the modal class and +//that of its immediately preceding class +f2 = abs(f(i)-f(i+1));//Absolute difference beween freq. of the modal class and +//that of its immediately succeeding class +Mode = L+((f1/(f1+f2))*C); +disp(Mode,'Mode of the annual revenues of the firms is =') +disp('crores') +//Result +//Mode of the annual revenues of the firms is = +// +// 6.625 +// +// crores \ No newline at end of file -- cgit