Exercise

# Chi-squared Goodness of Fit II

Your null hypothesis is that 60% of college students go to parties regularly, 30% go occaisionally and 10% never go.

We already know you can run a Chi-squared test by hand - you've proven that! Let's use the R function `chisq.test()`

this time. The first argument of `chisq.test()`

is an object containing your observed data, and then we add your expected data using the argument `p =`

.
For instance: `chisq.test(your_data_here, p = expected_probabilites)`

Instructions

**100 XP**

- Your observed values are saved in your console as
`observed`

. The expected probabilities are assigned to object`probs`

in your script. - In your script, assign the output of the chi-squared goodness of fit test to object
`x`

. - In your script, print
`x`

. - Hit 'Submit' and have a look at the results!