Chi squared test to test if data is from same distribution
17 views (last 30 days)
I have recorded some discrete data with an unspecified distribution.
I have generated some discrete data from a model.
I looking to check to see if the generated data has the same distribution as the real data.
If the data was continious, I would use a Q-Q plot and a striaght line would indicate that it is true.
As the data is discrete, I need another test.
I was thinking a chi-squared test would be suitbale?
Would Matlab have such a function? I would be grateful if somebody could perhaps demonstrate an example?
More Answers (1)
AI, Data Science, and Statistics Statistics and Machine Learning Toolbox Probability Distributions Continuous Distributions Chi-Square Distribution