SOCR EduMaterials AnalysisActivities SLR
SOCR Analysis Example on Simple Linear Regression
This example is based on the data taken from "An Introduction to computational statistics: regression analyses" by Robert Jennrich, Prentice Hall, 1995. (Page 4)
Simple Linear Regression Background: Simple Linear Regression is a class of statistical analysis models and procedures, which takes one indepdent variable and one dependent variable, both being quantitative, and models the relationship between them.
The model form is: y = intercept + slope * x + error, where x denotes the independent variable and y denotes the dependent variable. The error is assumed to follow a standard normal distribution.
The goal of the Simple Linear Regression computing procedure is to estimate the intercept and the slope, based on the data. Least Squares Fitting is used.
In this activity, the students can learn about:
1. Reading results of Simple Linear Regression; 2. Making interpretation of the slope and intercept; 3. Observing the scatter plots of dependent variable vs. independent variable, and diagnostic plots such as the Residual on Fit plot and the Normal QQ plot, etc.
Read more about Simple Linear Regression.
1. As you start the SOCR Analyes Applet, click on "Simple Linear Regression" from the combo box in the left panel.
Then click on the "Example" button and then "Data" button in the right panel. You should see the data displayed in two columns. They are named as VarA and VarB here.
2. We'd like to use VarA as the regressor (that is, 'x', the independent variable); and use VarB as the response (that is, 'y', the dependent variable). To tell the computer which variables are assigned to be the regressor and response, we have to do a "Mapping." This is done by clicking on the "Mapping" button first to get to the Mapping Panel, and then map the variables.
(Note that, since the columns C3 through C10 do not have data and they are not used, just ignore them.)
3. After we do the "Mapping" to assign variables, now we can let the computer calculate the regression results by click on the "Calculate" button. Then clikc on the "Result" button to see the output.
The text in the Result Panel summarize the results of this simple linear regression analysis.
4. If you'd like to see graphical analyses, click on the "Graph" button. You'll then see the graph panel that displays scatter plot, as well as diagnostic plots of "residual on fit", "Normal QQ" plots, etc. The plot titles indicate plot types.
Note: if you happen to click on the "Clear" button in the middle of the procedure, all the data will be cleared out. Simply start over from step 1.