AI1806 Group4 ComputerProjectMAS291-1
AI1806 Group4 ComputerProjectMAS291-1
Life expectancy(years)(Country
Chart Tit
Mean 78.175 90
Standard Eror 0.799664 80
Median 80.4 70
Mode 78.8
60
Standard Deviation 5.30437
Sample Variance 28.13634 50
Maximum 83.2 40
Minimum 56.3 30
Range 26.9
20
Sum 3439.7
Count 44 10
0
0 5 10 15 20 25
0
0 10 20 30
1000
500
Sum 55206
Count 33
0
0 10 20 30
Happinesslevels(Country)
Mean 6.435
Standard Eror 0.149429 Chart Ti
Median 6.9
9
Mode 6.94
Standard Deviation 0.991202 8
Sample Variance 0.982481 7
Maximum 7.8 6
Minimum 3.57 5
Range 4.23
4
Sum 283.14
3
Count 44
2
1
0
0 10 20 30
Outdoor activities(City)
Mean 213.9773 Chart Ti
Standard Eror 19.17466 700
Median 189.5
Mode 223 600
Standard Deviation 127.1903 500
Sample Variance 16177.37
Maximum 585 400
Minimum 23
300
Range 562
Sum 9415 200
Count 44
100
0
0 10 20 30 40
Chart Title
10 15 20 25 30 35 40 45 50
Chart Title
0 15 20 25 30 35 40 45 50
Chart Title
20 30 40 50 60
20 30 40 50 60
Chart Title
20 30 40 50 60 70
Chart Title
20 30 40 50 60 70 80 90
Happiness levels(Country)
7.44
7.22
7.29 The sample of 44 cities is collected. Test the claim that the
7.35 level of significa
7.64
7.8
5.87 H0: μ = 6.7
7.07 H1: μ ≠ 6.7
6.4
7.23
7.22
5.12 x̄ 6.435
5.99 s 0.991202
5.97 n 44
7.23 α 0.05
6.4
5.28
5.87
7.07 Test statistic
7.56 𝑇_0 -1.773414 >Acceptance region
7.12 𝑇_(𝛼/2,𝑛−1)2.016692 > Fail to reject H0
5.13
4.15
-2.016692
〖−𝑇〗 _(𝛼/2,𝑛−1)
5.12
6.94
3.57
6.94
7.09 Two-sided 95% confident interval
5.87 x̄ 6.435
6.94 s 0.991202
5.51 n 44
5.12 𝑇_(𝛼/2,𝑛−1) 2.0166922
6.86
6.94 𝑥̄ - 𝑇_(𝛼/2,𝑛−1) 𝑠/√𝑛6.13364705
6.66
6.37 𝑥̄ + 𝑇_(𝛼/2,𝑛−1) 𝑠/√𝑛6.73635295
7.56
7.16 6,134 ≤ μ ≤ 6,736
4.81
6.38
6.94
6.94
5.54
6.46
ed. Test the claim that the average happiness levels of cities(countries) is μ = 6.7 at a
level of significance of α = 0.05.
> Critical region Summary: Less than 80% of cities have sunshine hours outside
> Reject Ho of about 2000 to 3000. Less than 80% of cities are ideal cities
Ho µ1 - µ2 = 150
H1 µ1 - µ2 ≠ 150
𝑛_1 18
𝑛_2 16
𝑥 ̅_1 250.388888889
𝑥 ̅_2 209.25
𝑠_1 93.9187000667
𝑠_2 158.686903471 > Critical region
𝑆_𝑃^2 16489.8524306 > Reject Ho
df 32
150
-2.4672954822
𝛼 0.05
𝑡_(𝛼/2,𝑑𝑓)2.03693334346
-2.0369333435
〖−𝑡〗 _(𝛼/2,𝑑𝑓)
-48.734
131.012
≤ µ1 - µ2 ≤ 131.012
Summary: average outdoor activities of a city with sunshine hours higher
than 2000 is not 150 activities more various than average outdoor
activities of a city with sunshine hours 2000 or less.
Take proportion of European cities
City Outdoor activities(City) Continent and Asian cities with outdoor activi
Amsterdam 422 European is any difference. Use
Sydney 406 Oceania 𝐻_0 𝑃_1 = 𝑃_
Vienna 132 European 𝐻_1 2
𝑃_1 ≠ 𝑃_2
Stockholm 129 European
Copenhagen 154 European 𝑛_1 19
Helsinki 113 European 𝑛_2 11
Fukuoka 35 Asia x1 6
Berlin 254 European x2 2
Barcelona 585 European 𝑝 ̂_1 0.315789
Vancouver 218 North America 𝑝 ̂_2 0.181818
Melbourne 243 Oceania 𝛼 0.1
Beijing 223 Asia 𝑧0 0.79963
Bangkok 377 Asia df 28
Buenos Aires 246 South America 𝑧_(𝛼/2) 1.644854
e Interval for𝑃_1−𝑃_2
0.133971
𝑝 ̂_2 (1−𝑝 ̂_2))/𝑛_2 ))
0.259531
)+□(64&(𝑝 ̂_2 (1−𝑝 ̂_2))/𝑛_2 ))
-0.125559
+□(64&(𝑝 ̂_2 (1−𝑝 ̂_2))/𝑛_2 ))
0.393502
≤ 0.393502
ties with outdoor activities higher
e same value
Happiness levels(Country) Life expectancy(years) (Country) SUMMARY OUTPUT
7.44 81.2
7.22 82.1 Regression Statistics
7.29 81 Multiple R
7.35 81.8 R Square
7.64 79.8 Adjusted R Square
7.8 80.4 Standard Error
5.87 83.2 Observations
7.07 80.6
6.4 82.2 ANOVA
7.23 81.7
7.22 82.1 Regression
5.12 75.4 Residual
5.99 74.1 Total
5.97 75.9
7.23 81.7
6.4 82.2 Intercept
5.28 68.5 Happiness levels(Cou
5.87 81.3
7.07 80.6
7.56 82.6
7.12 81.9
5.13 74.7
90
4.15 70.7
5.12 75.4 85
6.94 78.8 f(x) = 3.87759280606533 x + 5
80 R² = 0.525026442527142
3.57 67.3
6.94 78.8 75
7.09 80.5
Life Expectancy
5.87 83.2 70
6.94 78.8 65
5.51 75.4
5.12 75.4 60
6.86 80.4
55
6.94 78.8
6.66 81.8 50
6.37 73.9
45
7.56 82.6
3.5 4 4.
7.16 80.4
4.81 56.3
6.38 82.7
6.94 78.8
6.94 78.8 Happiness Levels
5.54 69.5 1
6.46 76.4 4
5.76
6.13
6.89
Regression Statistics
0.724587084156999
0.525026442527142
0.513717548301598
3.69894674737992
44
df SS MS F Significance F
1 635.20980432 635.2098043 46.42597517 2.686384E-08
42 574.65269568 13.68220704
43 1209.8625
85
f(x) = 3.87759280606533 x + 53.2226902929697
80 R² = 0.525026442527142
75
70
65
60
55
50
45
3.5 4 4.5 5 5.5 6 6.5 7 7.5 8
Happiness
Country)
7.5 8 8.5