{"id":586,"date":"2015-07-20T08:00:56","date_gmt":"2015-07-20T12:00:56","guid":{"rendered":"http:\/\/sites.berry.edu\/vbissonnette\/?page_id=586"},"modified":"2017-08-02T13:51:40","modified_gmt":"2017-08-02T17:51:40","slug":"goodness-of-fit-test","status":"publish","type":"page","link":"https:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/goodness-of-fit-test\/","title":{"rendered":"Goodness of Fit Test"},"content":{"rendered":"<h3>Your homework problem:<\/h3>\n<p>You suspect that a gambler&#8217;s die is &#8220;loaded,&#8221; such that its\u00a0 six outcomes are <u>not<\/u> equally likely. You roll this die 120 times\u00a0 and get the following results:<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"border-bottom: 1px solid black\">Side of Die:<\/td>\n<td style=\"width: 45px;text-align: center;border-bottom-color: black;border-bottom-width: 1px;border-bottom-style: solid\">1<\/td>\n<td style=\"width: 45px;text-align: center;border-bottom-color: black;border-bottom-width: 1px;border-bottom-style: solid\">2<\/td>\n<td style=\"width: 45px;text-align: center;border-bottom-color: black;border-bottom-width: 1px;border-bottom-style: solid\">3<\/td>\n<td style=\"width: 45px;text-align: center;border-bottom-color: black;border-bottom-width: 1px;border-bottom-style: solid\">4<\/td>\n<td style=\"width: 45px;text-align: center;border-bottom-color: black;border-bottom-width: 1px;border-bottom-style: solid\">5<\/td>\n<td style=\"width: 45px;text-align: center;border-bottom-color: black;border-bottom-width: 1px;border-bottom-style: solid\">6<\/td>\n<\/tr>\n<tr>\n<td class=\"lf\">Observed Frequency:<\/td>\n<td style=\"text-align: center\">16<\/td>\n<td style=\"text-align: center\">16<\/td>\n<td style=\"text-align: center\">10<\/td>\n<td style=\"text-align: center\">20<\/td>\n<td style=\"text-align: center\">28<\/td>\n<td style=\"text-align: center\">30<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>Is this a fair die? In other words, does the obtained pattern of\u00a0 frequencies deviate significantly from what you would expect by\u00a0 chance (i.e., equal probability) (alpha = .05)?<\/p>\n<p>If you would like some help with the hand-written work on this\u00a0 problem, then <a href=\"http:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/goodness-of-fit-test\/goodness-of-fit-test-solution\/\">click here<\/a>.<\/p>\n<hr \/>\n<p>In <i>Stats Homework<\/i> pull down the <b>Analyze<\/b> menu, choose \u00a0<strong>Analysis\u00a0of Frequency or Proportion<\/strong>, and then choose <b>Goodness of Fit Test<\/b>.<\/p>\n<h4>Entering Frequency Data<\/h4>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1374\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit3.png\" alt=\"\" width=\"597\" height=\"423\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit3.png 597w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit3-300x213.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit3-260x184.png 260w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/a><\/p>\n<p>Click &#8216;Manually enter frequency data,&#8217; enter a name for your variable, and then enter 6 for the number of categories. \u00a0Click both output options, and then click the\u00a0<strong>Next Step<\/strong> button.<\/p>\n<h4>Working with Raw Data<\/h4>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1007\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit4.png\" alt=\"gfit4\" width=\"612\" height=\"463\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit4.png 612w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit4-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit4-260x197.png 260w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/p>\n<p>It&#8217;s possible that you will work with a data set that contains the raw data for a goodness-of-fit test. \u00a0In this case, you would have a data set with 120 observations &#8212; 16 ones, 16 twos, 10 threes, 20 fours, 28 fives, and 30 sixes. \u00a0In this case, you would specify this variable in this dialog:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1377\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit5.png\" alt=\"\" width=\"597\" height=\"423\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit5.png 597w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit5-300x213.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit5-260x184.png 260w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/a><\/p>\n<p>Click &#8216;Analyze frequencies in a variable,&#8217; and click the variable name. \u00a0Then click all of the output options and the\u00a0<strong>Next Step<\/strong> button.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1009\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit6.png\" alt=\"gfit6\" width=\"388\" height=\"457\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit6.png 388w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit6-255x300.png 255w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit6-260x306.png 260w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/a><\/p>\n<p>If you are working with raw data, this table will already be filled in for you. \u00a0If you are entering frequencies manually, then it will be blank. \u00a0Enter your category labels and your observed frequencies.<\/p>\n<p>Next, specify whether or not you expect equal frequencies under your null hypothesis. \u00a0If yes, click the first option and then click\u00a0<strong>Compute<\/strong>. \u00a0If no, click the second option and then click the\u00a0<strong>Next Step<\/strong> button (the Compute button changes into the Next Step button when you choose this option). \u00a0If you expect unequal frequencies, you will be presented with a third dialog that will ask you to enter these.<\/p>\n<h4>Output<\/h4>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1010\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit7.png\" alt=\"gfit7\" width=\"582\" height=\"452\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit7.png 582w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit7-300x233.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/gfit7-260x202.png 260w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/a><\/p>\n<p><b>Descriptive Statistics<\/b>. This table lists the observed and expected\u00a0frequencies for each outcome category, along with the total observed and expected frequencies (these should match). In addition, this table presents each outcome category&#8217;s contribution to the Chi Square statistic, and the total Chi Square statistic.<\/p>\n<p><b>Inferential Statistics<\/b>. This table presents the Chi Square statistic (14.80), its <i>df<\/i> (5), and the <i>p<\/i> value for the obtained value of Chi Square (.01).<\/p>\n<p><strong>Effect Size Statistic<\/strong>. \u00a0This output includes the value of Cohen&#8217;s W (.35), which is interpreted much like the value of a correlation coefficient.<\/p>\n<p><b>Critical Values<\/b>. These are the values from a statistical <a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2015\/07\/chisqr.pdf\">table of critical values<\/a> for the Chi Square test.\u00a0In our case, we are conducting a test with alpha = .05.\u00a0So, we would compare the value of our obtained Chi Square (14.80) to 11.070.<a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1375\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit8.png\" alt=\"\" width=\"706\" height=\"531\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit8.png 706w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit8-300x226.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2017\/08\/gfit8-260x196.png 260w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/a><strong>Bar Chart.<\/strong> This chart will illustrate the frequencies that you analyzed with the goodness-of-fit test.\u00a0 It can plot the frequencies or the relative frequencies, and it offers you a number of options for customizing the chart to your needs.<\/p>\n<hr \/>\n<p><a href=\"http:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/goodness-of-fit-test\/goodness-of-fit-test-solution\/\">See the Hand-Written Work<\/a><\/p>\n<p><a href=\"http:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/\">Return to Table of Contents<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your homework problem: You suspect that a gambler&#8217;s die is &#8220;loaded,&#8221; such that its\u00a0 six outcomes are not equally likely. You roll this die 120 times\u00a0 and get the following [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"parent":282,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"class_list":["post-586","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/comments?post=586"}],"version-history":[{"count":15,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/586\/revisions"}],"predecessor-version":[{"id":1380,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/586\/revisions\/1380"}],"up":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/282"}],"wp:attachment":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/media?parent=586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}