diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1475/CH1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1475/CH1')
99 files changed, 473 insertions, 0 deletions
diff --git a/1475/CH1/EX1.11/Example_1_11.sce b/1475/CH1/EX1.11/Example_1_11.sce new file mode 100755 index 000000000..82240afca --- /dev/null +++ b/1475/CH1/EX1.11/Example_1_11.sce @@ -0,0 +1,16 @@ +// Scilab Code Example 1.11 Probability of obtaining both heads, one head and one tail, both tail, at least one head
+N=4;
+disp(N,"Total No. of possible outcomes (N)=");
+M1=1;
+disp(M1,"No. of Favorable cases(both head)=");
+M2=2;
+disp(M2,"No. of Favorable cases(one head & one tail)=");
+M3=1;
+disp(M3,"No. of Favorable cases(both tails)=");
+M4=3;
+disp(M4,"No. of Favorable cases(At least one head)=");
+P1=M1/N;
+P2=M2/N;
+P3=M3/N;
+P4=M4/N;
+disp(P4,"P(atleast one head)= ",P3,"P(Both tails)=",P2,"P(one headand one tail)=",P1,"P(Both head)=");
diff --git a/1475/CH1/EX1.11/Output_1_11.PNG b/1475/CH1/EX1.11/Output_1_11.PNG Binary files differnew file mode 100755 index 000000000..f59be5a68 --- /dev/null +++ b/1475/CH1/EX1.11/Output_1_11.PNG diff --git a/1475/CH1/EX1.12/Example_1_12.sce b/1475/CH1/EX1.12/Example_1_12.sce new file mode 100755 index 000000000..fb66e7a81 --- /dev/null +++ b/1475/CH1/EX1.12/Example_1_12.sce @@ -0,0 +1,16 @@ +//Example 1.12
+N= 6;
+disp(N,"total No. of possible outcomes (N)=");
+M1= 3;
+disp(M1,"No. of Favorable cases(an even number)=");
+M2= 3;
+disp(M2,"No. of Favorable cases(an odd number)=");
+M3= 2;
+disp(M3,"No. of Favorable cases(less than 3)= ");
+M4= 1;
+disp(M4,"No. of Favorable cases(a Six)=");
+P1=M1/N;
+P2=M2/N;
+P3=M3/N;
+P4=M4/N;
+disp(P4,"Probab. of (a Six)= ",P3,"Probab. of (less than 3)=",P2,"Probab. of (an odd number)=",P1,"Probab. of (an even number)=");
diff --git a/1475/CH1/EX1.12/Output_1_12.PNG b/1475/CH1/EX1.12/Output_1_12.PNG Binary files differnew file mode 100755 index 000000000..03acbe66a --- /dev/null +++ b/1475/CH1/EX1.12/Output_1_12.PNG diff --git a/1475/CH1/EX1.13/Example_1_13.sce b/1475/CH1/EX1.13/Example_1_13.sce new file mode 100755 index 000000000..9b74935f6 --- /dev/null +++ b/1475/CH1/EX1.13/Example_1_13.sce @@ -0,0 +1,11 @@ +//Example 1.13
+N=4;
+disp(N,"total No. of possible outcomes (N)=");
+M1=0;
+disp(M1,"No. of Favorable cases(3 heads)=");
+M2=4
+disp(M2,"No. of Favorable cases(not more than 3 heads)=");
+P1=M1/N;
+P2=M2/N;
+disp(P2,"Probab. of (not more than 3 heads)=",P1,"Probab. of (3 heads)=");
+
diff --git a/1475/CH1/EX1.13/Output_1_13.PNG b/1475/CH1/EX1.13/Output_1_13.PNG Binary files differnew file mode 100755 index 000000000..93940c3e1 --- /dev/null +++ b/1475/CH1/EX1.13/Output_1_13.PNG diff --git a/1475/CH1/EX1.14/Example_1_14.sce b/1475/CH1/EX1.14/Example_1_14.sce new file mode 100755 index 000000000..3a472d26e --- /dev/null +++ b/1475/CH1/EX1.14/Example_1_14.sce @@ -0,0 +1,8 @@ +//Example 1.14
+N=4;
+disp(N,"total No. of possible outcomes (N)=");
+M=2;
+disp(M,"No. of Favorable cases(both heads or both tails)=");
+P1=M/N;
+disp(P1,"Probab. of (both heads or both tails)=");
+
diff --git a/1475/CH1/EX1.14/Output_1_14.PNG b/1475/CH1/EX1.14/Output_1_14.PNG Binary files differnew file mode 100755 index 000000000..26134f93a --- /dev/null +++ b/1475/CH1/EX1.14/Output_1_14.PNG diff --git a/1475/CH1/EX1.15/Example_1_15.sce b/1475/CH1/EX1.15/Example_1_15.sce new file mode 100755 index 000000000..85a77a687 --- /dev/null +++ b/1475/CH1/EX1.15/Example_1_15.sce @@ -0,0 +1,12 @@ +//Example 1.15
+clc;
+clear;
+disp("Possible outcomes...(1,1),(1,2)......(6,5),(6,6)");
+N=36;
+disp(N,"total No. of possible outcomes (N) =");
+disp("Favourable outcomes....(2,6),(3,4),(4,3),(6,2)");
+M=4
+disp(M,"No. of Favorable cases of (dice points product is 12)=");
+P=M/N;
+disp(P,"Probability of (dice points product is 12)=");
+
diff --git a/1475/CH1/EX1.15/Output_1_15.PNG b/1475/CH1/EX1.15/Output_1_15.PNG Binary files differnew file mode 100755 index 000000000..3947cb79f --- /dev/null +++ b/1475/CH1/EX1.15/Output_1_15.PNG diff --git a/1475/CH1/EX1.16/Example_1_16.sce b/1475/CH1/EX1.16/Example_1_16.sce new file mode 100755 index 000000000..d7c6b71b3 --- /dev/null +++ b/1475/CH1/EX1.16/Example_1_16.sce @@ -0,0 +1,12 @@ +//Example 1.16
+clc;
+clear;
+N=10;
+disp(N,"total No. of Balls (white+Black) (N)=");
+M1=6;
+disp(M1,"No. of (White Balls)= ");
+M2=4;
+disp(M2,"No. of (Black Balls)= ");
+P1=M1/N;
+disp(P1,"Probability of white ball to be drawn is=");
+
diff --git a/1475/CH1/EX1.16/Output_1_16.PNG b/1475/CH1/EX1.16/Output_1_16.PNG Binary files differnew file mode 100755 index 000000000..b86d30592 --- /dev/null +++ b/1475/CH1/EX1.16/Output_1_16.PNG diff --git a/1475/CH1/EX1.17/Example_1_17.sce b/1475/CH1/EX1.17/Example_1_17.sce new file mode 100755 index 000000000..99c88247f --- /dev/null +++ b/1475/CH1/EX1.17/Example_1_17.sce @@ -0,0 +1,13 @@ +//Example 1.17
+clc;
+clear;
+N=56;
+disp(N,"total No. of ways of seleting 2 balls(out of 8) one by one =");
+M1=15;
+disp(M1,"the 1st ball is white and the 2nd is black= ");
+M2=30;
+disp(M2,"one ball is white and the other is black");
+P1=M1/N;
+P2=M2/N;
+disp(P2,"Probability that one ball is white and the other is black",P1,"Probability that 1st ball is white and the 2nd is black=");
+
diff --git a/1475/CH1/EX1.17/Output_1_17.PNG b/1475/CH1/EX1.17/Output_1_17.PNG Binary files differnew file mode 100755 index 000000000..7a306b0b6 --- /dev/null +++ b/1475/CH1/EX1.17/Output_1_17.PNG diff --git a/1475/CH1/EX1.18/Example_1_18.sce b/1475/CH1/EX1.18/Example_1_18.sce new file mode 100755 index 000000000..b5de26ede --- /dev/null +++ b/1475/CH1/EX1.18/Example_1_18.sce @@ -0,0 +1,13 @@ +//Example 1.18
+clc;
+clear;
+N=1326;
+disp(N,"total No. of ways of seleting 2 cards(out of 52) one by one =");
+M1=325;
+disp(M1,"both are red cards= ");
+M2=169;
+disp(M2,"one is heart and the other is a diamod=");
+P1=M1/N;
+P2=M2/N;
+disp(P2,"Probability that one is heart and the other is a diamod= ",P1,"Probability that both are red cards=");
+
diff --git a/1475/CH1/EX1.18/Output_1_18.PNG b/1475/CH1/EX1.18/Output_1_18.PNG Binary files differnew file mode 100755 index 000000000..23a4802d2 --- /dev/null +++ b/1475/CH1/EX1.18/Output_1_18.PNG diff --git a/1475/CH1/EX1.19/Example_1_19.sce b/1475/CH1/EX1.19/Example_1_19.sce new file mode 100755 index 000000000..0b7c388e3 --- /dev/null +++ b/1475/CH1/EX1.19/Example_1_19.sce @@ -0,0 +1,11 @@ +//Example 1.19
+clc;
+clear;
+N=(365*365*365);
+//Assume 1 year = 365 days
+disp(N,"total No. of possible ways in which the 3 children have birthdays is =");
+M=(365*364*363);
+disp(M,"No. of favourable cases such that 3 children in a family have different birthdays= ");
+P=M/N;
+disp(,P,"Probability that 3 children in a family have different birthdays=");
+
diff --git a/1475/CH1/EX1.19/Output_1_19.PNG b/1475/CH1/EX1.19/Output_1_19.PNG Binary files differnew file mode 100755 index 000000000..770b15038 --- /dev/null +++ b/1475/CH1/EX1.19/Output_1_19.PNG diff --git a/1475/CH1/EX1.20/Example_1_20.sce b/1475/CH1/EX1.20/Example_1_20.sce new file mode 100755 index 000000000..c18f4e604 --- /dev/null +++ b/1475/CH1/EX1.20/Example_1_20.sce @@ -0,0 +1,10 @@ +//Example 1.20
+clc;
+clear;
+N=factorial(5);
+disp(N,"total No. of ways in which 5 Persons can occupy seats in row =");
+M=factorial(4)*2;
+disp(M,"No. of favourable cases such that A and B can sit next to each other= ");
+P=M/N;
+disp(,P,"Probability that A and B can sit next to each other= ");
+
diff --git a/1475/CH1/EX1.20/Output_1_20.PNG b/1475/CH1/EX1.20/Output_1_20.PNG Binary files differnew file mode 100755 index 000000000..10771e05c --- /dev/null +++ b/1475/CH1/EX1.20/Output_1_20.PNG diff --git a/1475/CH1/EX1.21/Example_1_21.sce b/1475/CH1/EX1.21/Example_1_21.sce new file mode 100755 index 000000000..e0e1c39e7 --- /dev/null +++ b/1475/CH1/EX1.21/Example_1_21.sce @@ -0,0 +1,9 @@ +//Example 1.21 A batch contains 10 articles of which 4 are defective .
+clc;
+clear;
+N=120;
+disp(N,"total no. of ways in which 3 articles are selected out of 10 =");
+M= 20;
+disp(M,"No. of favourable cases are ");
+P=M/N;
+disp(,P,"Probability that 3 articles are chosen at random and none is defective = ");
diff --git a/1475/CH1/EX1.21/Output_1_21.PNG b/1475/CH1/EX1.21/Output_1_21.PNG Binary files differnew file mode 100755 index 000000000..6b156ff78 --- /dev/null +++ b/1475/CH1/EX1.21/Output_1_21.PNG diff --git a/1475/CH1/EX1.22/Example_1_22.sce b/1475/CH1/EX1.22/Example_1_22.sce new file mode 100755 index 000000000..31799cf7b --- /dev/null +++ b/1475/CH1/EX1.22/Example_1_22.sce @@ -0,0 +1,10 @@ +//Example 1.22 10 distinguishable ball are distributed at random into 4 boxes.
+clc;
+clear;
+N=(4^10);
+disp(N,"total no. of ways in which 4 boxes are selected to distribute 10 balls =");
+M= (factorial(10)/(factorial(2)*factorial(8)))*(3^8);
+// M= 10C2 * 3^8
+disp(M,"No. of favourable cases when a specified box recieve 2 balls out of 10, and remaining 8 balls are distributed are ");
+P=M/N;
+disp(,P,"Probability that a specified box recieves exactly 2 balls = ");
diff --git a/1475/CH1/EX1.22/Output_1_22.PNG b/1475/CH1/EX1.22/Output_1_22.PNG Binary files differnew file mode 100755 index 000000000..c25e24f1a --- /dev/null +++ b/1475/CH1/EX1.22/Output_1_22.PNG diff --git a/1475/CH1/EX1.23/Example_1_23.sce b/1475/CH1/EX1.23/Example_1_23.sce new file mode 100755 index 000000000..f5f8d110d --- /dev/null +++ b/1475/CH1/EX1.23/Example_1_23.sce @@ -0,0 +1,15 @@ +//Example 1.23 If 10 persons are arranged at random
+clear;
+clc;
+N1=factorial(10);
+disp(N1,"total no. of ways in which 10 persons are arranged in a line =");
+M1= factorial(9)* factorial(2);
+disp(M1,"No. of favourable cases such that two persons will be next to each other in a line= ");
+N2= factorial(9);
+disp(N2,"total no. of ways in which 10 persons are arranged in a ring =");
+M2= factorial(8)* factorial(2);
+disp(M2,"No. of favourable cases such that two persons will be next to each other in a ring= ");
+P1=M1/N1;
+P2=M2/N2;
+disp(P2,"Probability that two persons will be next to each other in a ring of 10 persons= ",P1,"Probability that two persons will be next to each other in a line of 10 persons= ");
+
diff --git a/1475/CH1/EX1.23/Output_1_23.PNG b/1475/CH1/EX1.23/Output_1_23.PNG Binary files differnew file mode 100755 index 000000000..5c7585b4f --- /dev/null +++ b/1475/CH1/EX1.23/Output_1_23.PNG diff --git a/1475/CH1/EX1.24/Example_1_24.sce b/1475/CH1/EX1.24/Example_1_24.sce new file mode 100755 index 000000000..4c5b6c71e --- /dev/null +++ b/1475/CH1/EX1.24/Example_1_24.sce @@ -0,0 +1,11 @@ +//Example 1.24 X and Y stand in aline with 10 other people.
+clear;
+clc;
+N=factorial(12);
+disp(N,"total no. of ways in which 12 persons are arranged in a line =");
+M= 8*(2*factorial(10));
+disp(M,"No. of favourable cases such that there are 3 people between X and Y = ");
+// M= (1,5),(2,6),(3,7),(4,8),(5.9),(6,10),(7,11),(8,12)
+P=M/N;
+disp(P,"Probability that there are 3 people between X and Y= ");
+
diff --git a/1475/CH1/EX1.24/Output_1_24.PNG b/1475/CH1/EX1.24/Output_1_24.PNG Binary files differnew file mode 100755 index 000000000..d7d86165d --- /dev/null +++ b/1475/CH1/EX1.24/Output_1_24.PNG diff --git a/1475/CH1/EX1.25/Example_1_25.sce b/1475/CH1/EX1.25/Example_1_25.sce new file mode 100755 index 000000000..d8196245f --- /dev/null +++ b/1475/CH1/EX1.25/Example_1_25.sce @@ -0,0 +1,10 @@ +//Example 1.25 X and Y are seated at random at a round table
+clear;
+clc;
+N=(12*11);
+disp(N,"total no. of ways in X and Y can occupy seats=");
+M= (12*2);
+disp(M,"No. of favourable cases such that there are 3 people between X and Y at a round table = ");
+// M= (1,5),(2,6),(3,7),(4,8),(5.9),(6,10),(7,11),(8,12),(9,1),(10,2),(11,3),(12,4)
+P=M/N;
+disp(P,"Probability that there are 3 people between X and Y at a round table =");
diff --git a/1475/CH1/EX1.25/Output_1_25.PNG b/1475/CH1/EX1.25/Output_1_25.PNG Binary files differnew file mode 100755 index 000000000..7bde7c5f7 --- /dev/null +++ b/1475/CH1/EX1.25/Output_1_25.PNG diff --git a/1475/CH1/EX1.26/Example_1_26.sce b/1475/CH1/EX1.26/Example_1_26.sce new file mode 100755 index 000000000..8202404fc --- /dev/null +++ b/1475/CH1/EX1.26/Example_1_26.sce @@ -0,0 +1,12 @@ +//Example 1.26 A lady declares that by testing a cup of tea with milk
+clc;
+clear;
+N1=(factorial(10)/(factorial(5)*factorial(5)));
+disp(N1,"total no. of ways in which 10 cups of tea are prepared with 5 in one way and 5 in other =");
+M= 1;
+disp(M,"No. of favourable cases are =");
+N2= (2^5);
+disp(N2, "total no. of ways if cups are presented in pair =")
+P1=M/N1;
+P2=M/N2
+disp(P2,"The required Probability is =",P1," The required Probability is = ");
diff --git a/1475/CH1/EX1.26/Output_1_26.PNG b/1475/CH1/EX1.26/Output_1_26.PNG Binary files differnew file mode 100755 index 000000000..6e2317e31 --- /dev/null +++ b/1475/CH1/EX1.26/Output_1_26.PNG diff --git a/1475/CH1/EX1.27/Example_1_27.sce b/1475/CH1/EX1.27/Example_1_27.sce new file mode 100755 index 000000000..22a0d7302 --- /dev/null +++ b/1475/CH1/EX1.27/Example_1_27.sce @@ -0,0 +1,9 @@ +//Example 1.27 A box contains twenty tickets of identical appearance
+clc;
+clear;
+N=(factorial(20)/(factorial(3)*factorial(17)));
+disp(N,"total no. of ways in 3 tickets are chosen at random =");
+M= (18+16+14+12+10+8+6+4+2);
+disp(M,"No. of favourable cases with numbers in arithmetic progression are =");
+P=M/N;
+disp(P," The required Probability is = ");
diff --git a/1475/CH1/EX1.27/Output_1_27.PNG b/1475/CH1/EX1.27/Output_1_27.PNG Binary files differnew file mode 100755 index 000000000..8bd40c58f --- /dev/null +++ b/1475/CH1/EX1.27/Output_1_27.PNG diff --git a/1475/CH1/EX1.28/Example_1_28.sce b/1475/CH1/EX1.28/Example_1_28.sce new file mode 100755 index 000000000..cd33e8d6d --- /dev/null +++ b/1475/CH1/EX1.28/Example_1_28.sce @@ -0,0 +1,12 @@ +//Example 1.28 Four Cards are drawn at random from a full pack.
+clc;
+clear;
+N=(52*51*50*49);
+disp(N,"total no. of ways in which 4 cards are drawn =");
+M1= (52*39*26*13);
+disp(M1,"No. of favourable cases with cards of 4 different suits =");
+P1=M1/N;
+M2=(52*36*22*10);
+P2=M2/N;
+disp(M2,"No of favourable cases with cards of different suits and different denominations =")
+disp(P2,"The required Probability with cards of different suits and different denominations",P1," The required Probability with cards of 4 different suits = ");
diff --git a/1475/CH1/EX1.28/Output_1_28.PNG b/1475/CH1/EX1.28/Output_1_28.PNG Binary files differnew file mode 100755 index 000000000..5060a4249 --- /dev/null +++ b/1475/CH1/EX1.28/Output_1_28.PNG diff --git a/1475/CH1/EX1.31/Example_1_31.sce b/1475/CH1/EX1.31/Example_1_31.sce new file mode 100755 index 000000000..a80767ec4 --- /dev/null +++ b/1475/CH1/EX1.31/Example_1_31.sce @@ -0,0 +1,9 @@ +//Example 1.31 10 dissimilar balls are distributed at random into 4 boxes ar marked A B C D
+clc;
+clear;
+N=4^10;
+disp(N,"total no. of possible ways of distribution =");
+M= (factorial(10)/(factorial(2)*factorial(4)*factorial(4)*factorial(0)));
+disp(M,"No. of favourable cases such that 4 boxes contain respectively 2,4,4,0 balls =");
+P=M/N;
+disp(P," The required Probability is = ");
diff --git a/1475/CH1/EX1.31/Output_1_31.PNG b/1475/CH1/EX1.31/Output_1_31.PNG Binary files differnew file mode 100755 index 000000000..dece47ccf --- /dev/null +++ b/1475/CH1/EX1.31/Output_1_31.PNG diff --git a/1475/CH1/EX1.32/Example_1_32.sce b/1475/CH1/EX1.32/Example_1_32.sce new file mode 100755 index 000000000..7dabec262 --- /dev/null +++ b/1475/CH1/EX1.32/Example_1_32.sce @@ -0,0 +1,9 @@ +//Example 1.32 10 identical balls are distributed at random into 4 boxes ar marked A B C D
+clc;
+clear;
+N=(factorial(13)/(factorial(3)*factorial(10)));
+disp(N,"total no. of possible ways of distribution =");
+M= 1;
+disp(M,"No. of favourable cases such that 4 boxes contain respectively 2,4,4,0 identical balls =");
+P=M/N;
+disp(P," The required Probability is = ");
diff --git a/1475/CH1/EX1.32/Output_1_32.PNG b/1475/CH1/EX1.32/Output_1_32.PNG Binary files differnew file mode 100755 index 000000000..f347991d5 --- /dev/null +++ b/1475/CH1/EX1.32/Output_1_32.PNG diff --git a/1475/CH1/EX1.35/Example_1_35.sce b/1475/CH1/EX1.35/Example_1_35.sce new file mode 100755 index 000000000..6de305923 --- /dev/null +++ b/1475/CH1/EX1.35/Example_1_35.sce @@ -0,0 +1,9 @@ +// Example 1.35 Find the values of following probabilites
+clc;
+clear;
+A= 1/2 ;
+B= 1/3;
+AB= 1/4;
+//disp(AB,"P(AB)=", B, "P(B)=",A,"P(A)=");
+disp((1-A)+B-(B-AB),"P(~A + B)=",1-(A+B-AB),"P(~A~B)",B-AB,"P(~AB)",AB/B,"P(A/B)",A+B-AB,"P(A+B)=",1-A,"P(~A)");
+disp("Events A and B are neither mutually exclusive nor exhaustive nor equally likely nor independent ")
diff --git a/1475/CH1/EX1.35/Output_1_35.PNG b/1475/CH1/EX1.35/Output_1_35.PNG Binary files differnew file mode 100755 index 000000000..a32d36584 --- /dev/null +++ b/1475/CH1/EX1.35/Output_1_35.PNG diff --git a/1475/CH1/EX1.36/Example_1_36.sce b/1475/CH1/EX1.36/Example_1_36.sce new file mode 100755 index 000000000..d37e05a7a --- /dev/null +++ b/1475/CH1/EX1.36/Example_1_36.sce @@ -0,0 +1,9 @@ +// Example 1.36 Are A and B independent
+clc;
+clear;
+A= 3/8 ;
+B= 5/8;// Mistake in book printing In book it is 5/3
+C= 3/4;
+disp(C,"P(A+B)=", B, "P(B)=",A,"P(A)=");
+disp(A*B,"P(A).P(B)",(A+B-C),"P(AB)",(A+B-C)/(B),"P(A/B)",(A+B-C)/(A),"P(B/A)");
+disp("Since P(AB) is not equal to P(A).P(B), so events A and B are not independent");
diff --git a/1475/CH1/EX1.36/Output_1_36.PNG b/1475/CH1/EX1.36/Output_1_36.PNG Binary files differnew file mode 100755 index 000000000..3662835eb --- /dev/null +++ b/1475/CH1/EX1.36/Output_1_36.PNG diff --git a/1475/CH1/EX1.39/Example_1_39.sce b/1475/CH1/EX1.39/Example_1_39.sce new file mode 100755 index 000000000..2c7fa712a --- /dev/null +++ b/1475/CH1/EX1.39/Example_1_39.sce @@ -0,0 +1,9 @@ +// Example 1.39 The odds in favour of an event A are 3:4.
+clc;
+clear;
+A=3/7;
+B=4/11
+AB=A*B;
+disp(A,"Probab. of occurrence of A are P(A)=",B,"Probab. of occurrence of B are P(B)=");
+disp(A+B-AB,"The probab. of at least one of the events A and B is given by ");
+
diff --git a/1475/CH1/EX1.39/Output_1_39.PNG b/1475/CH1/EX1.39/Output_1_39.PNG Binary files differnew file mode 100755 index 000000000..f1017d2cd --- /dev/null +++ b/1475/CH1/EX1.39/Output_1_39.PNG diff --git a/1475/CH1/EX1.40/Example_1_40.sce b/1475/CH1/EX1.40/Example_1_40.sce new file mode 100755 index 000000000..002ed0db7 --- /dev/null +++ b/1475/CH1/EX1.40/Example_1_40.sce @@ -0,0 +1,7 @@ +// Example 1.40 A card is drawn from each of two well shuffled cards
+clc;
+clear;
+A=1/13;
+B=1/13;
+AB=A*B;
+disp(A+B-AB,"Probab. that at least one of them is ace=",AB,"Events A and B are independent so P(AB)=",B,"Probab. that the card from Pack II is an ace",A,"Probab. that card from Pack I is an ace");
diff --git a/1475/CH1/EX1.40/Output_1_40.PNG b/1475/CH1/EX1.40/Output_1_40.PNG Binary files differnew file mode 100755 index 000000000..846dcde29 --- /dev/null +++ b/1475/CH1/EX1.40/Output_1_40.PNG diff --git a/1475/CH1/EX1.41/Example_1_41.sce b/1475/CH1/EX1.41/Example_1_41.sce new file mode 100755 index 000000000..f64376e93 --- /dev/null +++ b/1475/CH1/EX1.41/Example_1_41.sce @@ -0,0 +1,7 @@ +//Example 1.41 An Article manufacture by company consists of two parts.
+clc;
+clear;
+A=1-(9/100);
+B=1-(5/100);
+disp(B,"Probab. that part II is not defective=", A, "Probab. that part I is not defective=");
+disp(A*B, "Probability that the assembled article is not defective= ");
diff --git a/1475/CH1/EX1.41/Output_1_41.PNG b/1475/CH1/EX1.41/Output_1_41.PNG Binary files differnew file mode 100755 index 000000000..73f998ae0 --- /dev/null +++ b/1475/CH1/EX1.41/Output_1_41.PNG diff --git a/1475/CH1/EX1.42/Example_1_42.sce b/1475/CH1/EX1.42/Example_1_42.sce new file mode 100755 index 000000000..5f64e5715 --- /dev/null +++ b/1475/CH1/EX1.42/Example_1_42.sce @@ -0,0 +1,13 @@ +// Example 1.42 One urn contains 2 white and 2 black balls;
+clc;
+clear;
+E1=(2/4)*(2/6);
+E2=(2/4)*(4/6);
+disp(E2, "Probab. that balls are of black colour=",E1,"Probab. that balls are of white colour=");
+disp(E1+E2,"The required Probability that they will be of same colour=");
+S=1/2;
+disp(S,"Selection of one urn out of two urn=");
+P1=S*(2/4);
+P2=S*(2/6);
+disp(P1, "Probab. that white ball is selected from urn I=", P2,"Probab. that white ball is selected from urn II");
+disp(P1+P2,"The required Probability that it will be a white colour=");
diff --git a/1475/CH1/EX1.42/Output_1_42.PNG b/1475/CH1/EX1.42/Output_1_42.PNG Binary files differnew file mode 100755 index 000000000..f2efcd240 --- /dev/null +++ b/1475/CH1/EX1.42/Output_1_42.PNG diff --git a/1475/CH1/EX1.43/Example_1_43.sce b/1475/CH1/EX1.43/Example_1_43.sce new file mode 100755 index 000000000..fca86fc2b --- /dev/null +++ b/1475/CH1/EX1.43/Example_1_43.sce @@ -0,0 +1,7 @@ +// Example 1.43 A salesman has a 80 percent chance of making a sale to each customer
+clc;
+clear;
+A= 8/10 ;
+B= 8/10;//
+disp((1-((1-A)*(1-B))),"Probab. that salesman will make a sale is P(A+B)=1-P(~A).P(~B)=",1- B, "P(~B)=",1-A,"P(~A)=");
+//(1-(1-A)*(1-B)),"P(A+B)=1-P(~A).P(~B)="
diff --git a/1475/CH1/EX1.43/Output_1_43.PNG b/1475/CH1/EX1.43/Output_1_43.PNG Binary files differnew file mode 100755 index 000000000..18c63591f --- /dev/null +++ b/1475/CH1/EX1.43/Output_1_43.PNG diff --git a/1475/CH1/EX1.44/Example_1_44.sce b/1475/CH1/EX1.44/Example_1_44.sce new file mode 100755 index 000000000..7499e8497 --- /dev/null +++ b/1475/CH1/EX1.44/Example_1_44.sce @@ -0,0 +1,8 @@ +// Example 1.44 There is 50 50 chance that a contractor's firm A will bid for construction.
+clc;
+clear;
+A=1/2;
+E=3/4;
+F=1/3;
+disp(F,"Probab. that firm B will get the job if firm A submits a bid is only = ",E, "Probab. that firm B will submit a bid and get the job provided firm A does not bid is = ",A, "Probab. that firm A submits the bid =");
+disp(A*F+(1-A)*E,"Probab. that firm B will get the job=");
diff --git a/1475/CH1/EX1.44/Output_1_44.PNG b/1475/CH1/EX1.44/Output_1_44.PNG Binary files differnew file mode 100755 index 000000000..f1d1f50cd --- /dev/null +++ b/1475/CH1/EX1.44/Output_1_44.PNG diff --git a/1475/CH1/EX1.45/Example_1_45.sce b/1475/CH1/EX1.45/Example_1_45.sce new file mode 100755 index 000000000..ec2c12eea --- /dev/null +++ b/1475/CH1/EX1.45/Example_1_45.sce @@ -0,0 +1,10 @@ +// Example 1.45 Two players A and B toss a die alternately
+clc;
+clear;
+//E1=1/6;
+//E2=(5/6)*(5/6)*(1/6);
+//E3=(5/6)*(5/6)*(5/6)*(5/6)*(1/6);
+disp("A fails, B fails,A fails,B fails, and then A get six =(5/6)*(5/6)*(5/6)*(5/6)*(1/6)", "A fails, B fails and then A get a six = (5/6)*(5/6)*(1/6)","A gets a six in first toss=1/6,");
+disp((1/6)/(1-(5/6)^2),"Probability that A wins");
+disp("A fails, B fails,A fails,B fails,A fails and then B get six =(5/6)*(5/6)*(5/6)*(5/6)*(5/6)*(1/6)", "A fails, B fails and then A fails but in next trial B get a six = (5/6)*(5/6)*(5/6)*(1/6)","A fails to get a six in first trial but B gets a six in first toss=(5/6)*(1/6)");
+disp((5/36)/(1-(5/6)^2),"Probability that B wins");
diff --git a/1475/CH1/EX1.45/Output_1_45.PNG b/1475/CH1/EX1.45/Output_1_45.PNG Binary files differnew file mode 100755 index 000000000..ed930a8fc --- /dev/null +++ b/1475/CH1/EX1.45/Output_1_45.PNG diff --git a/1475/CH1/EX1.47/Example_1_47.sce b/1475/CH1/EX1.47/Example_1_47.sce new file mode 100755 index 000000000..edc108db7 --- /dev/null +++ b/1475/CH1/EX1.47/Example_1_47.sce @@ -0,0 +1,11 @@ +//Example 1.47 A bag contains 8 white and 6 black balls
+clc;
+clear;
+N=factorial(14)/(factorial(9)*factorial(5));
+disp(N,"total no. of possible ways to draw 5 balls out of 14 is 14_C_5 =");
+M1= (factorial(8)/(factorial(3)*factorial(5)));
+disp(M1,"A group of 3 white balls can be drawn out of 8 in 8_C_3 ways=");
+M2=(factorial(6)/(factorial(2)*factorial(4)));
+disp(M2,"A group of 2 black balls can be drawn out of 6 in 6_C_2 ways=");
+P=(M1*M2)/N;
+disp(P," The required Probability such that 3 white and 2 black balls are selected = ");
diff --git a/1475/CH1/EX1.47/Output_1_47.PNG b/1475/CH1/EX1.47/Output_1_47.PNG Binary files differnew file mode 100755 index 000000000..3a85b129c --- /dev/null +++ b/1475/CH1/EX1.47/Output_1_47.PNG diff --git a/1475/CH1/EX1.48/Example_1_48.sce b/1475/CH1/EX1.48/Example_1_48.sce new file mode 100755 index 000000000..82e272d6b --- /dev/null +++ b/1475/CH1/EX1.48/Example_1_48.sce @@ -0,0 +1,7 @@ +// Example 1.48 Five men in a compan of 20 are graduated
+clc;
+clear;
+N=factorial(20)/(factorial(3)*factorial(17));
+M1=(factorial(5)/(factorial(2)*factorial(3)))*(factorial(15)/(factorial(0)*factorial(15)));
+M2=(factorial(5)/(factorial(0)*factorial(5)))*(factorial(15)/(factorial(3)*factorial(12)));
+disp(1-(M2/N),"Probab. taht atleast one is graduate =",M1/N,"Probab. that all 3 are graduate =",M2,"No. of ways to select 3 men such that no one is Graduate=",M1,"No. of ways to select 3 men such that they are Graduate=",N,"No. of ways of selecting =");
diff --git a/1475/CH1/EX1.48/Output_1_48.PNG b/1475/CH1/EX1.48/Output_1_48.PNG Binary files differnew file mode 100755 index 000000000..e042ce1e1 --- /dev/null +++ b/1475/CH1/EX1.48/Output_1_48.PNG diff --git a/1475/CH1/EX1.49/Example_1_49.sce b/1475/CH1/EX1.49/Example_1_49.sce new file mode 100755 index 000000000..eaa17c13e --- /dev/null +++ b/1475/CH1/EX1.49/Example_1_49.sce @@ -0,0 +1,8 @@ +// Example 1.49 A bag contains 8 red and 5 white balls.
+clc;
+clear;
+N1=(factorial(13)/(factorial(10)*factorial(3)));
+M1=(factorial(8)/(factorial(0)*factorial(8)))*(factorial(5)/(factorial(2)*factorial(3)));
+N2=(factorial(10)/(factorial(7)*factorial(3)));
+M2=(factorial(8)/(factorial(5)*factorial(3)))*(factorial(2)/(factorial(0)*factorial(2)));
+disp((M1/N1)*(M2/N2),"Probability that first drawing will give 3 white balls and the second 3 red balls=",M2, "No. of ways to select 3 red balls from remaining 8 red and 2 white balls=",N2,"No . of ways of selecting 3 balls of remaining 10 balls =",M1, "No. of ways to select 3 white balls from 8 red and 5 white balls=",N1,"No . of ways of selecting 3 balls of remaining 13 balls =");
diff --git a/1475/CH1/EX1.49/Output_1_49.PNG b/1475/CH1/EX1.49/Output_1_49.PNG Binary files differnew file mode 100755 index 000000000..ac3c5f0ab --- /dev/null +++ b/1475/CH1/EX1.49/Output_1_49.PNG diff --git a/1475/CH1/EX1.50/Example_1_50.sce b/1475/CH1/EX1.50/Example_1_50.sce new file mode 100755 index 000000000..16377dd65 --- /dev/null +++ b/1475/CH1/EX1.50/Example_1_50.sce @@ -0,0 +1,6 @@ +// Example 1.50 Four cards are drawn from a full pack
+clc;
+clear;
+N1=(factorial(52)/(factorial(48)*factorial(4)));
+M1=(factorial(13)/(factorial(1)*factorial(12)))^4;
+disp((M1/N1),"Probability that four cards are of different suits =",M1, "No. of ways in which 4 cards of different suits can be drawn from a pack =",N1,"No . of ways of selecting 4 cards out of a pack of 52 cards =");
diff --git a/1475/CH1/EX1.50/Output_1_50.PNG b/1475/CH1/EX1.50/Output_1_50.PNG Binary files differnew file mode 100755 index 000000000..c276c6e09 --- /dev/null +++ b/1475/CH1/EX1.50/Output_1_50.PNG diff --git a/1475/CH1/EX1.52/Example_1_52.sce b/1475/CH1/EX1.52/Example_1_52.sce new file mode 100755 index 000000000..62d7e8a17 --- /dev/null +++ b/1475/CH1/EX1.52/Example_1_52.sce @@ -0,0 +1,13 @@ +// Example 1.52 A coin is tossed 10 times
+clc;
+clear;
+function result= binomial(n, k, p)
+ result = factorial(n)*(p^k)*((1-p)^(n-k))/(factorial(k)*factorial(n-k))
+endfunction
+n=10;
+k1=6;
+k2=9;
+p=1/2;
+prob1=binomial(n , k1 , p);
+prob2=binomial(n , k2 , p);
+disp(prob2," Probability of getting exactly 9 heads and 1 tail=",prob1, " Probability of getting exactly 6 heads=",p,"Probability of success=",n,"No. of time a coin is tossed=");
diff --git a/1475/CH1/EX1.52/Output_1_52.PNG b/1475/CH1/EX1.52/Output_1_52.PNG Binary files differnew file mode 100755 index 000000000..bef4449f6 --- /dev/null +++ b/1475/CH1/EX1.52/Output_1_52.PNG diff --git a/1475/CH1/EX1.53/Example_1_53.sce b/1475/CH1/EX1.53/Example_1_53.sce new file mode 100755 index 000000000..d1f8ed71b --- /dev/null +++ b/1475/CH1/EX1.53/Example_1_53.sce @@ -0,0 +1,13 @@ +// Example 1.53 The probabibility that an entering college student
+clc;
+clear;
+function result= binomial(n, k, p)
+ result = factorial(n)*(p^k)*((1-p)^(n-k))/(factorial(k)*factorial(n-k))
+endfunction
+n=5;
+k1=0;
+k2=1;
+p=0.4;
+prob1=binomial(n , k1 , p);
+prob2=binomial(n , k2 , p);
+disp(1-prob1,"Probability that atleast one is graduate",prob2," Probability that one is graduate =",prob1, " Probability that none is a graduate=",p,"Probability that student will be graduate =",n,"No. of student entering the college =");
diff --git a/1475/CH1/EX1.53/Output_1_53.PNG b/1475/CH1/EX1.53/Output_1_53.PNG Binary files differnew file mode 100755 index 000000000..0912759e3 --- /dev/null +++ b/1475/CH1/EX1.53/Output_1_53.PNG diff --git a/1475/CH1/EX1.54/Example_1_54.sce b/1475/CH1/EX1.54/Example_1_54.sce new file mode 100755 index 000000000..d577465e2 --- /dev/null +++ b/1475/CH1/EX1.54/Example_1_54.sce @@ -0,0 +1,13 @@ +// Example 1.54 A machine produces on the average 2 per cent defectives
+clc;
+clear;
+function result= binomial(n, k, p)
+ result = factorial(n)*(p^k)*((1-p)^(n-k))/(factorial(k)*factorial(n-k))
+endfunction
+n=4;
+k1=0;
+k2=1;
+p=0.02;
+prob1=binomial(n , k1 , p);
+prob2=binomial(n , k2 , p);
+disp(1-(prob1+prob2),"Probability that atleast 2 defective articles ",prob2," Probability that there is exactly one success in 4 trial =",prob1, " Probability that there is exactly 0 success in 4 trial=",p,"Probability that article is defective =",n,"No. of articles chosen randomly =");
diff --git a/1475/CH1/EX1.54/Output_1_54.PNG b/1475/CH1/EX1.54/Output_1_54.PNG Binary files differnew file mode 100755 index 000000000..655bd6c33 --- /dev/null +++ b/1475/CH1/EX1.54/Output_1_54.PNG diff --git a/1475/CH1/EX1.55/Example_1_55.sce b/1475/CH1/EX1.55/Example_1_55.sce new file mode 100755 index 000000000..93d557492 --- /dev/null +++ b/1475/CH1/EX1.55/Example_1_55.sce @@ -0,0 +1,8 @@ +// 1.55 Two boxes contain respectively 4 white and 2 black
+clc;
+clear;
+B1=(4/6);
+B2=(2/6);
+C= (3/5);
+D= (4/5);
+disp((B1*C)/((B1*C)+(B2*D)),"Using Bayes formula, Probability that transfered ball is white P(B1/A)=",D,"Probability that the ball drawn from the 2nd box is black, assuming that the transfered ball was black P(A/B2)=",C,"Probability that the ball drawn from the 2nd box is black, assuming that the transfered ball was white P(A/B1)=",B2,"Probability that the transfered ball was black P(B2)=",B1,"Probability that the transfered ball was white P(B1)=");
diff --git a/1475/CH1/EX1.55/Output_1_55.PNG b/1475/CH1/EX1.55/Output_1_55.PNG Binary files differnew file mode 100755 index 000000000..2ccd266a6 --- /dev/null +++ b/1475/CH1/EX1.55/Output_1_55.PNG diff --git a/1475/CH1/EX1.56/Example_1_56.sce b/1475/CH1/EX1.56/Example_1_56.sce new file mode 100755 index 000000000..a06ca04bc --- /dev/null +++ b/1475/CH1/EX1.56/Example_1_56.sce @@ -0,0 +1,8 @@ +// 1.56 Three identical boxes I II III
+clc;
+clear;
+B=(1/3);
+C= (4/7);
+D= (3/10);
+E= (2/5);
+disp((B*D)/((B*C)+(B*D)+(B*E)),"Using Bayes formula, Probability that box II was selected and ball was white P(B2/A)=",E,"Probability of getting a white ball, assuming that Box III was selected P(A/B3) ",D,"Probability of getting a white ball, assuming that Box II was selected P(A/B2)=",C,"Probability of getting a white ball, assuming that Box I was selected P(A/B1)=",B,"Probability of choosing a box out 3 is P(B1)=P(B2)= P(B3)=");
diff --git a/1475/CH1/EX1.56/Output_1_56.PNG b/1475/CH1/EX1.56/Output_1_56.PNG Binary files differnew file mode 100755 index 000000000..76ab182e7 --- /dev/null +++ b/1475/CH1/EX1.56/Output_1_56.PNG diff --git a/1475/CH1/EX1.57/Example_1_57.sce b/1475/CH1/EX1.57/Example_1_57.sce new file mode 100755 index 000000000..51125eb3b --- /dev/null +++ b/1475/CH1/EX1.57/Example_1_57.sce @@ -0,0 +1,12 @@ +// 1.57 In a bolt factory the machines
+clc;
+clear;
+B1=(25/100);
+B2=(35/100);
+B3=(40/100);
+C= (5/100);
+D= (4/100);
+E= (2/100);
+disp(B3,"Probability of choosing a bolt from Machine M3=",B2,"Probability of choosing a bolt from Machine M2=",B1,"Probability of choosing a bolt from Machine M1=")
+disp((B3*D)/((B1*C)+(B2*D)+(B3*E)),"Using Bayes formula, Probability that a defective bolt was manufactured by machine M3 P(B3/A)=",E,"Probability that a bolt is defective, if it comes from machine M3 P(A/B3)=",D,"Probability that a bolt is defective, if it comes from machine M2 P(A/B2)=",C,"Probability that a bolt is defective, if it comes from machine M1 P(A/B1)=");
+// Answer in Book is misprinted.
diff --git a/1475/CH1/EX1.57/Output_1_57.PNG b/1475/CH1/EX1.57/Output_1_57.PNG Binary files differnew file mode 100755 index 000000000..b5a8f4aab --- /dev/null +++ b/1475/CH1/EX1.57/Output_1_57.PNG diff --git a/1475/CH1/EX1.58/Example_1_58.sce b/1475/CH1/EX1.58/Example_1_58.sce new file mode 100755 index 000000000..af3cb005b --- /dev/null +++ b/1475/CH1/EX1.58/Example_1_58.sce @@ -0,0 +1,9 @@ +// Example 1.58 An unbiased die is thrown
+clc;
+clear;
+p=1/6;
+Ex=p*(1+2+3+4+5+6);
+Ey=p*(1+2+3+4+5+6);
+Ez=p*(1+2+3+4+5+6);
+Ew=p*(1+2+3+4+5+6);
+disp(Ex+Ey+Ez+Ew,"Mathematical expectation of the sum is the sum of mathematical expectations for 4 dice respectively (Es)=",Ex,"Mathematical Expectation of the number of points (Ex)=",p,"Variable x can take any of the values with probability (p)= ");
diff --git a/1475/CH1/EX1.58/Output_1_58.PNG b/1475/CH1/EX1.58/Output_1_58.PNG Binary files differnew file mode 100755 index 000000000..bab98234d --- /dev/null +++ b/1475/CH1/EX1.58/Output_1_58.PNG diff --git a/1475/CH1/EX1.59/Example_1_59.sce b/1475/CH1/EX1.59/Example_1_59.sce new file mode 100755 index 000000000..ce6d9256f --- /dev/null +++ b/1475/CH1/EX1.59/Example_1_59.sce @@ -0,0 +1,8 @@ +// Example 1.59 A box contains 4 white 6 black balls
+clc;
+clear;
+A0=((factorial(4)/(factorial(0)*factorial(4)))*(factorial(6)/(factorial(3)*factorial(3))))/(factorial(10)/(factorial(7)*factorial(3)));
+A1=((factorial(4)/(factorial(1)*factorial(3)))*(factorial(6)/(factorial(2)*factorial(4))))/(factorial(10)/(factorial(7)*factorial(3)));
+A2=((factorial(4)/(factorial(2)*factorial(2)))*(factorial(6)/(factorial(1)*factorial(5))))/(factorial(10)/(factorial(7)*factorial(3)));
+A3=((factorial(4)/(factorial(3)*factorial(1)))*(factorial(6)/(factorial(0)*factorial(6))))/(factorial(10)/(factorial(7)*factorial(3)));
+disp(A0*0+A1*1+A2*2+A3*3,"The mathematical expectation of the number of white balls",A0,"Probab. of 0 white balls",A1,"Probab. of 1 white balls",A2,"Probab. of 2 white balls",A3,"Probab. of 3 white balls",3,"X3=",2,"X2=",1,"X1=",0,"X0=","The possible values of x ");
diff --git a/1475/CH1/EX1.59/Output_1_59_1.PNG b/1475/CH1/EX1.59/Output_1_59_1.PNG Binary files differnew file mode 100755 index 000000000..f5eada40c --- /dev/null +++ b/1475/CH1/EX1.59/Output_1_59_1.PNG diff --git a/1475/CH1/EX1.59/Output_1_59_2.PNG b/1475/CH1/EX1.59/Output_1_59_2.PNG Binary files differnew file mode 100755 index 000000000..17af1c26f --- /dev/null +++ b/1475/CH1/EX1.59/Output_1_59_2.PNG diff --git a/1475/CH1/EX1.60/Example_1_60.sce b/1475/CH1/EX1.60/Example_1_60.sce new file mode 100755 index 000000000..0604c92b5 --- /dev/null +++ b/1475/CH1/EX1.60/Example_1_60.sce @@ -0,0 +1,5 @@ +//Example 1.60 A man purchases a lottery ticket, in which he win
+clc;
+clear;
+disp(1-(0.0001+0.0004),"Probab. that man does not get any prize=",0.0004,"Probab. that ma wins second prize of Rs 4000=",0.0001,"Probab. that man wins first prize of Rs 10,000=");
+disp((0.0001*10000+0.0004*4000+0.9995*0),"The Mathematical Expectation is (0.0001*10000+0.0004*4000+0.9995*0)=");
diff --git a/1475/CH1/EX1.60/Output_1_60.PNG b/1475/CH1/EX1.60/Output_1_60.PNG Binary files differnew file mode 100755 index 000000000..e5cbb2186 --- /dev/null +++ b/1475/CH1/EX1.60/Output_1_60.PNG diff --git a/1475/CH1/EX1.61/Example_1_61.sce b/1475/CH1/EX1.61/Example_1_61.sce new file mode 100755 index 000000000..61410a1b9 --- /dev/null +++ b/1475/CH1/EX1.61/Example_1_61.sce @@ -0,0 +1,6 @@ +// Example 1.61 Two dice with faces numbered 1 to 6
+clc;
+clear;
+disp(2,"For a score of less than 12 thrower will pay Rs = ",40,"For a score of 12 thrower is given Rs=");
+disp(35/36,"Probab. of getting a score less than 12 =",1/36,"Probab. of getting a total of 12 eith two dice");
+disp("thrower is expected to loose the above amount",(1/36)*40+(35/36)*(-2),"Expectation per throw =");
diff --git a/1475/CH1/EX1.61/Output_1_61.PNG b/1475/CH1/EX1.61/Output_1_61.PNG Binary files differnew file mode 100755 index 000000000..d1019c8d2 --- /dev/null +++ b/1475/CH1/EX1.61/Output_1_61.PNG diff --git a/1475/CH1/EX1.62/Example_1_62.sce b/1475/CH1/EX1.62/Example_1_62.sce new file mode 100755 index 000000000..ec6e1aae2 --- /dev/null +++ b/1475/CH1/EX1.62/Example_1_62.sce @@ -0,0 +1,6 @@ +// Example 1.62 A man tosses a coin twice
+clc;
+clear;
+disp(1/4,"Probab. of getting 2 tails in 2 throws",1/2,"Probab. of getting 1 head and 1 tail in 2 throws",1/4,"Probab. of getting 2 heads in 2 throw");
+disp(1,"If coin turns tail man will pay Rs =",2,"If coin turns head man will get Rs =");
+disp(4.5,"Variance =",(1/4)*2*2+(1/2)*((1*2)+(1*(-1)))+(1/4)*2*(-1),"Expected gain is (1/4)*2*2+(1/2)*(1*2)+(1*(-1))+(1/4)*2*(-1) =");
diff --git a/1475/CH1/EX1.62/Output_1_62.PNG b/1475/CH1/EX1.62/Output_1_62.PNG Binary files differnew file mode 100755 index 000000000..e7fa9988a --- /dev/null +++ b/1475/CH1/EX1.62/Output_1_62.PNG diff --git a/1475/CH1/EX1.63/Example_1_63.sce b/1475/CH1/EX1.63/Example_1_63.sce new file mode 100755 index 000000000..9270e2e63 --- /dev/null +++ b/1475/CH1/EX1.63/Example_1_63.sce @@ -0,0 +1,7 @@ +// Example 1.63 A man has the choice of running either a hot snack stall
+clc;
+clear;
+disp(0.6,"Probab. of cool summer",0.4,"Probab. of hot summer");
+disp(5000,"Gain from Hot snack stall if weather is cool",1000, "Gain from Hot snack Stall if weather is hot ");
+disp(1000,"Gain from Ice cream if weather is cool",6500, "Gain from Ice cream Stall if weather is hot ");
+disp((0.4*6500)+(0.6*1000),"Expected gain from ice cream stall",(0.4*1000)+(0.6*5000),"Expected gain from hot snack stall");
diff --git a/1475/CH1/EX1.63/Output_1_63.PNG b/1475/CH1/EX1.63/Output_1_63.PNG Binary files differnew file mode 100755 index 000000000..23144108e --- /dev/null +++ b/1475/CH1/EX1.63/Output_1_63.PNG diff --git a/1475/CH1/EX1.66/Example_1_66.sce b/1475/CH1/EX1.66/Example_1_66.sce new file mode 100755 index 000000000..6eef6c28a --- /dev/null +++ b/1475/CH1/EX1.66/Example_1_66.sce @@ -0,0 +1,6 @@ +// Example 1.66 1000 patients sufferring from disease
+clc;
+clear;
+disp(880/1000,"Relative Frequency of cure in first batch is 880/1000 =", 880,"No. of patient cured in first batch out of 1000=");
+disp((880+1300)/(1000+1500),"Relative Frequency of cure in combined group is (880+1300)/(1000+1500)= ", 1300,"No. of patient cured in second batch out of 1500=");
+disp((880+1300+450)/(1000+1500+500),"Relative Frequency of cure in combined group is (880+1300+450)/(1000+1500+500) =", 450,"No. of patient cured in third batch out of 500=");
diff --git a/1475/CH1/EX1.66/Output_1_66.PNG b/1475/CH1/EX1.66/Output_1_66.PNG Binary files differnew file mode 100755 index 000000000..430105c0b --- /dev/null +++ b/1475/CH1/EX1.66/Output_1_66.PNG diff --git a/1475/CH1/EX1.67/Example_1_67.sce b/1475/CH1/EX1.67/Example_1_67.sce new file mode 100755 index 000000000..875f77bc6 --- /dev/null +++ b/1475/CH1/EX1.67/Example_1_67.sce @@ -0,0 +1,5 @@ +// Example 1.67 There are 3 children in a family
+clc;
+clear;
+disp(8,"No.of sample points and sample space of 3 children in a family ");
+disp(4/8,"Probab. that there is not more than one girl (BBB,BBG,BGB,GBB)",3/8,"Probab. that there are exactly 2 girls (BGG,GBG,GGB)");
diff --git a/1475/CH1/EX1.67/Output_1_67.PNG b/1475/CH1/EX1.67/Output_1_67.PNG Binary files differnew file mode 100755 index 000000000..8f17217da --- /dev/null +++ b/1475/CH1/EX1.67/Output_1_67.PNG diff --git a/1475/CH1/EX1.68/Example_1_68.sce b/1475/CH1/EX1.68/Example_1_68.sce new file mode 100755 index 000000000..cb06fa3ea --- /dev/null +++ b/1475/CH1/EX1.68/Example_1_68.sce @@ -0,0 +1,5 @@ +// Example 1.68 Two urns marked I and II
+clc;
+clear;
+disp(30,"No.of sample points and sample space of ordered pair of balls from two Urn = ");
+disp(6/30,"Probab. that both the ball drawn are white is =",6,"Total favourable cases are (1,6),(1,7),(2,6),(2,7),(3,6),(3,7) is");
diff --git a/1475/CH1/EX1.68/Output_1_68.PNG b/1475/CH1/EX1.68/Output_1_68.PNG Binary files differnew file mode 100755 index 000000000..e664a7507 --- /dev/null +++ b/1475/CH1/EX1.68/Output_1_68.PNG diff --git a/1475/CH1/EX1.69/Example_1_69.sce b/1475/CH1/EX1.69/Example_1_69.sce new file mode 100755 index 000000000..cbbc4b361 --- /dev/null +++ b/1475/CH1/EX1.69/Example_1_69.sce @@ -0,0 +1,10 @@ +// Example 1.69 There are 3 childen in a family
+clc;
+clear;
+A=1;
+C=2;
+D=4;
+S=8;
+disp(D/S,"Probab. that at least 2 of the children are boys P(D)",C/S,"Probab. that eldest two are boys P(D)",A/S,"Probab. of all are boys P(A)",S, "total No. of samples ");
+disp((A/S)/(D/S),"Probab. that all children are boys, given that at least 2 of them are boys P(A/D)=",(A/S)/(C/S),"Probab. that all children are boys, given that the two eldest are boys P(A/C)=");
+
diff --git a/1475/CH1/EX1.69/Output_1_69.PNG b/1475/CH1/EX1.69/Output_1_69.PNG Binary files differnew file mode 100755 index 000000000..4995bea9b --- /dev/null +++ b/1475/CH1/EX1.69/Output_1_69.PNG |