\[f(x, \mu, \sigma) = \frac{1}{\sigma\sqrt{2\pi}}e^{\frac{-(x - \mu)^2}{2\sigma^2}}\]
From StackExchange
\[ \chi^2 = \sum{\frac{(Observed - Expected)^2}{Expected}}\]
So:
Ethnicity | Diagnosed | Not Diagnosed | Total |
---|---|---|---|
Latin | 72 | 128 | 200 |
Value Type | Diagnosed | Not Diagnosed | Total |
---|---|---|---|
Observed | 72 | 128 | 200 |
Expected | 100 | 100 | 200 |
Value Type | Diagnosed | Not Diagnosed |
---|---|---|
Observed | 72 | 128 |
Expected | 100 | 100 |
Observed - Expected | -28 | 28 |
## [1] 3.841459
The End