Вы находитесь на странице: 1из 5

February 2010

Master of Computer Application (MCA) – Semester 3


MC0074 – Statistical & Numerical Methods using C++
Assignment Set – 1

1. A box contains 74 brass washers, 86 steel washers and 40 aluminum


washers, Three washers are drawn at random from the box without
replacement. Determine the probability that all three are steel washers.
Ans –
No. of ways to succeed = 86C3
No of possible outcomes = 200C3
P(success) = 86C3/200C3 = 0.0779

2. Suppose that the random variable X is uniformly distributed over [a, b]


( a+b )
E( x )=
and if 2 , then compute the value of V(X)
Ans –
We have
E(X) = (a + b)/2
b
n 2 1
E(X) = ʃ( x +a ) =∫ x
2
dx
a b−a

1 b3 −a3
=
b−a [3 ]
Hence
V (X) = E(X2) – (E(X))2

1 b3 −a3 2
a+ b
=
b−a [3

2 ] [( ) ]
( b−a )2
V(X) =
12
3. If x is normally distributed with zero mean and unit variance, find the
2
expectation and variance of σ .
Ans –
The equation of the normal curve is
2
− ( x−m )
y= 1 e
2

σ √2 π
If mean is zero and variance is unit, then putting m=0 and σ = 1, the above equation reduced to
2
−( x )
1 2
y= e
√2 π
Expectation of x2 i.e µ’1
2
+∞ −x
1 2 2
=∫x e dx
−∞ √2 π
2
+∞ −x
1
= ∫ x2 e 2
dx ……….. (i)
2 π
√ −∞
2
−x
= 1 ∫ x −xe ( 2 ) dx
√2 π
Integrating by parts taking x as first function and remembering that
2 2

[ ]
−x −x
d
dx
e ( )=− xe
2 2

2
∞ −x
=
1
√2 π
0−2∫ e
0
[ 2
] dx

x
Putting = z, dx = √ 2 dz
√2

2√ 2 2

∫ e− z dz
√2 π 0
2
√π ( √2π )=1
Hence
2
+∞ −x
1
∫ x2 e 2
dx = 1 …………. (ii)
√ 2 π −∞
Ans
2
+∞ −x
12 2 2
µ’1 = ∫ ( x ) e dx
−∞ √2 π
2
+∞ −x
1
= ∫ x3 ( ¿−x e 2
)dx ¿
√ 2 π −∞
Integrating by parts taking x3 as first function
x ∞
2 2

[( ]
−x
=-
1
x e 3 2 ) −∞−∫ 3 x . e 2 2
dx
√2 π −∞

2
∞ −x
=
1
√2 π [
0−3 ∫ x2 . e
−∞
2
2
dx
]
∞ −x
1
=3 ∫ x2 . e 2
dx
√ 2 π −∞
=3(1) with the help of (ii)
Variance of x2 =µ2= µ2’- µ1’2
= 3-(1)2
=2

4. Show that if X1 and X2 be two independent random variables with


Poisson distribution and parameters m1 and m2 respectivelly, then the
sum of (X1 + X2) is a random variable with Poisson distribution and
parameters (m1 +m2).
Ans –

5. Find out the geometric mean of the following series


Class 0-10 10-20 20-30 30-40 40-50
Frequency 10 12 11 10 6
Ans –

Here we have
Class Frequency (f) Mid value (X) Log x f(log x)
0 – 10 10 5 .6990 6.9900
10 – 20 12 15 1.1761 14.1132
20 – 30 11 25 1.3979 15.3796
30 – 40 10 35 1.5441 15.4410
40 – 50 6 45 1.6532 9.9192
Total 49 ∑ f log x=¿ ¿61
.843

1
Log G =
N ∑ f log x
= (1/50)61.843
= 1.2369
G = Antilog 1.2369
= 17.25

6. Find the equation of regression line of x on y from the following data


x 0 1 2 3 4
y 2 8 2 3 35
1 7 4

Ans –
sum(X) = 0+1+2+3+4 = 10
sum(X²) = 0²+1²+2²+3²+4² = 30
sum(Y) = 21+8+27+34+35 = 125
sum(Y²) = 21²+8²+27²+34²+35² = 3615
sum(XY) = 0.21 + 1.8 + 2.27 + 3.34 + 4.35 = 304
n=5
Xbar = sumX / n = 10 / 5 = 2
Ybar = sumY / n = 125 / 5 = 25

gradient m = [ n sumXY - sumX sumY ] / [ n sumX² - (sumX)² ]


= (5.304 - 10.125) / (5.30 - 10²)
= (1520 - 1250) / (150 - 100)
= 270 / 50
= 27/5
Equation is y = mx + c
Ybar = m.Xbar + c
25 = (27/5)(2) + c
c = 25 - (54/5) = 71/5

Therefore the equation of the regressed line is y = (27/5)x + (71/5)

Вам также может понравиться