a) (2 points) What percent of males did not visit a fast food restaurant in the
ID: 3366283 • Letter: A
Question
a) (2 points) What percent of males did not visit a fast food restaurant in the past 7 days? b) (4 points) Test the following hypothesis: Ho: There is no relationship between gender and visiting fast food Ha: There is a significant relationship between gender and visiting fast food Report the conclusion, including the value of your test statistic and the p-value. q01 Visited last 7 days q13 Gender Crosstabulation q13 Gender Male Female 104 58.4% 20.2% 10.2% 411 48.9% 79.8% 40.4% 515 50.6% 100.0% 50.6% Total 178 100.0% 17.5% 17.5% 840 100.0% 82.5% 82.5% 1018 100.0% 100.0% 100.0% Count % within q01 Visited last 7 days % within q13 Gender % of Total 74 41.6% 14.7% 7.3% 429 51.1 % 85.3% 42.1 % 503 49.4% 100.0% 49.4% q01 Visited last 7 days No Yes Count % within q01 Visited last 7 days % within q13 Gender % of Total Count % within q01 Visited last 7 days % within q13 Gender % of Total Total Chi-Square Tests Asymptotic Significance (2-sided) Value df Pearson Chi-Square 5.301 N of Valid Cases 1018 a. O cells (0.0%) have expected count less than 5, The minimum expected count is 87.95Explanation / Answer
a) There are 41.6% males did not visited to the fast food restaurant in past 7 days.(as shown above)
b) Here R-code for given test as;
x=c(429,74)
y=c(411,104)
d=data.frame(y,x)
chisq.test(d)
and the output is ;
> chisq.test(d)
Pearson's Chi-squared test with Yates' continuity
correction
data: d
X-squared = 4.928, df = 1, p-value = 0.02642
Here p-value is 0.02642 which is less than 0.05 thus we reject H0 at 5% l.o.s.(the value of test statistics is 4.928)
And conclude that There is significant relationship between Gender and visiting fast food.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.