chi2cdf
Chi-square cumulative distribution function
📝Syntax
p = chi2cdf(x, v)
p = chi2cdf(x, v, 'upper')
📥Input Arguments
Parameter Description
x real numeric array: values where the distribution is evaluated.
v positive real numeric array or scalar: degrees of freedom.
📤Output Arguments
Parameter Description
p cumulative probabilities or upper-tail probabilities.
📄Description

chi2cdf computes lower-tail chi-square probabilities by default and upper-tail probabilities when 'upper' is specified.

💡Examples
x = [0.5 1 2 5];
p = chi2cdf(x, 4);
q = chi2cdf(x, 4, 'upper');
🔗See Also
chi2pdfchi2inv
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub