Follow:
|
Do note that my first midterm seminar is this weekend (Oct. 5 and 6). Click here for more details: Did you read my tips on how to study and learn Stat 1000? 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: Study Lessons 2 and 3 in my study book (if you have it) to learn the concepts involved in Assignment 2. Don't have my book? You can download a free sample containing Lesson 1 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.To compute the correlation coefficient by hand, DO NOT follow my example in Lesson 2, question 1, part (c). They have given you slightly different column headings so they want you to compute r by hand a slightly different way. They are using this formula for the correlation coefficient (click the link):
Alternative Formula for the Correlation
Put your calculator into Linear Regression Stat Mode
and enter the data. Note that I show you how to do that in Appendix A of my book. You can also click the Calculator Tips above to see these steps. Make sure you are following the steps for Linear Regression (the second column) and not the Basic Data Problem steps (the first column).
Once you have entered the data, you can confirm that you have the same answers for x̅ , y̅ , Sx, and Sy that they have provided for you. Your answers should match theirs when rounded to two decimal places.
For example, after you have entered your (x,y) data points, Sharps use "RCL 4" to get x̅ and "RCL 7" to get y̅ . "RCL 5" gives you
Sx and "RCL 8" gives you Sy.
A lot of Casio calculators (and some Texas Instruments) use the "σ" symbol ("sigma," the Greek lowercase "s") to denote "standard deviation". For example, in many Casios, after you have entered the data, you first select "S.VAR." You will find it written above one of your buttons, perhaps above the "2" or nearby on the keyboard. It is accessed by pressing "SHIFT" then "S.VAR" (Statistical Variables). Once you select S.VAR, you are shown a menu where you see the symbol " x̅ " for the sample mean (select "1" and press "=" to get the sample mean). You are also told you can press "2" to get " xσn " or press "3" to get " x
σn-1 ". That is Casio's way of designating the population standard deviation and the sample standard deviation, respectively. You will always want the sample standard deviation, Sx, so select " xσn-1 " (number 3 in the menu). Similarly, if you select S.VAR and then press your right arrow button, you will be scrolled through other options. For example, you can select " y̅ ", the mean of the y values, or " yσn-1 " to the get Sy, the standard deviation of the y values.
Here is how I suggest you do this problem:
- Enter all your (x,y) data points into your calculator once you have put it into Linear Regression Stat Mode.
- Ask your calculator for x̅ ,
y̅ , Sx, and Sy and confirm your answers match the givens when rounded off to two decimal places. If so, ask your calculator for r, the correlation coefficient, and note its value, rounded off to four decimal places (and make sure you round, don't trim: e.g. 0.61736 rounds to 0.6174) Once you have correctly found r, keep your data in the calculator ready to proceed to Step 3.
- ON PAPER, proceed to calculate and record all the entries you will eventually type into the boxes. The first column is telling you to subtract x̅ from each of the six x values; the second column is telling you to subtract
y̅ from each of the six y values; the last column is telling you to multiply the entries in the first two columns together. WRITE DOWN ON PAPER EVERY SINGLE DECIMAL PLACE YOUR CALCULATOR GIVES YOU. You should find that the answers for your products that you are putting in the third column will have three or four decimal places (depending on the given values for the means). In the boxes they provide, you will enter these values rounded off to two decimal places as instructed.
- Compute the total of that last column (that is the numerator in the alternative formula for the correlation I have given you above). Be sure to compute the total using the two-decimal place values you will round off to when you enter them in the boxes provided.
-
Compute the denominator in the alternative formula for r I have shown you above by multiplying n-1, Sx, and Sy together (using the two decimal place values for Sx, and Sy they have given you). Write down the complete answer you have found, keeping all the decimal places.
-
Now compute r by dividing the total you computed in Step 4 by the answer you computed in Step 5. Hopefully, the answer you get for r, when you round off to four decimal places as they request, will be very close to the actual value you got for r by using the Stat mode in your calculator. I would expect the answer you have computed by hand should match the answer your Stat mode gives you for r accurate to about 2 decimal places. If your two methods for computing r are basically the same to 2 decimal places (maybe the last digit is off by 1 or 2), then you can safely assume you have not made a mistake in your calculations.
-
Once you have confirmed that you were able to compute the correct value of r by hand, enter all the numbers you computed into the appropriate boxes. My hunch is that the assignment has been programmed to mark the value of r you compute using the rounded off numbers, whereas the value you compute using the Stat Mode in your calculator will actually be too accurate, and possibly marked wrong if it isn't close to the rounded off answer you compute by hand.
I hope this works. If they mark your value for r wrong, try entering the value you computed using the Stat Mode instead (assuming it is slightly different to the value computed by hand). First, make sure you decide which variable is x and which variable is y in this problem. Is the explanatory variable, x, "Fat Consumption"? or is it "Cholesterol Level"?
Use the formulas to compute the slope and intercept that I introduce in question 1(e) in my Lesson 2 and also use again in question 5 of that lesson. These formulas are also provided on the course Formula Sheet.
Again, I recommend you use the Linear Regression Stat Mode on your calculator to enter the data and check that you get the same answers for the means, standard deviation, and correlation coefficient as they have given you. Then you can confirm that you have used the formulas correctly by matching your Stat mode's answers for a, the intercept, and b, the slope, as you get by the formulas you use. I suspect that your Stat Mode answers will differ slightly from the values you compute because your computations are using rounded off values for the means and standard deviations.
If your answers you compute for a and b, rounded to four decimal places do not precisely match the perfect answers your Stat Mode gives you, I recommend you enter the computed values in the boxes in part (a) and use those rounded off values to answer the remaining questions.
Make sure you round your answer for the slope to 4 decimal places before you proceed to use it to compute the intercept. Then, of course, round the intercept to 4 decimal places, too. Be sure to use these rounded off values for any other computations the question requires.
Note, in part (b), they ask for a proportion, not a percentage, so leave your value for the coefficient of determination (see my question 1(d) in Lesson 2) as a decimal. Do not change it into a percent.
Use the rounded off answers you submitted in part (a) to make the prediction requested in part (c).
I show you how to compute a residual (part (d)) in my question 1(j). This is a two-step process. You must first make the appropriate prediction, then compute the residual.
Make sure you have taken a look at my question 3 in Lesson 2 to learn some key facts about the correlation that may help you with part (e).
Click the "New Data Table" icon on the toolbar at top left in the JMP home screen. Double-click the region to the right of "Column 1" to create "Column 2." Rename Column 1 "Latitude" and Column 2 "Temperature" by either double-clicking the columns and typing in the new name or by right-clicking the columns and selecting "Column Info," typing in the name and clicking OK. Type in the data. You can move from one cell to the next in the data table by pressing "Enter", "Tab" or the arrow buttons on your keyboard.
Select "Analyze", then "Fit Y By X". Highlight "Latitude
", and click the "X, Factor" button. Highlight "Temperature" and click the "Y, Response" button. Click OK.
You should now see a scatterplot. (If you don't, your data is not properly formatted; go back and check the columns are Numeric and Continuous by right-clicking each column name and selecting "Column Info". The Data Type should be Numeric, and the Modeling Type should be Continous.)
Click the red triangle above the scatterplot and select "Fit Line" and JMP will draw in the least-squares regression line. Note, it shows you the regression equation directly under "Linear Fit" below the scatterplot. JMP also shows you the value of r-squared (the coefficient of determination) in the "Summary of Fit", rather than r, the correlation coefficient. You can then square root this number to get r, the correlation coefficient, but use your scatterplot to help you decide if r is negative or positive because your calculator can't tell you that.
They don't ask you to hide the "Analysis of Variance" and "Parameter Estimates" parts of the output, but you can do so if you wish. Simply click the gray triangle next to those title bars, and you will see those parts of the output disappear.
If you are using Windows PC:- 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 scatterplot 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 scatterplot 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.
Type your answers for the rest of the question into the box (make sure you have clicked HTML Editor). You will have to compute the predictions and residual they request yourself using the least-squares regression equation JMP has computed for you. When they ask, "What does the sign of the residual tell us?" they mean, was the actual temperature higher or lower than you predicted it would be. Make sure you have studied Lesson 3 in my book before you answer this and the remaining questions in this assignment. You should especially look at questions 6 and 7 as illustrations of the Three Principles of Experimental Design and examples of identifying the various factors, factor levels, treatments, experimental units, and response variable for an experiment. As well as identifying what type of experiment it may be (randomized comparative experiment, block design, matched pairs design).
Be sure to click the HTML Editor link before you type your answers into the box provided. When they ask for the treatments (part (e)
), tell them not only how many treatments there are in the experiment, but what the exact treatments are (since it is unclear what they want here).
Note that randomization is used in experiments to randomly determine which unit gets which treatment (when there are many units and each unit will be given exactly one treatment), or to randomly determine the order treatments are administered (when one unit is going to receive two or more treatments).
Note also that we learned in Lesson 2 that correlation does not imply causation. Just because a pattern is observed between x and y does not mean we have proven that x causes y. But, the whole point of designing an experiment is to identify possible cause and effect. If an experiment has been designed properly, we have every right to believe we have proven that blank causes
blank, provided we have seen a significant difference in the response variable, when applying one treatment as compared to another.
Similar to the previous question.
Look at my examples of matched pairs experiments before you design yours here. Be sure to click HTML Editor before you type in your answer.
A nice and easy example of randomization, as I demonstrate early in Lesson 3. Here is a link where you can download Table B, if you have not already done so: This is a good runthrough of the various types of samples and the possible biases that can exist. Be sure to have studied the first half of my Lesson 3 up to the end of question 5 before attempting this question. Is the sample a voluntary response sample, convenience sample, simple random sample, stratified random sample, multistage sample?
Note that response bias occurs if the respondent lies, or if the question is phrased in such a way as to force the respondent to not be truthful (what I call question bias in my book). For example, don't just say "response bias".
Be clear when listing the bias you see. Say, there is response bias because there will be too many people lying to the researcher (and why you believe that). (I am not saying that is the correct answer for any of your questions; I am just saying be clear what you mean instead of just using a generic term.) Don't speculate about biases that might be there (such as saying, the researcher might be doctoring their data, for example; there is always that possibility, but we are not going to be paranoid and mention that as a possible bias everytime, unless we have clearly been given reason to believe that has occurred). Only discuss biases that are clearly present by the information you have been given.
There is certainly bias if a bad sampling method is being used, but say what you think is the likely direction of that bias. For example, most voluntary response samples tend to have a much higher proportion of complainers (negative opinions) than is likely to be seen in the population as a whole.
Note that there may not be any obvious bias in some of the questions.
|
|