# Learn By Doing

Learn By Doing.

I’m stuck on a Statistics question and need an explanation.

## Learn by Doing

In this activity we practice the Chi-square Test for Independence in its entirety using StatCrunch.

Some features of this activity may not work well on a cell phone or tablet. We highly recommend that you complete this activity on a computer.

Here are the directions and grading rubric for the Learn by Doing discussion board exercises.

A list of StatCrunch directions is provided at the bottom of this page.

### Context – A Real Court Case

In the early 1970s, a young man challenged an Oklahoma state law that prohibited the sale of 3.2% beer to males under age 21 but allowed its sale to females in the same age group. The case (Craig v. Boren, 429 U.S. 190, 1976) was ultimately heard by the U.S. Supreme Court. The state of Oklahoma argued that the law improved traffic safety. One of the three main pieces of data presented to the court was the result of a “random roadside survey.” This survey gathered information on gender and whether or not the driver had been drinking alcohol in the previous 2 hours. A total of 619 drivers under 21 years of age were included in the survey.

### Prompt

1. A test of independence may be appropriate if we are examining the relationship between two categorical variables in one population. For this situation what is the population? What is the explanatory variable? What is the response variable?
2. What are the hypotheses for the Test of Independence? State hypotheses with reference to the context of the scenario.
3. The spreadsheet of the data looked like this:

Driver Gender Alcohol in last
two hours?
Driver 1 M Yes
Driver 2 F No
Driver 3 F Yes
.
.
.
.
.
.
.
.
.
Driver 619 M No

We will not use the raw data. Instead we will use the summarized data shown in the table below.

Drank alcohol in last 2 hours? Male Female Yes No Totals 77 404 481 16 122 138 93 526 619

Use StatCrunch to find expected counts, the Chi-square test statistic and the P-value. (directions)