Professional Documents
Culture Documents
STATISTICS FOR
ENGINEERS
DIGITAL ASSIGNMENT - I
QUESTIONS
1. Compute the mean, median and mode for the following frequency distribution.
Solution
Mean
Median
l = 35 f = 180 m = 400
Mode
2. Calculate the mean, variance and standard deviation for the following frequency
Distribution, and hence obtain the value of co-efcient of variation.
Solution
Standard Deviation =
^
( )
= 1.4142
Variance = 2
3. Find the rst four moments about the mean and Pearsons co-efficient 1 and 2 for the
following frequency distribution, and also comment the nature of skewness and kurtosis
of the distribution based on the Pearsons co-efficient 1 and 2
Solution
Class f x d fd
170-180 52 175 -4 -208 832 -3378 13312
180-190 68 185 -3 -204 612 -1836 5508
190-200 85 195 -2 -170 340 -680 1360
200-210 92 205 -1 -92 92 -92 92
210-220 100 215 0 0 0 0 0
220-230 95 225 1 95 95 95 95
230-240 70 235 2 140 280 560 420
240-250 28 245 3 84 252 756 2268
Total 590 -355 2503 -4525 2375
16BCE0766
355
1 = = 10 = 6.0169
590
2503
2 = = 100 = 424.2372
590
4525
3 = = 1000 = 7669.4912
590
23755
4 = = 10000 = 402627.1186
590
1 = 0
2 = 2 (1 ) = 388.0341
3 = 3 3(2 1) + 2(1 ) = 229.5431
4 = 4 4(3 1 ) + 62 (1 ) 3(1 ) = 214108.882
.
2 = ( )
= .
= 1.4219
Coefficient of skewness
1(2 + 3) 1.4219 + 3 3.0026
= = 04611 = = 0.3223
2(5(2) 61 9) 2(7.1095 2.7666) 9 9.3142
4. Find the value of a, P(X < 3), cumulative distribution function, mean, variance and
standard deviation of the discrete random variable (X) with the following probability
distribution.
81a = 1
a = 1/81
Similarly
F (2) = 4/81 F (3) = 1/9 F(4) = 16/81 F(5) = 25/81 F(6) = 36/81 F(7) = 49/81
F (8) = 64/81 F(9) = 1
16BCE0766
Mean = x*P(x) = 0 + 1(3/81) + 2*(5/81) +3*(7/81) +4*(9/81) + 5*(11/81) + 6*(13/81) +
7*(15/81) + 8*(17/81) = 444/81 = 5.481
Variance = (x-mean)^2 * P(x) or () = 34.5185 (5.4814)
= ( 5.48)^2*1/81 +
Variance = 4.47277
Standard Deviation SD = = 2.1148
5. Find the value of k, cumulative distribution function, mean, variance and standard
deviation of the continuous random variable (X) with the following probability density
function.
Solution
() = 1
(2 ) + 0 = 1
2 = 1
k=
Cumulative distribution function
F (x < 0) = 0
F (0 < x < 2) = () = 1
F (x > 2) = 0
Mean = () = (2 ) = = 1
Variance = ( ) () = ( 1) ()(2 ) = =
6. Three balls are drawn at random without replacement from a box containing 2 white, 3
red and 4 black balls. If X denotes the number of white balls drawn and Y denotes the
number of red balls drawn, nd the joint probability distribution of (X; Y ).
Solution:
2 White balls, 3 Red balls, 4 black balls and 3 balls are drawn at random from the given balls
X Y
0 1 2 3
0 1/21 3/14 1/7 1/84
1 1/7 2/7 1/14 0
2 1/21 1/28 0 0
7. The joint probability density function of two-dimensional continuous random variable (X;
Y ) is given by
Solution
= 1
Substitution method
Taking = => 2xdx=dt => xdx = dt and = => 2ydy=dk => ydy = dk
K(0-1)(0-1) = 4
K=4
f(x,y) = 4xy
Marginal Functions
f (x) = 4 = 2 f (y) = 4 = 2
f(x) . f(y) = 2 . 2 = 4 = (, )
Hence proved
8. A line of length a units is divided into two parts. If the rst part is of length X, then find
E(X), Var(X), and E [X(a X)].
Solution:
X is uniformly distributed in (0,0)
16BCE0766
f(x) = 1/a
E(x) = () = =
( ) = () =
3
Variance (x) = ( ) () = =
( ) = () ( ) = =
3 4 12
9. Compute the coefcient of correlation between the following two set of measures X and
Y and hence comment the nature of correlation between X and Y.
Solution
Minimum value among the values of X is 65 Minimum value among the values of Y is 64
Maximum value among the values of X is 71 Maximum value among the values of Y is 72
New origin of X = (65 + 71)/2 = 68 New origin of Y = (64 + 72)/2 = 68
= 0.3974
10. Write and execute a program in C, C++ Languages or in MATLAB for any problem in
Statistical or Probabilistic Measures.
(Include the problem statement and the programming code with output for the problem).
Solution:
Problem Statement
Write the R programming code for computing the mean, median, mode, variance, standard
deviation, co-efficient of variation, first four moments about the mean and Pearsons co-efficients B1
& B2 for the following frequency distribution, and also comment on the nature of skewness and
kurtosis of the distribution based on the Pearsons co-efficient 1 & 2
16BCE0766
R-PROGRAMMING PART
R Code
#Mean
> h=10
> x=seq(175,245,h)
> f=c(52,68,85,92,100,95,70,28)
> M=(sum(x*f))/sum(f)
>M
[1] 208.9831
> #Median
> h=10
> x=seq(175,245,h)
> f=c(52,68,85,92,100,95,70,28)
> fd=data.frame(x,f)
> cf=cumsum(f)
> n=sum(f)
> mc=min(which(cf>=n/2))
> mcf=f[mc]
> c=cf[mc-1]
> l=x[mc]-h/2
> Md=l+(((n/2)-c)/mcf)*h
16BCE0766
> Md
[1] 209.7826
> #Mode
> h=10
> x=seq(175,245,h)
> f=c(52,68,85,92,100,95,70,28)
> fd=data.frame(x,f)
> mc=which(f==max(f))
> mcf=f[mc]
> f1=f[mc-1]
> f2=f[mc+1]
> l=x[mc]-h/2
> Mo=l+((mcf-f1)/(2*mcf-f1-f2))*h
> Mo
[1] 216.1538
> h=10
> x=seq(175,245,h)
> f=c(52,68,85,92,100,95,70,28)
> N=sum(f)
> M=(sum(x*f))/sum(f)
>M
[1] 208.9831
> Var=((1/N)*(sum(x^2*f)))-((1/N)*(sum(x*f)))^2
> Var
16BCE0766
[1] 388.0336
> SD=sqrt(Var)
> SD
[1] 19.69857
> CV=100*(SD/M)
> CV
[1] 9.425917
> h=10
> x=seq(175,245,h)
> f=c(52,68,85,92,100,95,70,28)
> N=sum(f)
> M=(sum(x*f))/sum(f)
> M1=sum(((x-M)^1)*f)/N
> M2=sum(((x-M)^2)*f)/N
> M3=sum(((x-M)^3)*f)/N
> M4=sum(((x-M)^4)*f)/N
> B1=(M3^2)/(M2^3)
> B2=(M4)/(M2^2)
> B1
[1] 0.003424753
> B2
[1] 2.034009