How to Use the CHITEST Function in Excel

The CHITEST function in Excel and Google Sheets is utilized to calculate the chi-squared test statistic between two sets of data. This statistical test helps assess whether observed values significantly differ from expected ones.

Syntax

The syntax for the CHITEST function is:

CHITEST(actual_range, expected_range)

where:

  • actual_range refers to the range of cells that contain the observed values.
  • expected_range refers to the range of cells that contain the expected values.

Examples

Here are several examples to demonstrate the use of the CHITEST function:

Example 1 – Simple Chi-Squared Test

Consider the following observed and expected values:

Category A Category B Category C
Observed 25 30 45
Expected 20 35 45

To calculate the chi-squared test statistic, apply the formula:

=CHITEST(B2:D2,B3:D3)

The result will help determine if there is a significant difference between the observed and expected values.

Example 2 – Applying CHITEST for Data Analysis

Assume you have data on the number of website visitors by device type (observed) compared with an expected distribution based on historical data:

Desktop Mobile Tablet
Observed 500 300 200
Expected 450 350 200

By using the CHITEST function, you can analyze whether there’s a statistically significant difference in the distribution of website visitors by device type compared to the expected pattern.

Following the guidelines provided above will allow you to effectively employ the CHITEST function in Excel or Google Sheets for various statistical analytic purposes.

More information: https://support.microsoft.com/en-us/office/chitest-function-981ff871-b694-4134-848e-38ec704577ac

Other functions
Returns the beta cumulative distribution function
Returns the inverse of the cumulative distribution function for a specified beta distribution
Returns the individual term binomial distribution probability
Returns the one-tailed probability of the chi-squared distribution
Returns the inverse of the one-tailed probability of the chi-squared distribution
Returns the confidence interval for a population mean
Returns covariance, the average of the products of paired deviations
Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value
Returns the exponential distribution
Returns the F probability distribution
Rounds a number down, toward zero
Returns the result of an F-test
Returns the gamma distribution
Returns the inverse of the gamma cumulative distribution
Returns the hypergeometric distribution
Returns the inverse of the lognormal cumulative distribution
Returns the cumulative lognormal distribution
Returns the most common value in a data set
Returns the negative binomial distribution
Returns the inverse of the normal cumulative distribution
Returns the normal cumulative distribution
Returns the standard normal cumulative distribution
Returns the inverse of the standard normal cumulative distribution
Returns the k-th percentile of values in a range
Returns the percentage rank of a value in a data set
Returns the Poisson distribution
Returns the quartile of a data set
Returns the rank of a number in a list of numbers
Estimates standard deviation based on a sample
Calculates standard deviation based on the entire population
Returns the Student's t-distribution
Returns the inverse of the Student's t-distribution
Returns the probability associated with a Student's t-test
Estimates variance based on a sample
Calculates variance based on the entire population
Calculates variance based on the entire population, including numbers, text, and logical values
Returns the one-tailed probability-value of a z-test