Stat 2000: Tips for Assignment 2

Published: Thu, 10/10/13

Do note that my midterm seminar is coming up in a couple of weeks (Oct. 26 and 27).  Click here for more details:
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:
Tips for Assignment 2
You need to study Lesson 4: Comparing Two Means and Lesson 5: Oneway Analysis of Variance in my book (if you have it) to prepare for this assignmentDo not attempt to do this assignment until you have studied ALL of these lessons.  Note that, if you are using an older edition of my book, you may find that I teach Matched Pairs at the end of Lesson 2.  Newer editions teach Matched pairs in Lesson 4.
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
Note that you will be using Table D for this and other questions on this assignment.  Be sure to download it from the resources section in StatsPortal, or here is a link:
It is quite obvious that this is a matched pairs problem.  Very similar to my questions 1 and 2 in Lesson 4.  Be sure that, when you enter the P-value, put the smaller P-value in the left box, and the larger in the right box.  For example, if Table D tells you that your P-value is between .10 and .05, enter .05 in the first box, and .10 in the second.
Question 2
This is obviously a two-sample problem like my questions 4 and 5 in Lesson 4.  Be sure you use the Rule of Thumb to decide whether you will use the pooled method or the unpooled method.
To do the JMP:

The key thing to understand is that you will type all the scores down the first column.  Double-click Column 1 and give it a name that describes the variable both scores are measuring.  Here, that is "pH Level ".  Type all the Upstream scores down Column 1, and then continue to type all the Downstream scores down Column 1.

Now double-click the region at the top to the right of Column 1 to create a new column.  Call that column "Location"  and type Upstream repeatedly down column 2 in all the rows that have upstream scores in Column 1.  Then type Downstream in the rest of the rows. I suggest you type your first word, then copy and paste it in all the other relevant cells in Column 2, then type your second word and copy and paste it to ensure there are no typos.  Thus, I would have two columns of data.  The first column shows all the numerical data scores (all the pH Levels) and the second column labels the data in the first column telling me which group the scores belong to (Upstream or Downstream).

Double-click Column 1 and confirm that its Data Type is Numeric and its Modeling Type is Continuous, changing the settings if necessary.  Double-click Column 2 and confirm that its Data Type is Character and its Modeling Type is Nominal, changing the settings if necessary.

Now select "Analyze, Fit Y By X".  Select Column 1 and click "Y, Response" and select Column 2 and click "X, Factor".  Click OK.  You will see a graph with dots plotted representing all the scores in two columns. 

If you don't see two columns of dots for the two samples, you have not labelled your data correctly!
  Close the screen and go back to your data table.  Double-click Column 1 and make sure that its Data Type is Numeric and its Modeling Type is Continuous, changing the settings if necessary.  Double-click Column 2 and confirm that its Data Type is Character and its Modeling Type is Nominal, changing the settings if necessary.

Once you have the graph showing the vertical array of dots for your two samples, you are ready to analyze the data.


Click the red triangle and select "Means and Std Dev" to get a summary of the means and standard deviations.   Click the red triangle and select "Display Options" and select "Box Plots" if they have requested side-by-side boxplots.  Click the red triangle and select "Means/Anova/Pooled t" to get JMP to do the pooled two-sample t test.  Click the red triangle again and select "t-Test" to get JMP to do the generalized two-sample t test (not pooling). You will note that, when JMP does the pooled t-test, it says, under the "t Test" title bar, "Assuming equal variances."  When JMP does the generalized t-test, it says, under the "t Test title bar, "Assuming unequal variances."


JMP does not know whether you are doing an upper-tailed, lower-tailed or two-tailed test, so it gives you the P-value for all three.  You have to be clear yourself what the alternative hypothesis is, and therefore which of the three P-values are correct.
Question 3
Just like question 2 above.  Obviously, name the columns differently, following their instructions.
Question 4
Make sure you press HTML Editor before you type anything in the box.  I teach you how to interpret confidence intervals in Lesson 1 and how to interpret P-values in Lesson 2.  Be careful though, those were interpretations for confidence intervals or P-values for the mean.  Now you are interpreting for the difference between two means, so be careful in your wording.
Question 5
Note that you will be using Table E for this and other questions on this assignment.  Be sure to download it from the resources section in StatsPortal, or here is a link:
This is very similar to my questions 3 and 4 in Lesson 5 .  Also make sure you read my section about Confidence Intervals in Anova in question 5 of that lesson before you answer part (g).  Again, I recommend you put the lower of the two bounds for your P-value in the first box for part (c) and put the upper bound in the second box.
Question 6
This is an Anova question. It is very similar to my question 1 in Lesson 5.  In part (d), when they ask for the values of ni, all they mean is tell them what n1 equals, n2 equals, and n3 equals.
This question should be done by hand (i.e. with your calculator, not with JMP ).  Use the given means and standard deviations to compute everything yourself, just as I do in my question 1.  You will then be able to check your answers when you use JMP.  Note that your answers may be slightly different than JMP's since you have used rounded off values for the means and standard deviations.

Make sure you click HTML Editor before you type any of your answers into the box they provide.  When you answer parts (c), (d) and (e), you may want to use the math writing icon, but good luck.  It is awfully clunky and quite slow and frustrating.  Personally, I would just write it in text like this, "SSG = 5(16-30) + 4(12-30) + ..." (I am making up those numbers.)  Then MSG = SSG/DFG = 51/2 = etc.

To summarize the results in your ANOVA table in part (h) , just use the Tab key to separate the columns in the table if you want.  Or, copy and paste the ANOVA table JMP makes for you (of course, JMP better have come up with the same numbers you did by hand, although there may be some discrepancy due to the rounding off that was done to the given means and standard deviations).

To do ANOVA with JMP:
The key thing to understand is that you will type all the scores down the first column.  Double-click Column 1 and name "Rent".  type all the Calgary scores down the column, then all the Saskatoon scores, then all the Winnipeg scores.  Then create Column 2 and name the column "City".  Type "Calgary" repeatedly down column 2 in all the rows that have Calgary scores in Column 1.  Then type "Saskatoon" for the appropriate cells in column 2 and type "Winnipeg " for the rest of the rows.  I suggest you type your first word, then copy and paste it in all the other relevant cells in Column 2, then type your second word and copy and paste it, and your third word to ensure there are no typos.  Thus, I would have two columns of data.  The first column shows all the numerical data scores (all the rents) and the second column labels the data in the first column telling me which city the rents belong to.

Double-click Column 1 and confirm that its Data Type is Numeric and its Modeling Type is Continuous, changing the settings if necessary.  Double-click Column 2 and confirm that its Data Type is Character and its Modeling Type is Nominal, changing the settings if necessary.

Now select "Analyze, Fit Y By X ".  Select Column 1 and click "Y, Response" and select Column 2 and click "X, Factor".  Click OK.  You will see a graph with dots plotted representing all the rents in three columns, one column of dots for each city.  If you don't see this graph at all, you did not label your columns properly.  Go back and make sure Column 1 is Numeric and Continuous and Column 2 is Character and Nominal.

Click the red triangle and select "Means and Std Dev" to get a summary of the means and standard deviations.  Confirm that JMP computed the same means and standard deviations for each city that you were given at the start of the question.  Click the red triangle and select "Means/Anova/Pooled t" to get JMP to do the Anova.  Click the red triangle and select "Display Options" and select the "Box Plot " to get the side-by-side boxplots they request.
Click Display Options again and deselect Show Points and Grand Mean to remove those things from the graph as they request.
  • 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.