DEFINITION of 'GoodnessOfFit'
Used in statistics and statistical modelling to compare an anticipated frequency to an actual frequency. Goodnessoffit tests are often used in business decision making. In order to calculate a chisquare goodnessoffit, it is necessary to first state the null hypothesis and the alternative hypothesis, choose a significance level (such as α = 0.5) and determine the critical value.
INVESTOPEDIA EXPLAINS 'GoodnessOfFit'
For example, a small community gym might be operating under the assumption that it has its highest attendance on Mondays, Tuesdays and Saturdays, average attendance on Wednesdays and Thursdays, and lowest attendance on Fridays and Sundays. Based on these assumptions, the gym employs a certain number of staff each day to check in members, clean facilities, offer training services and teach classes. However, the gym is not performing well financially and the owner wants to know if these attendance assumptions and staffing levels are correct. The owner decides to count the number of gym attendees each day for six weeks. He can then compare the gym's assumed attendance with its observed attendance using a chisquare goodnessoffit test for example. With the new data, he can determine how to best manage the gym and improve profitability.

Chi Square Statistic
A measurement of how expectations compare to results. The data ... 
Degrees Of Freedom
In statistics, the number of values in a study that are free ... 
Statistical Significance
A result that is not likely to occur randomly, but rather is ... 
Probability Distribution
A statistical function that describes all the possible values ... 
Sampling Error
A statistical error to which an analyst exposes a model simply ... 
Null Hypothesis
A type of hypothesis used in statistics that proposes that no ...

Fundamental Analysis
Find The Right Fit With Probability Distributions
Discover a few of the most popular probability distributions and how to calculate them. 
Fundamental Analysis
What is a Null Hypothesis?
In statistics, a null hypothesis is assumed true until proven otherwise. 
Investing
How to Use Stratified Random Sampling
Stratified random sampling is a technique best used with a sample population easily broken into distinct subgroups. Samples are then taken from each subgroup based on the ratio of the subgroup’s ... 
Fundamental Analysis
Lognormal and Normal Distribution
When and why do you use lognormal distribution or normal distribution for analyzing securities? Lognormal for stocks, normal for portfolio returns. 
Investing Basics
Using Normal Distribution Formula To Optimize Your Portfolio
Normal or bell curve distribution can be used in portfolio theory to help portfolio managers maximize return and minimize risk. 
Technical Indicators
The Normal Distribution Table, Explained
The normal distribution formula is based on two simple parameters  mean and standard deviation 
Economics
Can Investors Trust Official Statistics?
The official statistics in some countries need to be taken with a grain of salt. Find out why you should be skeptical. 
Investing Basics
RSquared
Learn more about this statistical measurement used to represent movement between a security and its benchmark. 
Active Trading Fundamentals
Hypothesis Testing in Finance: Concept & Examples
When you're indecisive about an investment, the best way to keep a cool head might be test various hypotheses using the most relevant statistics. 
Investing Basics
Industry Handbook
In this feature, we take an indepth look at the various techniques that determine the value and investment quality of companies from an industry perspective.