Hypothesis Testing - RandomMotorProject
Hypothesis Testing - RandomMotorProject
Rocinante
Mileage 36 speed Marengo
Mileage32 speed
Car No. (km/ltr) (km/hr) Car No. (km/ltr) (km/hr)
1 21.2 151.9 1 15.04 211.3
2 21.79 147.6 2 15.41 207 Roccinate Mileage
3 21.87 145.6 3 15.43 206.2 Sample Size 20
4 22.71 136.1 4 15.92 213.4 Sample standard deviation 0.9272907623
5 22.52 139.7 5 15.2 204.2 Hypothesized men 22
6 21.41 146.1 6 15.22 208.7 Sample mean 21.62
7 22.71 139.6 7 14.6 200 Std error of mean 0.207
8 21.71 143 8 14.41 210.9 degrees of freedom 19
9 19.95 136.4 9 14.79 208.5 t- test statistic -1.835
10 20.65 146.6 10 14.81 214.2 p-value 0.08221
11 22.86 139.9 11 15.61 215.8
12 21.12 136.6 12 15.76 215.8
13 22.8 148.5 13 14.97 215.2 Marengo Mileage
14 20.89 143.4 14 14.71 218.7 Sample Size 20
15 22.49 134.2 15 15.55 208 Sample standard deviation 0.458802503
16 20.94 140.5 16 15.19 212.2 Hypothesized men 15
17 20.37 137.8 17 15.36 219.7 Sample mean 15.16
18 22.72 135.1 18 15.93 216.4 Std error of mean 0.103
19 20.54 138.8 19 14.54 205.8 degrees of freedom 19
20 21.14 132 20 14.76 209 t- test statistic 1.564
p-value 0.1343
Roccinate Topspeed
Sample Size 20
Sample standard deviation 5.3981575804
Hypothesized men 140
Sample mean 140.97
Std error of mean 1.207
degrees of freedom 19
t- test statistic 0.804
p-value 0.4313
Marengo Topspeed
Sample Size 20
Sample standard deviation 5.146332368
Hypothesized men 210
Sample mean 211.05
Std error of mean 1.151
degrees of freedom 19
t- test statistic 0.912
p-value 0.3732
Rocinante 36 Top speed Marengo 32 Top speed
Car No. Mileage (km/ltr) (km/hr) Car No. Mileage (km/ltr) (km/hr)
1 21.2 151.9 1 15.04 211.3
2 21.79 147.6 2 15.41 207
3 21.87 145.6 3 15.43 206.2
4 22.71 136.1 4 15.92 213.4
5 22.52 139.7 5 15.2 204.2
6 21.41 146.1 6 15.22 208.7
7 22.71 139.6 7 14.6 200
8 21.71 143 8 14.41 210.9
9 19.95 136.4 9 14.79 208.5
10 20.65 146.6 10 14.81 214.2
11 22.86 139.9 11 15.61 215.8
12 21.12 136.6 12 15.76 215.8
13 22.8 148.5 13 14.97 215.2
14 20.89 143.4 14 14.71 218.7
15 22.49 134.2 15 15.55 208
16 20.94 140.5 16 15.19 212.2
17 20.37 137.8 17 15.36 219.7
18 22.72 135.1 18 15.93 216.4
19 20.54 138.8 19 14.54 205.8
20 21.14 132 20 14.76 209
d Rocinante 36
0 Hypothesis
0 Mileage Top Speed
0 Ho = 22km/liter Ho = 140 km/hr
0 1 Ha # 22km/liter Ha # 140km/hr
0
0 2 This is 2 Tail test
0
0 Data Collection Mileage Top Speed
0 Hypothesised Me 22 140
0 Sample Mean 21.6195 140.97
0 Sample standard d0.927290762326 5.39815758043
0 Alpha ⍺ ( Significa 0.05 0.05
0 Sample size 20 20
0 3 Degree of freedo 19 19
0
0 Sample size < 30 : We apply T test
0 T Statistic & P Val Mileage Top Speed
0 Standard error (t t 0.207348517947 1.20706473031
0 T Stat (t) -1.8350746066 0.803602305364
0 4 P value ( Link) 0.0822 0.4316
thesis is TRUE claim and we reject null hypothesis, chances are that we reject cars which are as per
thesis is FALSE claim and we failed to reject null hypothesis we will have chances of selling car models
ecification.
ensive for company- failed to reject cars which are sold under specification would cost very high due to
from customers
Verification using data package
t-Test: Two-Sample Assuming Unequal Variances
Mileage (km/ltr) d
Mean 21.6195 0
Variance 0.859868157895 0
Observations 20 3
Hypothesized Mea 22
df 19
t Stat -1.8350746066
P(T<=t) one-tail 0.041100123538
t Critical one-tail 1.729132811521
P(T<=t) two-tail 0.082200247077
t Critical two-tail 2.093024054408
Observations 20 3
Hypothesized Mea 140
df 19
t Stat 0.803602305364
P(T<=t) one-tail 0.215783075358
t Critical one-tail 1.729132811521
P(T<=t) two-tail 0.431566150716
t Critical two-tail 2.093024054408
Rocinante 36 Top speed Marengo 32 Top speed
Car No. Mileage (km/ltr) (km/hr) Car No. Mileage (km/ltr) (km/hr)
1 21.2 151.9 1 15.04 211.3
2 21.79 147.6 2 15.41 207
3 21.87 145.6 3 15.43 206.2
4 22.71 136.1 4 15.92 213.4
5 22.52 139.7 5 15.2 204.2
6 21.41 146.1 6 15.22 208.7
7 22.71 139.6 7 14.6 200
8 21.71 143 8 14.41 210.9
9 19.95 136.4 9 14.79 208.5
10 20.65 146.6 10 14.81 214.2
11 22.86 139.9 11 15.61 215.8
12 21.12 136.6 12 15.76 215.8
13 22.8 148.5 13 14.97 215.2
14 20.89 143.4 14 14.71 218.7
15 22.49 134.2 15 15.55 208
16 20.94 140.5 16 15.19 212.2
17 20.37 137.8 17 15.36 219.7
18 22.72 135.1 18 15.93 216.4
19 20.54 138.8 19 14.54 205.8
20 21.14 132 20 14.76 209
5
6
7
8
9
10
d Marengo 32
0 Hypothesis
0 Mileage
0 Ho = 15km/liter
0 1 Ha # 15km/liter
0
0 2 This is 2 Tail test
0
0 Data Collection Mileage
0 Hypothesised Me 15
0 Sample Mean 15.1605
0 Sample standard d 0.45880250309
0 Alpha ⍺ ( Significa 0.05
0 Sample size 20
0 3 Degree of freedo 19
0
0 Sample size < 30 : We apply T test
0 T Statistic & P Va Mileage
0 Standard error (t t 0.102591358516
0 T Stat (t) 1.564459251949
0 4 P value ( Link) 0.1342
Type 1 Error If
If we
we assume
assume Null hypothesis is
Null hypothesis is FALSE
TRUE claim
claimand
andwewereject
failednull hypothesis,
to reject chances we
null hypothesis are will
thathave
we reject carsofw
chances
Type 2 Error not
Typeas2per specification.
error is very expensive for company- failed to reject cars which are sold under specification would c
Conclusion of all vehicles from customers
Top Speed
Ho = 210 km/hr
Ha # 210 km/hr
Top Speed
210
211.05
5.146332368018
0.05
20
19
Top Speed
1.150754900969
0.912444517173
0.373
ll hypothesis.
null hypothesis.
esis is higher than significancevalue of 0.05
fication of both Rocnante 36 and Marengo 32
Mileage (km/ltr) d
Mean 15.1605 0
Variance 0.210499736842 0
Observations 20 3
Hypothesized Mea 15
df 19
t Stat 1.564459251949
P(T<=t) one-tail 0.067106493392
t Critical one-tail 1.729132811521
P(T<=t) two-tail 0.134212986784
t Critical two-tail 2.093024054408