Digital Assignment-1: Name: Yash Karande Register Number: 17BCE0140 SLOT: G2+TG2 Course Code: Mat2001

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 21

DIGITAL ASSIGNMENT-1

NAME: YASH KARANDE


REGISTER NUMBER:
17BCE0140
SLOT: G2+TG2
COURSE CODE: MAT2001
COURSE DETAIL: Statistics for Engineers
Mean

Age Group(x) Mid Value of x No. of Members (F) F*x

20-25 22.5 30 675

25-30 27.5 160 4400

30-35 32.5 210 6825

35-40 37.5 180 6750

40-45 42.5 145 6162.5

45-50 47.5 105 4987.5

50-55 52.5 70 3675

55-60 57.5 60 3450

60-65 62.5 40 2500

∑ F =1000 ∑ F*x=39425

Mean = ∑F *x/∑ = 39.425

Median

F
*
Age Group(x) No. of Members (F) Cumulative x

frequency

6
7
20-25 30 30 5

4
4
19 0
25-30 160 0 0

6
40 8
30-35 210 0 2
5

6
7
58 5
35-40 180 0 0

6
1
6
2
72 .
40-45 145 5 5
45-50 105 830 4987.5

50-55 70 900 3675

55-60 60 960 3450

60-65 40 1000 2500

N=1000

N/2=500 , lies in the class interval 35-40 , so 35-40 is the median class

l=35,N/2=500,m=400,f=180,c=5

Therefore, Median = 37.777

Mode

Age Group(x) No. of Members (F)

20-25 30

25-30 160

30-35 210

35-40 180

40-45 145

45-50 105

50-55 70

55-60 60

60-65 40
L=30,f1=210,f0=160,f2=180
c=5

Mode= 33.125

Mean:

Size(x) Frequency(F) F*x

0 1 0

1 8 8

2 28 56

3 56 168

4 70 280

5 56 280

6 28 168

7 8 56

8 1 8

N=256 ∑ *x=1024

Mean= ∑ *x/N = 4

Quartile Deviation:
Size(x) Frequency(F) Cumulative Frequency

0 1 1

1 8 9

2 28 37

3 56 93

4 70 163

5 56 219

6 28 247

7 8 255

8 1 256

N=256

Q1=(N+1)/4th term =64.25th term


=3
Q3=3(N+1)/4 term =192.75th
th
term = 5

Q.D = (Q3- Q1)/2 = 1

C.D = 2/8 = 0.25

Mean Deviation:

Size(x) Frequency(F) d=x-A F*d lDl=x-Mean F*lDl

A=4

0 1 -4 -4 4 4

1 8 -3 -24 3 24

2 28 -2 -56 2 56
3 56 -1 -56 1 56

4 70 0 0 0 0

5 56 1 56 1 56

6 28 2 56 2 56

7 8 3 24 3 24

8 1 4 4 4 4

N=256 0 ∑ ∗ =280

Mean = A + ∑ *d/N

Mean = 4

Mean Deviation = 280/256


Mean Deviation = 1.09

Variance:

Size(x) Frequency(F) x*x F*x F*x*x

0 1 0 0 0

1 8 1 8 8

2 28 4 56 112

3 56 9 168 504

4 70 16 280 1120

5 56 25 280 1400

6 28 36 168 1008

7 8 49 56 392

8 1 64 8 8

N=256 ∑ *x=1024 4552


= 4552/256 – 16
Variance = 1.78

Standard Deviation = 1.33

Coeffiecient of Variation = Standard deviation /


