Peluang Chi Square

Misalkan diketahui:

\(\sigma^2 = 2\)
\(s^2 = 0{,}975^2 = 0{,}9506\)
\(n = 10\)

var <- 2
s2  <- 0.975^2
n   <- 10

Maka:

$$ \begin{aligned} P (\chi^2 \leq \chi_{\alpha, v}) &= P \left(\chi^2 \leq \frac{(n - 1)s^2}{\sigma^2} \right)\\ &= P \left(\chi^2 \leq \frac{(10 - 1)0{,}9506}{2} \right)\\ &= P (\chi^2 \leq 4{,}277)\\ &= 0{,}1078 \end{aligned} $$

khi <- (n-1)*s2/var
p   <- pchisq(khi, n-1)

Referensi: Chi-Square