By the end of this assignment, students should be able to run regression in SPSS, interpret regression outputs and predict results given data, manipulate data in Excel and Join to ArcGIS, map Standardized Residuals in ArcGIS, and lastly connect statistics and spatial outputs. The overall theme of this assignment is Regression Analysis, and it is split into two separate parts each with their own separate Regression Analysis. The first part is straight forward and the variables are given. Part two will include three separate Regression results with the number of calls as the dependent variable, and the independent variables are to be personally selected. A chloropleth map showing the number of calls at the Tract Level, and a Residual map of the highest r-squared of one of three independent variables must be created as well.
A Regression Analysis is tool used in statistics that helps discover the relationship between two variables by investigating causation. All Regression Analysis must have a dependent variable which is found on the Y-axis, and an Independent Variable which is found on the X-axis. The equation for Regression Analysis is Y = a + bX, where "a" or the best fitting location for the point on the line when crossing the Y-axis. "b" is the slope of the line, otherwise known as the Regression Coefficient, and it tells how much the dependent variable changes in the independent variable. Regression Analysis can be perform using the IBM SPSS application using data sets created in Microsoft Excel. Scatterplots will be automatically created, showing the strength of the the two variables. The Strength depends on the relationship between the independent and dependent variable, if the point values are closer to the trendline, they will have a strong relationship. The strength is shown by the Coefficient of determination or R^2.
The OLS statistical function will be utilized in the second part of the assignment OLS is short for Ordinary Least Squares, and what it does is put a line through the set of values on a graph by adding up the squared distances, according to the Y-axis, from the observed points in order to minimize the fitted line. It uses that same Y = a + bX equation. OLS will be used to create a Residual map. A residual is where the point falls in relation to the y-value on a scatter plot map. The residual is used to find the SEE or Standard Error of Estimate which adds up all the standard deviations of the residual after measuring the distance from each point to the trend line. Therefore, if the the SEE value is small, then predictions will be more accurate.
Methods:
Part 1:
This part will involve using a "Crime" test excel file, showing the crime rate per 100,000 people and the percent of kids that get free lunch for given neighborhoods, in order to show the local news if there is any correlation between crime rates and poverty for town X. Using the data in SPSS, run a regression equation to find out the truth. Answer the questions: what will the corresponding crime rate be for a new area of town in which 30 percent of kids receive a free lunch, and how confident in the data are you? Add the data and a response to the questions in the results.
Open the Crime excel spreadsheet in SPSS, and run a liner regression using Crime as the dependent variable and Free Lunches as the independent variable.
Results:
| Figure 1. Coefficient Determination (R-Squared) of the Regression Analysis |
| Figure 2. Regression Analysis Equation for the Model |
As you can see in Figure 1, the Coefficient Determination isn't all that high meaning the correlation of the regression analysis is not the strongest. However, it is still a positive number meaning that the correlation between kids who receive free lunches and increasing crime rates do have some correlation. The equation for the Regression Analysis is y = 21.819 + 1.685x. The constant (a) in this analysis is 21.819 and the slope (b) or Regression Coefficient is 1.685. With a significance level of 0.005, the relationship is at the 95 percent significant level meaning it the null hypothesis is rejected.
Part 2:
The second part involves using a shapefile and a data set showing the amount of 911 calls in Portland, Oregon, and they are worried about the quality of responses to calls. A company who builds hospitals wants to know where exactly these calls are coming from in order to figure out the best location to make a new one is, and how big the ER department should be. Give them the results they are looking for by using data that gives the number of 911 calls, Jobs, Renters, Amount of people with no High School degree, alcohol sales, unemployment, Foreign born population, Medical income, and the number of college graduates.
The first step will be to run a single regression in SPSS using the excel sheet data in the Portland Shapefile. Use calls as the dependent variable, and for the independent variables choose any three in the sheet. This particular assignment uses Alcohol, Foreign Born, and College Graduates as the three independent variables.
The second step is to create a Chloropleth and Residual Map. Use the shape file 911 calls, and create a Chloropleth map. Then using the the dependent variable with the highest coefficient determination, create a residual map showing the Spatial Relationship ship between the two in Arcmap. Here is were the OLS tool will be utilized. Go to Spatial Statistics Tools in the Arctoolbox, then Modeling Spatial Relationships, and last choose the Ordinary Least Squares tool. Use the Portland Shapefile for input feature class, UniqID for unique field ID, 911 calls for the dependent variable, and choose the variable that had the highest Coefficient of Determination for the Explanatory/Dependent Variable.
Results:
Step 1:
College Graduates:
| Figure 3. Coefficient Determination between College Graduates and 911 calls |
| Figure 4. Linear equation and Significance of the model |
As seen in Figures 3 and 4, the Coefficient Determination between College Graduates and 911 calls is a positive relationship, but it is less than one meaning it is a relatively weak correlation.With a significance level of .004, the relationship of the significance is at 95 percent, and the null hypothesis is rejected. When calls increase by 1, the number of college graduates increases by .029.
Linear equation: y = 13.377 + 0.029X.
The Constant: 12.377
The Slope/Regression Coefficient: 0.029
Alcohol:
| Figure 5. Coefficient Determination between Alchol Sales and 911 calls |
| Figure 6. Linear Equation and Significance of the Model. |
Linear equation: Y = 9.59 + 3.069E-5X
The Constant (a): 9.59
The Slope/Regression Coeffiecient (b): 3.069E-5
Foreign Born Population:
| Figure 7. Coefficient Determination between Foreign Born Citizens and 911 calls. |
| Figure 8. Linear Equation and Significance of the Model. |
Linear equation: Y = 3.043 + 0.08X
The Constant (a): 3.043
The Slope/Regression Coefficient (b): 0.080
Again, out of the three regression analysis, Foreign Born Population the highest coefficient determination with 0.552. All three analysis were similar in that each significance level was less than 0.05 meaning the null hypothesis was rejected in all three scenarios.
Step 2:
Chloropleth Map:
| Figure 9. Chloropleth Map showing the number of calls for each Census Tract. |
Residual Map:
![]() |
| Figure 10. Residual Map showing the correlation between Foreign Born Citizens and 911 calls. |
Conclusions:
In conclusion, IBM SPSS is a great way to perform a Regression Analysis getting you instantaneous and spot on results. The OLS statistical function is a great way to display the Coefficient Determination between two variables on the map. For the first part of the assignment, the relationship between Free lunches, and increasing crime rate are related. For the second part of the assignment, out of the three dependent variables chosen in this students assignment, Foreign Born Population had the strongest linear relationship with the number of 911 emergency calls. Alcohol sales was easily the weakest linear relationship, due to its low values across the board.
Sources:
All data and the shapefile were obtained from the class folder:
Q:\StudentCoursework\RWeichelt\Geog.370.2181\Share\Assignment6
