Stat 2000: Tips for Assignment 4

Published: Wed, 11/20/13

I have decided not to offer a Final Exam Prep Seminar for Stat 2000 this term due to scheduling difficulties and insufficient demand.  I am, however, offering my Audio Lectures for 20% off.  This is over 40 hours of audio files teaching every lesson in my Basic Stats 2 book.  The files are broken up into bite-size pieces so that you can focus on specific lessons in my book, or even specific questions. 

If you are interested in purchasing my audio, reply to this email and let me know.  I will send you a PayPal invoice for only $40 + GST.  You can pay using your PayPal account or by credit card.  The audio is then delivered straight to your inbox within 24 hours.
Did you read my tips on how to study and learn Stat 2000?  If not, here is a link to those important suggestions:
Did you read my Calculator Tips?  If not, here is a link to those important suggestions:
Did you read my Tips for Assignment 1?  If not, here is a link to those important suggestions:
Did you read my Tips for Assignment 2?  If not, here is a link to those important suggestions:
Did you read my Tips for Assignment 3?  If not, here is a link to those important suggestions:
Tips for Assignment 4
You need to study Lesson 7: Inferences about Proportions (if you are using an older edition of my book, this may be Lesson 8).  You also will need to study the first half of Lesson 8: Chi-Square Tests (up to the end of question 4, you do not need to study the Goodness-of-Fit Test at this time).
Don't have my book?  You can download a free sample containing Lesson 3 at my website here:
A Warning about StatsPortal
It appears that StatsPortal is not fully functional if you are using Internet Explorer as your browser.  This has ramifications if you are using the HTML Editor box.  I strongly recommend that you use Mozilla Firefox as your internet browser whether you use a Mac or PC to ensure no problems with submitting your assignments.  Here is a link where you can download Firefox direct from Mozilla (it is free):

Do note that every time you exit a question in StatsPortal, the next time you return to it, the data may very well change.  Do not press the "back-up" button on your browser in a question.  That, too, will change the data.  When you are prepared to actually do a question, open the link, keep it open, and do not close it until you have submitted your answers.  There is also some debate whether even pressing "Save Answers" locks the data in place.

You should also have already downloaded the JMP statistical software which was provided with either one of the course options for StatsPortal as mentioned in your course outline.

Make sure you have gone through Assignment 0 completely to learn how to use the interface.  I also suggest you print out a copy of question 8 in Assignment 0 (Long Answer Questions - Part 3) so that you have the steps for saving and uploading files into the HTML editor in front of you.
Question 1
This is very similar to my question 1(c) and (d) in Lesson 7
Question 2
This is standard sample size stuff, like my questions 6 to 8 in Lesson 7.  Note that part (b) is talking about the Inverse-Square Relationship for sample size which I introduced way back in Lesson 1, question 8.  Divide the new margin of error given in part (b) by the old margin of error given in part (a) to establish how many times bigger or smaller you want the margin of error to be, then invert and square that to see how many times larger you want the sample size to be.  (Of course, you could just do the formula again, but that may be "too good" and may get marked wrong.)
Question 3
This is a good run through of confidence intervals and hypothesis testing as I teach in Lesson 7 (see my questions 2 and 3). 

Part (h) requires an alpha/beta table.  Note that you will need to use the z* critical value you found in part (f) to compute p-hat*, the critical value for p-hat where you will reject Ho (the p-hat decision rule).  We derive p-hat* from the standardizing formula for p-hat bell curves.
Question 4
Part (a): Use the same standard two sentences as always to interpret your confidence interval as I show you way back in Lesson 1, question 1(b).  But, keep in mind that you are interpreting a confidence interval for the true proportion, p, not the true mean, mu as I am doing in my example.

Part (b): Follow my examples back in Lesson 2, question 6 to see how to interpret a P-value.  As always, first stress that you are assuming Ho is correct (what is Ho in your problem?).  Keep in mind that you are examining the difference in two proportions in your example.
Question 5
This is very similar to my questions about confidence intervals and hypothesis tests for the difference between two proportions taught in the latter half of Lesson 7

Part (g)
introduces the concept i teach in my question 4 in Lesson 8 (Chi-Square Tests).  Note that you don't really have to do any work for part (g) if you apply the concept that relates two-proportion z tests to 2 by 2 Two-Way Chi-Square analysis.
Question 6
You have to use JMP for this question.

Here is how to do Contingency Tables (2-Way Tables) in JMP:


Click New Data Table. You will need a total of three columns. Double-click Column 1 and name it "Jockey" and change the Data Type to "Character" and the Modeling Type to "Nominal". Double click the space to the right of the Smoking column to create a new column. Name that column "Placing" and change the Data Type to "Character" and the Modeling Type to "Nominal". Double click the space to the right of the Course column to create a new column. Name that column "Count" and keep the Data Type as "Numeric" but change the Modeling Type to "Nominal". 

