pchisq() — Chi-square probability

Tells you how much of this special curve is below a number you pick.

pchisq(q, df, lower.tail = TRUE)

Key idea

Definition

the chi-square value
degrees of freedom (df)
the gamma function
the lower incomplete gamma

Where you'd use it

Frequently asked questions

Which tail do chi-square tests use?
Almost always the upper tail — set lower.tail = FALSE.
What is df?
Degrees of freedom — it sets the shape of the distribution.