Statistics Homework 2 Problem 1.: ST RD
Statistics Homework 2 Problem 1.: ST RD
The feud between vanilla and chocolate has created enemies in ice
and rain alike. Just how to make the decision between two scrumptious
delights is very perplexing to the uneducated consumer. In considering
potential factors resulting in consumer preference, caloric intake may
contribute to the preference curve of a chocolate or vanilla consumer.
It was hypothesized that caloric content of chocolate vs. Vanilla icecream would have a null effect on consumer utility derived from said
product. To test that hypothesis, a population of 79 icecream brands
both chocolate and vanilla was assembled and calorie content was
noted.
Initially looking at the data, the variable calories was separated by
flavor to compare chocolate vs. vanilla. The subset of chocolate icecream was found to have the following characteristics:
Min.
120
1st Qu
140
Median
170
Mean
198.7
3rd Qu
260
Max
320
1st Qu
140
Median
160
Mean
191.4
3rd Qu
240
Max
307
A random distribution analysis of the mean difference for the data was
performed. The sample size was set to n=491 and R was repeated
1000 times. It was hypothesized that a null hypothesis would return a
mean difference of 0, since that would indicate no difference in Icecream means. The alternative hypothesis was that Vanilla was not
equal to Chocolate. When the data was tested, the left tailed P value
was calculated at 0.305. Since the randomization distribution is not
100% normal, we must multiply that value by 2, giving a P value of
0.61. This P value is too large to reject the null hypothesis. Therefore,
there is not a statistically significant different in calories between
chocolate and vanilla ice-creams.
Theres a terrible movie from the 90s called War Games where a
computer narrowly avoids total nuclear warfare by being programmed