Hypothesis Testing

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

Rocinante 36 Marengo 32

Top Top
Mileage speed Mileage speed
Car No. (km/ltr) (km/hr) Car No. (km/ltr) (km/hr) Specifications
1 21.2 151.9 1 15.04 211.3 Price
2 21.79 147.6 2 15.41 207 Manufacturing cost
3 21.87 145.6 3 15.43 206.2 Mileage
4 22.71 136.1 4 15.92 213.4 Top speed
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
Hypothesis Testing :
9 19.95 136.4 9 14.79 208.5 We will be using the t-statistic method since th
10 20.65 146.6 10 14.81 214.2 choosen to be 95%.
11 22.86 139.9 11 15.61 215.8 By studying the the problem statement it is not
12 21.12 136.6 12 15.76 215.8 performing worse than expected, then it is an in
13 22.8 148.5 13 14.97 215.2
In this scenario, the Null hypothesis is assumed
of the same.
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 Rocin
19 20.54 138.8 19 14.54 205.8
20 21.14 132 20 14.76 209
Null Hypothesis

Alternate Hypothesis

Sample Size
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
Rocinante36 Marengo32
₹ 700,000 ₹ 4,100,000
₹ 600,000 ₹ 3,300,000
22 km/litre 15 km/litre
140 km/hr 210 km/hr

Testing :
using the t-statistic method since the sample size is less than 30. We will calulate the value of P-value and compare it with the significa
be 95%.
g the the problem statement it is noted "If the cars are performing better than expected, then the engineer wants to revise the specificatio
worse than expected, then it is an indication that more investment is needed in the design to improve their performance. "
ario, the Null hypothesis is assumed to their top speed and the mileage as exactly as what the specifications were determined and the alt
.

Rocinante 36

H0: Mileage = 22km/litre


H0: Top Speed = 140km/hr

Ha: Mileage ≠ 22km/litre


Ha: Top Spped ≠ 140km/hr

20
95%
0.05

Mileage (km/ltr) Top Speed ( km/hr)


22 140
21.6195 140.97

0.927290762326 5.39815758043037

0.207348517947 1.20706473030981

19 19

-1.835 0.803602305363576
0.0822 0.4316
The Milage p-value (0.0822) Is more than ⍺ (0.05). We fail to reject the
Null Hypothesis in this case.
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 both the null hypothesis.
P-value and compare it with the significance level. The confidence level is

engineer wants to revise the specifications. However, if they are


prove their performance. "
pecifications were determined and the alternate hypothesis will be opposite

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.45880250309 5.14633236801756
Standard Error of
Mean
( S.E ) = Sample
Standard Deviation /
Sqrt(sample Size) 0.102591358516 1.15075490096947
Degrees of Freedom
[ df = n-1 ] 19 19
T-statistic = ( Sample
Mean - Hypothesised
Mean )/S.E. 1.564459251949 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 Null Hypothesis. Also the Top Speed p-value (0.373) which is
greated than ⍺ (0.05) hence we fail to reject the Null Hypothesis.
Hence we fail to reject the null hypothesis.
Rocinante 36 Marengo 32
Top Top
Mileage speed Mileage speed
Car No. (km/ltr) (km/hr) Car No. (km/ltr) (km/hr) Specifications Rocinante36
1 21.2 151.9 1 15.04 211.3 Price ₹ 700,000
2 21.79 147.6 2 15.41 207 Manufacturing cost ₹ 600,000
3 21.87 145.6 3 15.43 206.2 Mileage 22 km/litre
4 22.71 136.1 4 15.92 213.4 Top speed 140 km/hr
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 Hypothesis Testing :
10 20.65 146.6 10 14.81 214.2 We will be using the t-statistic method since the samp
be 95%.
11 22.86 139.9 11 15.61 215.8
By studying the the problem statement it is noted "If t
12 21.12 136.6 12 15.76 215.8 than expected, then it is an indication that more invest
13 22.8 148.5 13 14.97 215.2 In this scenario, the Null hypothesis is assumed to the
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
Marengo32
₹ 4,100,000
₹ 3,300,000
15 km/litre
210 km/hr

statistic method since the sample size is less than 30. We will calulate the value of P-value and compare it with the significance level. The c

oblem statement it is noted "If the cars are performing better than expected, then the engineer wants to revise the specifications. However, if
s an indication that more investment is needed in the design to improve their performance. "
ull hypothesis is assumed to their top speed and the mileage as exactly as what the specifications were determined and the alternate hypothe

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.45880250309 5.14633236801756
Standard Error of
Mean
( S.E ) = Sample
Standard Deviation /
Sqrt(sample Size) 0.102591358516 1.15075490096947

Degrees of Freedom
[ df = n-1 ] 19 19
T-statistic = ( Sample
Mean - Hypothesised
Mean )/S.E. 1.564459251949 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 Null Hypothesis. Also the Top Speed p-value (0.373) which is
greated than ⍺ (0.05) hence we fail to reject the Null Hypothesis.
Hence we fail to reject the null hypothesis.
ompare it with the significance level. The confidence level is choosen to

nts to revise the specifications. However, if they are performing worse

were determined and the alternate hypothesis will be opposite of the same.

You might also like