Make sure that you have the correct Data Type and Modeling Type for each of these three columns as I outline above!


Each row in the JMP data table is used to enter the information for a particular cell of the two-way table. The first row will represent the 1,1 cell; the second row will represent the 2,1 cell; etc. For example, your 1,1 cell gives you the observed count for Placing 1st if you are Jockey A.  In the JMP data table, type Jockey A down the first column six times (or copy Jockey A in row 1 and paste it in the next five rows so that Jockey A is in the first 6 rows.  Then, put Jockey B in the next 6 rows of column 1, and Jockey C in the next 6 rows of column 1.  Thus, you will have 18 rows in total featuring Jockey A, B and C six times each.

Now, in column 2 (the Placing column), type 1st, then 2nd, then 3rd all the way to 6th in the first six rows, representing the possible places Jockey A may have finished in.  Then repeat the entries 1st through 6th for the Jockey B and Jockey C rows.

Finally, in column 3 (the Count column) enter the count you were given for each cell of your table.  The first six counts you enter will be the first column of your given two-way table, representing the counts for Jockey A finishing 1st, Jockey A finishing 2nd, all the way to Jockey A finishing 6th.  The next six counts will be the counts you have been given in the second column of your two-way table, representing the counts for Jockey B finishing 1st through 6th.  Finish by entering the six counts given for Jockey C.


You will notice that the first two columns of the JMP table are used to specify which column and row of the two-way table you are talking about, and the third column enters the observed count for that particular cell.


Once you have entered in all the observed counts, select Analyze, Fit Y By X. Select "Jockey" and click "Y, Response", select "Placing" and click "X, Factor", and select "Count" and click "Freq". Click "OK".

Click the red triangle next to "Contingency Analysis of Jockey by Placing" at the top and deselect "Mosaic Plot" to remove that from the output. You now see a Contingency Table (or two-way table) and the "Tests" below it. (If your two-way table has the rows and columns the wrong way round compared to what the question has, that doesn't really matter, but you can fix that by changing which column you called X and which you called Y.)

Click the red triangle next to Contingency Table and make sure that all that is select is "Count", "Expected" and "Cell Chi Square" to display those values in each cell of the table. Deselect everything else.  Note the Pearson ChiSquare is the test statistic for the problem (in the last row of the "Tests" output) and the Prob>ChiSq is the P-value for that test.

Now upload your output to the HTML Editor:
  • If you are using Windows:
  • Press "Alt" on your keyboard or click the thin blue line that is near the top of the window to get the toolbar icons to appear.  Select "File" then "Save As" to get a pop-up window.  Type in whatever name you want the file to have in the "File name" section. Click the "Browse Folders" arrow and select which folder you want to save the file in (I suggest you select "Desktop" so that the file will just appear right on your desktop home screen).  Finally, click the drop down arrow in the "Save as type" section and select "JPEG File".  Click "Save".  You should now have your file ready to upload into the assignment.
  • To upload your file into the text box they provide: Click "HTML editor" below the text box (if you have not already done so) to make a toolbar appear in the text box.  Click the toolbar option called "Link" and select "Image."  In the pop-up window that appears, click the button called "Find/Upload File" (it is at the bottom of the pop-up window, you may have to enlarge the box or scroll down to see it).  Click the "Browse" button and find the histogram file you just saved.  Either double-click that file or select it and click "Open" and you should see the path to that file appear in the Browse box.  Click "Upload File" and its name should appear in the "Uploaded Files" pop-up window.  Select the file in the list of "Uploaded Files" to highlight it and click OK and you should see the file appear in the text box.
  • If you are using Apple/Mac:
  • You will need to take a screen shot of your output in order to upload it.  To take a screen shot hold down Command+Shift+4 and drag the cross-hairs over the image to capture it.  The image will save a .png file to your desktop by default.
  • To upload your file into the text box they provide: Click "HTML editor" below the text box (if you have not already done so) to make a toolbar appear in the text box.  Click the toolbar option called "Link" and select "Image."  In the pop-up window that appears, click the button called "Find/Upload File" (it is at the bottom of the pop-up window, you may have to enlarge the box or scroll down to see it).  Click the "Browse" button and find the histogram file you just saved.  Either double-click that file or select it and click "Open" and you should see the path to that file appear in the Browse box.  Click "Upload File" and its name should appear in the "Uploaded Files" pop-up window.  Select the file in the list of "Uploaded Files" to highlight it and click OK and you should see the file appear in the text box.

Don't forget to answer their other questions in the HTML editor box!

When they ask in part (d)
which four cells contribute most to the test statistic, they are asking which four cells have the largest chi-square values.

Question 7
This is standard Two-Way Table Chi-Square analysis as taught in questions 1 through 4 in Lesson 8 of my book.  Be sure to put the smaller bound of the P-value in the first box, and the upper bound in the second box.