Wednesday, September 11, 2013

Special Topics, Week 3: Stats Analyze Week - Meth Labs

This week in lab we preformed an Ordinary Least Squares Regression Analysis.  This was done to identify and remove certain socio-economic variables that don't have a strong connection to the meth lab density.  The area of focus was Charleston, West Virginia.  Using specific measures, variables were removed to increase the Adjusted R-Squared value, or the accuracy of the model.  

This OLS Table displays variables that affect where a meth lab might occur.
This combination of variables resulted in an Adjusted R-Squared value of .727.
After running the OLS tool various times (about 22 times), I settled on these variables.  The above table displays the list of socio-economic factors which I thought were relevant to where a meth lab might be located.  Based on the Jarque-Bera statistic, my model does not appear to be biased.  

Next, we displayed this data in a map.  Below is a map of the study area with the results of my OLS.  The areas in yellow have a standard deviation of between -0.5 and 0.5 which means that it is an accurate prediction.  As you can see, other areas were over predicted while some were under predicted.

This map shows the resulting standard deviations.  The census tracts with a std value of
between -0.5 and 0.5 are accurate predictions of the number of meth labs in those areas.



No comments:

Post a Comment