Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Data Analysis with STATA

You're reading from   Data Analysis with STATA Explore the big data field and learn how to perform data analytics and predictive modelling in STATA

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher Packt
ISBN-13 9781782173175
Length 176 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction to Stata and Data Analytics FREE CHAPTER 2. Stata Programming and Data Management 3. Data Visualization 4. Important Statistical Tests in Stata 5. Linear Regression in Stata 6. Logistic Regression in Stata 7. Survey Analysis in Stata 8. Time Series Analysis in Stata 9. Survival Analysis in Stata Index

The chi-square goodness of fit test

The chi-square (the goodness of fit check) gives you the option to test whether proportions of observed values statistically differ from the values in the hypothesis population proportions.

The chi-square statistical test is generally leveraged to compare the observed data with the hypothesized data. It also gives you an idea about the goodness of fit before you start with the modeling exercise. It checks for the deviations between different samples of the observed data, what we believe the data would look like, and what insights the data will have. The chi-square test gives you the deviation with respect to a null hypothesis.

For example, let's assume that the inventory of fridges consists of 20% model1, 20% model2, 10% model3, and 50% model4. We need to check whether the observed data has proportions in the sample data. For such problems, you need to run a chi-square test of the goodness of fit. Here is how you perform the chi-square test for the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime