# Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

# Hypothesis Testing

Goodness-of-fit tests such as Chi-square, Kolmogorov-Smirnov, Shapiro-Wilk, and t-test

## MuPAD Functions

 `stats::csGOFT` Classical chi-square goodness-of-fit test `stats::equiprobableCells` Divide the real line into equiprobable intervals `stats::ksGOFT` The Kolmogorov-Smirnov goodness-of-fit test `stats::swGOFT` The Shapiro-Wilk goodness-of-fit test for normality `stats::tTest` T-test for a mean

## Examples and How To

Perform chi-square Test

For the classical chi-square goodness-of-fit test, MuPAD® provides the stats::csGOFT function.

Perform Kolmogorov-Smirnov Test

For the Kolmogorov-Smirnov goodness-of-fit test, MuPAD provides the stats::ksGOFT function.

Perform Shapiro-Wilk Test

The Shapiro-Wilk goodness-of-fit test asserts the hypothesis that the data has a normal distribution.

Perform t-Test

The t-Test compares the actual mean value of a data sample with the specified value `m`.

## Concepts

Principles of Hypothesis Testing

Hypothesis (goodness-of-fit) testing is a common method that uses statistical evidence from a sample to draw a conclusion about a population.

Was this topic helpful?

Watch now