In: Statistics and Probability
The following table displays the results from a Harris Interactive Poll of 2276 randomly selected adults in the United States. The responses are separated by the individual’s generation (age group).
Generation
Do you feel that self- Millennials | Generation X | Baby Boomers | Matures
driving vehicles are Yes | 167 | 210 | 262 | 141
the future of driving? No | 311 | 427 | 443 | 315
Is a person’s feeling regarding self-driving vehicles being the future of driving independent of their generation (age group) at the 0.05 level of significance?
we have to test that
a person’s feeling regarding self-driving vehicles being the future of driving independent of their generation
that is
H0: a person’s feeling regarding self-driving vehicles being the future of driving independent of their generation
Ha: a person’s feeling regarding self-driving vehicles being the future of driving dependent of their generation
we have observed values as given below
Millenials | generation X | baby boomers | matures | total | |
Yes | 167 | 210 | 262 | 141 | 780 |
No | 311 | 427 | 443 | 315 | 1496 |
total | 478 | 637 | 705 | 456 | 2276 |
we have N=2276
for testing we need expected frequency for each cell which is given as given below
expected frequency for cell (i,j) is given by i=1,2 j=1,2,3,4
i=1,2 j=1,2,3,4
now expected frequency table is given by
Millenials | generation X | baby boomers | matures | total | |
Yes | 163.8137 | 218.304 | 241.6081 | 156.2742 | 780 |
No | 314.1863 | 418.696 | 463.3919 | 299.7258 | 1496 |
total | 478 | 637 | 705 | 456 | 2276 |
now test statistics is given by
where O for observed E for expected
DF=( no.of rows-1)*(no.of columns -1) =(2-1)*(4-1) =3
now P value is given by
since P Value is greater than level of significance hence we failed to reject H0 hence we do not have enough evidence to conclude that a person’s feeling regarding self-driving vehicles being the future of driving dependent of their generation