Mean = 0.3325
Wages (in Rs. 170–18 180–19 190–20 200–21 210–22 220–23 230–24 240–25
No. of Person 52 68 85 92 100 95 70 28

Q3 Find the first four moments about the mean and Pearson’s co-efficients β1 & β2 for the
following frequency distribution, and also comment the nature of skewness and kurtosis of
the distribution based on the Pearson’s co-efficients β1 & β2.
Wages No. of Mid d=x- F*d P=x- p^2 P^3 P^4 F*P F*p^2
Persons(F) value A Mean

(x)

170- 52 175 -40 -2080 -34.32 1177.86 - 1387359.83 -1784.64 61248.72


180 40424.23

180- 68 185 -30 -2040 -24.32 591.46 - 349824.93 -1653.76 40219.28


190 14384.36

190- 85 195 -20 -1700 -14.32 205.06 -2936.49 42049.60 -1217.2 17430.1
200

200- 92 205 -10 -920 -4.32 18.66 -80.62 348.19 -397.44 1716.72
210

210- 100 215 0 0 5.63 31.69 178.45 1004.25 563 3169


220

220- 95 225 10 950 15.68 245.86 3855.12 60447.13 1489.6 23356.7


230

230- 70 235 20 1400 25.68 659.46 16934.99 434887.49 1797.6 46162.2


240

240- 28 245 30 840 35.68 1273.06 4522.86 1620681.76 999.04 35645.68


250

∑fi=590 ∑f*p= ∑f*p^2=

-1821.8 182786.2

F*p^3 F*p^4

-2102059.96 72142711.16
-978136.48 23788095.24

-249601.65 3574216

-7417.04 32033.48

17845 100425

366236.4 5742477.35

126640.08 45379089.28

∑f*p^3=-2826493.65 ∑f*p^4=1507590475

N=590
Mean= A + ∑F*d/N
= 215 + -3350/590
=209.32

µ1=∑f*p/∑f =-3.087
µ2=∑f*p^2/∑f = 309.80
µ3=∑f*p^3/∑f = -4790.67
µ4=∑f*p^4/∑f =2555238.093

Β1==0.772
Β2=26.63 ϒ1=-
2.95 * 10-8
ϒ2=23.63

Since ϒ1<0 negatively skewed


Since ϒ2>0 Leptokurtic
Q7. The joint probability density distribution of a two dimensional random variable
(X,Y) is given by :-

kxye-(x^2-y^2) , x > 0; y > 0;

f(x,y) = 0 , otherwise

Find the value of k and prove that X and Y are independent random variable.

Solution
∫0∞ ∫0∞ ( , ) =1
==>∫0∞ ∫0∞ −( 2− 2) =1
==> ∫0∞ − 2) ∫0∞ − 2 =1
==> ∫0∞ − 2) ∗ 12 ∗ [ − ]∞0 = 1
==>2 ∫0∞ − 2) = 1
==>2 ∗ 12 = 1
==> = 4
==>f(x,y)= 4 −( 2− 2)

For X and Y to be independent f(x)*f(y) =f (x,y)


f(x)=∫0∞ 4 −( 2− 2)
=4x − 2 ∫0∞ − 2 = 2 − 2
f(y)=∫0∞ 4 −( 2− 2)
=4y − 2 ∫0∞ − 2 = 2 − 2
f(x)*f(y)= 4 −( 2− 2)=f(x,y)

Hence proved that X and Y are independent.


, 8. A line of length a units is divided into two parts. If the first part is of length X, then
find E(X) V ar(X), and E [X(a − X)].

Given X=length of 1st part.


Therefore probability distribution is given by:

X a/∞ …. a/4 ….. a/2 ……. 3a/4 ……. a

Fx(X) 0 …. 1/4 ….. 1/2 ……. 3/4 …….. 1

Therefore Fx(X) = x/a (From table)


( ( ))=1/a
fx(x) =
E(x) =∫0 ∗ 1 =1/a*[x2/2]a0 =a/2

Var(X) =E(X2)-[E(X)]2
E(X2) = ∫0 2∗1 =1/a*[x3/3]a0=a2/3

Var(X) = a2/3 – [a/2]2 = a2/3 - a2/4


= a2/12

E(X(a-X)) = E(a*X-X2)=E(a*X)-E(X2)
= a*E(X)-E(X2)
= a2/2 - a2/3 =a2/6
9. X Y X^2 Y^2 XY

65 67 4225 4489 4355

67 68 4489 4624 4556

66 68 4356 4624 4488

71 70 5041 4900 4970

67 64 4489 4096 4288

70 67 4900 4489 4960

68 72 4624 5184 4896

69 70 4761 4900 4830

Total=543 482 36885 37306 37343

r=n(∑xy)−(∑x)(∑y)
[n∑x2−(∑x)2][n∑y2−(∑y)2]
X=1/N(SUM(X)) = 543/8 =67.87
Y=1/N(SUM(Y)) =482/8 =60.25
On substituting all the values in the formula
We get,
r= -0.561
A moderate downhill (negative) relationship
10.

>
> #MEAN
> h=5
> x=seq(22.5,62.5,h)
> f=c(30,160,210,180,145,105,70,60,40)
> N=sum(f)
> M=(sum(x*f))/N
>M
[1] 39.425
> Median
> h=5
> x=seq(22.5,62.5,h)
> f=c(30,160,210,180,145,105,70,60,40)
> cf=cumsum(f)
> N=sum(f)
> mc=min(which(cf>=N/2))
> mcf=f[mc]
> l=x[mc]-h/2
> c=cf[mc-1]
> l=x[mc]-h/2
> Md=l+(((N/2)-c)/mcf)*h
>
> Md
[1] 37.77778
> #mode
> h=5
> x=seq(22.5,62.5,h)
> f=c(30,160,210,180,145,105,70,60,40)
> mc=which(f==max(f))
> f1=f[mc]
> f0=f[mc-1]
> f2=f[mc+1]
> l=x[mc]-h/2
> Mo=l+((f1-f0)/(2*f1-f0-f2))*h
> Mo

You might also like