Stine and Foster Problem 5-39: Gasoline Sales
A service station near an interstate highway sells three grades of gasoline: regular, plus, and premium. During the last week, the manager counted the number of cars that purchased these types of gasoline. He kept the counts separate for weekdays and the weekend. The data table has two categorical variables. One distinguishes weekdays from weekends, and the other indicates the type of gas (regular, plus, or premium).
(a)Find the contingency table defined by the day of the week and the type of gas. Include the marginal distributions.
The marginal distributions are the borders of the contingency table:
Grade of Gasoline / Premium / 21.38Plus / 14.93
Regular / 63.69
Type of Day / Weekday / 76.58
Weekend / 23.42
(b)Find the conditional distribution of purchase type for weekday purchases.
Premium / Plus / RegularWeekday Purchases / 18.61 / 15.21 / 66.17
(c)Find the conditional distribution of premium purchases during the week and weekend.
PremiumWeekday Purchase / 66.67
Weekend Purchases / 33.33
(d)Does the fact that your answers to parts (b) and (c) are different indicate association?"
No. These conditional distributions are not directly comparable. One refers to the type of gas given the purchase happens on a weekday, whereas the second refers to the timing of the purchase given that premium gas was bought. To illustrate association, one can, for example, compare the conditional distribution of purchases of plus and regular gas to the answer in part c.
Premium / Plus / Regular / MarginalWeekday Purchase / 66.67 / 78.03 / 79.57 / 76.58
Weekend Purchases / 33.33 / 21.97 / 20.43 / 23.42