-1::1
Simple Hit Counter
Skip to content

Products

Solutions

×
×
Sign In

EN

EN - EnglishCN - 简体中文DE - DeutschES - EspañolKR - 한국어IT - ItalianoFR - FrançaisPT - Português do BrasilPL - PolskiHE - עִבְרִיתRU - РусскийJA - 日本語TR - TürkçeAR - العربية
Sign In Start Free Trial

RESEARCH

JoVE Journal

Peer reviewed scientific video journal

Behavior
Biochemistry
Bioengineering
Biology
Cancer Research
Chemistry
Developmental Biology
View All
JoVE Encyclopedia of Experiments

Video encyclopedia of advanced research methods

Biological Techniques
Biology
Cancer Research
Immunology
Neuroscience
Microbiology
JoVE Visualize

Visualizing science through experiment videos

EDUCATION

JoVE Core

Video textbooks for undergraduate courses

Analytical Chemistry
Anatomy and Physiology
Biology
Cell Biology
Chemistry
Civil Engineering
Electrical Engineering
View All
JoVE Science Education

Visual demonstrations of key scientific experiments

Advanced Biology
Basic Biology
Chemistry
View All
JoVE Lab Manual

Videos of experiments for undergraduate lab courses

Biology
Chemistry

BUSINESS

JoVE Business

Video textbooks for business education

Accounting
Finance
Macroeconomics
Marketing
Microeconomics

OTHERS

JoVE Quiz

Interactive video based quizzes for formative assessments

Authors

Teaching Faculty

Librarians

K12 Schools

Biopharma

Products

RESEARCH

JoVE Journal

Peer reviewed scientific video journal

JoVE Encyclopedia of Experiments

Video encyclopedia of advanced research methods

JoVE Visualize

Visualizing science through experiment videos

EDUCATION

JoVE Core

Video textbooks for undergraduates

JoVE Science Education

Visual demonstrations of key scientific experiments

JoVE Lab Manual

Videos of experiments for undergraduate lab courses

BUSINESS

JoVE Business

Video textbooks for business education

OTHERS

JoVE Quiz

Interactive video based quizzes for formative assessments

Solutions

Authors
Teaching Faculty
Librarians
K12 Schools
Biopharma

Language

English

EN

English

CN

简体中文

DE

Deutsch

ES

Español

KR

한국어

IT

Italiano

FR

Français

PT

Português do Brasil

PL

Polski

HE

עִבְרִית

RU

Русский

JA

日本語

TR

Türkçe

AR

العربية

    Menu

    JoVE Journal

    Behavior

    Biochemistry

    Bioengineering

    Biology

    Cancer Research

    Chemistry

    Developmental Biology

    Engineering

    Environment

    Genetics

    Immunology and Infection

    Medicine

    Neuroscience

    Menu

    JoVE Encyclopedia of Experiments

    Biological Techniques

    Biology

    Cancer Research

    Immunology

    Neuroscience

    Microbiology

    Menu

    JoVE Core

    Analytical Chemistry

    Anatomy and Physiology

    Biology

    Cell Biology

    Chemistry

    Civil Engineering

    Electrical Engineering

    Introduction to Psychology

    Mechanical Engineering

    Medical-Surgical Nursing

    View All

    Menu

    JoVE Science Education

    Advanced Biology

    Basic Biology

    Chemistry

    Clinical Skills

    Engineering

    Environmental Sciences

    Physics

    Psychology

    View All

    Menu

    JoVE Lab Manual

    Biology

    Chemistry

    Menu

    JoVE Business

    Accounting

    Finance

    Macroeconomics

    Marketing

    Microeconomics

Start Free Trial
Loading...
Home
JoVE Core
Statistics
Goodness-of-Fit Test
Goodness-of-Fit Test
JoVE Core
Statistics
A subscription to JoVE is required to view this content.  Sign in or start your free trial.
JoVE Core Statistics
Goodness-of-Fit Test

8.8: Goodness-of-Fit Test

8,097 Views
01:16 min
May 22, 2025

Overview

The goodness-of-fit test is a type of hypothesis test which determines whether the data "fits" a particular distribution. For example, one may suspect that some anonymous data may fit a binomial distribution. A chi-square test (meaning the distribution for the hypothesis test is chi-square) can be used to determine if there is a fit. The null and alternative hypotheses may be written in sentences or stated as equations or inequalities. The test statistic for a goodness-of-fit test is given as follows:

Chi-squared equation, χ²=Σ(O-E)²/E, statistical analysis formula for data fit assessment.

where:

O = observed values (data), and E = expected values (from theory)

The observed values are the data values, and the expected values are the values you would expect to get if the null hypothesis were true. It is important to note that each cell’s expected needs to be at least five to use this test. The number of degrees of freedom is Degrees of freedom formula, df=k-1, concept diagram for statistical analysis in research studies., where k = the number of different data cells or categories.

The goodness-of-fit test is almost always right-tailed. If the observed and the corresponding expected values are not close, the test statistic will be significant and located at the extreme right tail of the chi-square curve.

This text is adapted from Openstax, Introductory Statistics, 11.2 Goodness-of-Fit Test.

Transcript

The goodness-of-fit test establishes whether an observed frequency distribution mirrors a claimed distribution.

Consider the dataset of people visiting the gym on weekdays. One can perform a goodness-of-fit test to determine whether the observed client attendance agrees with the expected frequency of client attendance.

To perform a goodness-of-fit test, the dataset values must be randomly selected and have a frequency value for each category, with the expected frequency of each category being at least 5.

The chi-square test statistic for the goodness-of-fit test can be computed using the shown formula. Here, O and E represent the observed and expected attendances, k is the number of weekdays, and n is the number of sample values or attendance counts recorded. The number of degrees of freedom is k minus one.

Goodness-of-fit hypothesis tests are always right-tailed, implying that the critical region and critical values are located at the extreme right of the distribution curve.

The critical values and P-values help determine if there is a good fit between the observed and expected values.

Explore More Videos

Goodness-of-fit TestHypothesis TestChi-square TestNull HypothesisAlternative HypothesisObserved ValuesExpected ValuesTest StatisticDegrees Of FreedomRight-tailed TestData DistributionStatistical Significance

Related Videos

Distributions to Estimate Population Parameter

01:26

Distributions to Estimate Population Parameter

Distributions

5.0K Views

Degrees of Freedom

01:02

Degrees of Freedom

Distributions

6.6K Views

Student <em>t</em> Distribution

01:31

Student <em>t</em> Distribution

Distributions

13.4K Views

Choosing Between <em>z</em> and <em>t</em> Distribution

01:25

Choosing Between <em>z</em> and <em>t</em> Distribution

Distributions

3.5K Views

Chi-square Distribution

01:10

Chi-square Distribution

Distributions

6.4K Views

Finding Critical Values for Chi-Square

01:18

Finding Critical Values for Chi-Square

Distributions

4.2K Views

Estimating Population Standard Deviation

01:26

Estimating Population Standard Deviation

Distributions

3.3K Views

Goodness-of-Fit Test

01:16

Goodness-of-Fit Test

Distributions

8.1K Views

Expected Frequencies in Goodness-of-Fit Tests

01:19

Expected Frequencies in Goodness-of-Fit Tests

Distributions

7.1K Views

Contingency Table

01:29

Contingency Table

Distributions

3.8K Views

Introduction to Test of Independence

01:21

Introduction to Test of Independence

Distributions

2.9K Views

Hypothesis Test for Test of Independence

01:16

Hypothesis Test for Test of Independence

Distributions

7.4K Views

Determination of Expected Frequency

01:08

Determination of Expected Frequency

Distributions

2.5K Views

Test for Homogeneity

01:23

Test for Homogeneity

Distributions

2.4K Views

<em>F</em> Distribution

01:19

<em>F</em> Distribution

Distributions

8.9K Views

JoVE logo
Contact Us Recommend to Library
Research
  • JoVE Journal
  • JoVE Encyclopedia of Experiments
  • JoVE Visualize
Business
  • JoVE Business
Education
  • JoVE Core
  • JoVE Science Education
  • JoVE Lab Manual
  • JoVE Quizzes
Solutions
  • Authors
  • Teaching Faculty
  • Librarians
  • K12 Schools
  • Biopharma
About JoVE
  • Overview
  • Leadership
Others
  • JoVE Newsletters
  • JoVE Help Center
  • Blogs
  • Site Maps
Contact Us Recommend to Library
JoVE logo

Copyright © 2026 MyJoVE Corporation. All rights reserved

Privacy Terms of Use Policies
WeChat QR code