1. 学习
  2. /
  3. 课程
  4. /
  5. Inference for Categorical Data in R

Connected

练习

A p-value two ways

In this exercise you'll find out if the observed chi-squared statistic is unusually large under the following notion that,

\(H_0\): Region is independent of Happy.

The competing notion is the alternative hypothesis that there is an association between these variables. For the sake of comparison, you'll be finding the p-value first from the computational approach, then use the approximation.

说明 1 / 共 3 个

undefined XP
    1
    2
    3

Generate a distribution of the "Chisq" statistic under a null hypothesis of independence between happy and region. Save this object to null.