Hypothesis - Testing - (Thanya D)

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 8

Rocinante 36 Marengo 32

Top Top
Mileage speed Mileage speed
Car No. (km/ltr) (km/hr) Car No. (km/ltr) (km/hr) Rocinan
1 21.2 151.9 1 15.04 211.3 0 Price (in lakhs )
2 21.79 147.6 2 15.41 207 0 Milage (km/ltr)
3 21.87 145.6 3 15.43 206.2 Top Speed (km/hr)
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 Hypothesis Testing :
Using the t-statistic method and calula
7 22.71 139.6 7 14.6 200 Since in the problem statement it is m
8 21.71 143 8 14.41 210.9 is needed in the design to improve the
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
Null Hypothesis
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
Alternate Hypothesis
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 Sample Size
20 21.14 132 20 14.76 209 Confidence Level
Significance Level

Hypothesised Mean
Sample Mean
Sample Standard
Deviation

Standard Error of Mean


( S.E ) = Sample
Standard Deviation /
Sqrt(sample Size)
Degrees of Freedom
[ df = n-1 ]

T-statistic = ( Sample
Mean - Hypothesised
Mean )/S.E.
p- value
Result

Types of error

Type 1 Error : Reject the H0 even if H0

Type 2 Error : Fail to Reject the H0 wh


Rocinante 36 Marengo 32
7 Price (in lakhs ) 41
22 Milage (km/ltr) 15
140 Top Speed (km/hr) 210

Testing :
tatistic method and calulating the value of P-value and comparing with the significance level. The confidence level is choosen to be 95%.
problem statement it is mentioned "If the cars are performing better than expected, then the engineer wants to revise the specifications.
the design to improve their performance. " Hence the Null hypothesis is assumed that their top speed and the mileage as exactly as what

Rocinante 36

Milage H0 is 22km/litre
Top Spped H0 is 140km/hr

Milage Ha is not 22km/litre


Top Spped Ha not 140km/hr

20
95%
0.05
Mileage (km/ltr) Top Speed ( km/hr)
22 140
21.6195 140.97

0.927290762325786 5.39815758043037

0.207348517946806 1.20706473030981

19 19

-1.83507460659841 0.803602305363576
0.0822 0.4316
The Milage p-value (0.0822) Is more than ⍺ (0.05) hence we fail to reject the Null Hypothesis. Also the
Top Speed p-value (0.4316) which is greated than ⍺ (0.05) hence we fail to reject the Null Hypothesis.
Hence we fail to reject the null hypothesis.

The predictions on the Milage and topspeed are true but we reject and send it
: Reject the H0 even if H0 is true. back.
In this case the more investment is put in the design to improve their
performance or revise their specifications.

The predictions on the Milage and topspeed are false but we fail to reject.
: Fail to Reject the H0 when H0 is False In this case the customers would want an refund and it would incur in loss
for the company.
ce level is choosen to be 95%.
ts to revise the specifications. However, if they are performing worse than expected, then it is an indication that more investment
the mileage as exactly as what the specifications were determined.

Marengo 32

Null Hypothesis Milage H0 is 15km/litre


Top Spped H0 is 210km/hr

Alternate Hypothesis Milage Ha is not 15km/litre


Top Spped Ha is not 210km/hr

Sample Size 20
Confidence Level 95%
Significance Level 0.05
Mileage (km/ltr) Top Speed ( km/hr)
Hypothesised Mean 15 210
Sample Mean 15.1605 211.05
Sample Standard
Deviation 0.458802503090497 5.14633236801756

Standard Error of Mean


( S.E ) = Sample Standard
Deviation / Sqrt(sample
Size) 0.102591358515741 1.15075490096947
Degrees of Freedom
[ df = n-1 ] 19 19

T-statistic = ( Sample
Mean - Hypothesised
Mean )/S.E. 1.56445925194934 0.912444517173397
p-value 0.1342 0.373
Result The Milage p-value (0.1342) Is more than ⍺ (0.05) hencewe fail to reject the Nu
the Top Speed p-value (0.373) which is greated than ⍺ (0.05) hence we fail to r
Hypothesis.
Hence we fail to reject the null hypothesis.

Types of error

The predictions on the Milage and topspeed are true b


Type 1 Error : Reject the H0 even if H0 is true. send it back.
In this case the more investment is put in the design to
performance or revise their specifications.

The predictions on the Milage and topspeed are false b


Type 2 Error : Fail to Reject the H0 when H0 is
False In this case the customers would want an refund a
loss for the company.
ation that more investment

litre
km/hr

m/litre
10km/hr
(0.05) hencewe fail to reject the Null Hypothesis. Also
ted than ⍺ (0.05) hence we fail to reject the Null

the Milage and topspeed are true but we reject and

e investment is put in the design to improve their


ise their specifications.

the Milage and topspeed are false but we fail to reject.

customers would want an refund and it would incur in


y.

You might also like