blob: e0e1c39e7331fa6558fe36f642677b61f4e9b499 (
plain)
1
2
3
4
5
6
7
8
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 = ");
|