Tuesday, October 24, 2017

Assignment 3

Introduction:

In assignment three, an independent researching consortium is studying the geography of foreclosures in Dane County, Wisconsin because it is starting to become an issue in certain counties. The addresses of all the foreclosures in Dane County 2011 and 2012 have already been geocoded and added to the Census Tracts. The resulting addresses will be analyzed spatially followed with an explanation in order to figure out whether the number of foreclosures will increase or decrease in 2013, and to see how many foreclosures will be exceeded 80% of the time, and 10 percent of the time for Dane County.

Methods:
The first method used in order to figure out the change in foreclosures in Dane County from 2011 to 2012, was to calculate the Z-scores. A Z-score is determined based off of an observations relation to the mean. The Mean, Median, and Standard Deviation for the 2011 and 2012 addresses need to be calculated to help analyze the number of foreclosures. The mean is calculated by adding up the total number of foreclosures, and then dividing it by the total number of Census tracts. It is important because it will show the average number of foreclosures for both 2011 and 2012, making it easy to determine the average change. The Median is just the center of the data set. If there is an odd number of Census tracts, the you take the middle. If there is an even number, then you split the gap between the two middle numbers. It is important because it cancels out outliers making for a more accurate representation of the data. Lastly, Stand Deviation is a statistic that helps determine relationship between observations and the mean.
The Mean, Median, and Standard Deviation are already given to you, and can be found in the Tracts File under symbology. Click on Quantities and then Classify, the values can be found in a small box labeled classification statistics. The Xi values are also needed, and can be found in the attribute table for both 2011 and 2012. Using the census tract, calculate the Z-scores for tract numbers 25, 108, and 120.01 to get a total of 6 z-scores displayed in the results . The equation used to figure out the Z-score was Zi = (XI-u)/S where Zi = Z-score, Xi=Observation of I, u= Mean of the data, S=Standard deviation of the data. The probability of the Z-score can be found by looking at the chart in Figure 1. Anything value that is less than 50 percent should be positive making it smaller than the mean. Any value that is greater than 50 percent should be negative making it larger than the mean. Any value that is exactly 50 percent, is the mean.


Figure 1. Z-score Chart


Figure 2. Map displaying the Location of the 3 Census Tracts the Z-scores are calculated for.

Count 2011:

  Mean = 11.393, Median = 11, Standard Deviation: 8.776
  Census Tract 108: Xi = 29
  Census Tract 25: Xi = 6
  Census Tract 120.01: Xi = 27

Count 2012:

  Mean = 12.30, Median = 10, Standard Deviation = 9.906
  Census Tract 108: Xi = 27
  Census Tract 25: Xi = 3
  Census Tract 120.01: Xi = 42

As you can see above the average number of foreclosures rose by 0.91. However the Median actually went down by one meaning there were more outliers on both sides of the Median. The fact that the Standard Deviation increased by nearly 1.2 tells us he the data is not as clustered as it was before meaning it is more spread out.
                                       
The second method used to see the change in foreclosures is to create a map based off the difference of foreclosures in Dane County from 2011 to 2012. Therefore a new field will be created by using the total number of total foreclosures from both years. The results can be used to help decipher which areas should also increase in 2013. 

Once both methods are finished, the independent research consortium wants to know the number of foreclosures expected to be exceeded, in 2013, 80 percent of the time as well as 10 percent of the time. Using the Z-score chart, one will find the value for 80 percent is -0.84, and the value for 10 percent is 1.28.
                                   
Results:

In my analysis I found that that both methods was were helping in depicting the number of foreclosures in Dane county. Finding the Z-scores helped for analyzing the difference in foreclosures between 2011 and 2012. Figure 2 shows the steps taken to achieve the Z-scores. Whereas the seconding method of creating a map, shows you where exactly in Dane county these difference are occurring the most and the least as seen in Figures 3 and 4.         

Calculated Z-scores:

Count 2011:
  Census Tract 108: Z-score = 2.01, Probability = 2.22%
  Census Tract 25: Z-score = - 0.614, Probability = 72.91%
  Census Tract 120.01: Z-score = 1.78, Probability = 3.75%

Count 2012:
  Census Tract 108: Z-score = 1.48, Probability = 6.94%
  Census Tract 25: Z-score = - 0.94, Probability = 82.64%
  Census Tract 120.01: Z-score = 2.99, Probability = 0.14%

Figure 3. Z-score Calculations by Hand

In Figure 3, the further away from zero the Z-score is, the smaller the Probability is that foreclosures will exceed the previous year.

Figure 4. Map displaying the difference between the number of
foreclosures in 2011 compared to 2012.

As you can see from Figure 4, the greener areas are the most likely to increase in 2013 just like they did in 2012. Whereas, vice-versa the red areas are most likely to decrease. It can also be assumed that the areas in yellow, are like to stay roughly the same. The mean in 2012 was 0.907 larger then 2011, the median was 1 higher in 2012 then 2011, and the standard deviation was 1.13 higher in 2012 then 2011. Therefore, the overall number and change of foreclosures was higher in 2012 then 2011.


Figure 5. Map depicting the different Standard Deviations in 2011 and 2012.

As you can see in Figure 4, 2011 has a greater concentration of blue Royal Blue census tracts meaning there were more high and positive Standard Deviations than 2012. It also means that the mean is lower than the total number of foreclosures. However 2011 also has more variability than 2012 because there are more salmon color census tracts. Overall, the two maps are pretty similar, consequently meaning the rate of foreclosures has not seen a drastic change from 2011 to 2012.

If these patterns are continue into 2013 for Dane County, the number of foreclosures in Dane County that will be exceeded 80 percent of the time will be roughly 4 per Census tract. The number of foreclosures that will be exceeded 10 percent of the time is roughly 25. The areas with a yellowish to blue colors on Figure 4 are very likely to see a change of at least four foreclosures, whereas the areas in red may not see quite as much if there is an increase at all. The darker shades of blue have the highest chance of there being at least 25 more foreclosures in 2013.

Conclusions:

Overall, after looking at the hand calculations and maps, it is clear that the number of total foreclosures for the majority of Dane County Census tracts in 2012 is higher than 2011. This means that the total foreclosures is expected to see another increase in 2013. Only a few counties will see a decrease, and those areas are closer to the downtown. The large amount Census Tracts with increased foreclosures means is not good for the economy. Houses out in suburbs are likely to be too expensive for most homeowners. Calculating Z-scores and creating maps showing the changes in foreclosure between 2011 and 2012 would be very beneficial to government agencies and the housing market. Further examination is necessary to come up with a workable solution and recommendations to prevent the continual increase of foreclosures. It may take a long time for the housing market to turnaround.

Sources: 

All data and shapefiles were found in the class folder:
Q:\StudentCoursework\RWeichelt\GEOG.370.001.2181\Share\Assignment3



Wednesday, October 11, 2017

Assignment 2

Goals and Background:

The purpose of this assignment is to get used to a variety of statistical methods and computer programs. Use a calculator, paper, and MS Excel to compute the data for this assignment.

Methods:

Part I: Hand Calculations of Data

The first part of this assignment involves an analysis of a sample of Eau Claire School District's test scores. Eau Claire Memorial usually has the highest test school between Eau Claire North and themselves, which makes people believe the teaching at Eau Claire Memorial is better. Due to this the the public is starting to think teachers from the North should lose their jobs. To put this to the test, calculate the Range, Mean, Median, Mode, Kurtosis, Skewness, and Standard Deviation of the test scores for both schools. Make sure to remember that you are taking the Standard Deviation of a sample of test scores, not the entire population. Define each term previously listed, find which school actually has the better overall test scores, and then answer the questions given in the directions.

Part II: Calculating Mean Centers and Weighted Mean Centers 

For this section you will calculate the Geographic Mean Center of Population (at the county level) for Wisconsin and then the Weighted Mean Center of Population for 2000 and 2015 (weighted by population) First download the county shapefile for Wisconsin and join the data to the files and find three distinct points to place on the same map.

To access the creation of a Mean Center in ArcGIS. Go to the Arctoolbox, find Spatial Statistics, then click Measuring Geographic Distributions, and lastly, choose the Mean Center tool. In terms of the Geographic Mean Center, all you have do is select the shapefile, and the point will be placed on the map. Click the Weight tab to get the weight by population. When the previous steps are completed, there will be three points on the map, and add it to the blog.

Results:

Part I:

Definitions:

Range: The maximum score minus the minimum score.
Eau Claire North: 194 - 111 = 83
Eau Claire Memorial: 198 - 107 = 82

Mean: The average which is obtained by adding all values together and dividing by the total number of values.
Eau Claire North: 160.92
Eau Claire Memorial: 158.54

Median: The middle of the dataset. If there is an even amount of values then you take the average between the two middle numbers, if there is an odd number of values you take the middle number.
Eau Claire North: 164.5
Eau Claire Memorial: 159.5

Mode: The most common occurring value.
Eau Claire North: 170
Eau Claire Memorial: 120

Kurtosis: The relative flatness or peakness of one distribution compared to the normal. The more positive the kurtosis, the more peaked it is, this is known as Platykurtic. On the other end, the more negative the kurtosis, the more flat it is, this is called Leptokurtic.
Eau Claire North: -0.557
Eau Claire Memorial: -1.174

Skewness: How much the distribution changes from the relative value compared the normal. If the skew is negative the right side of the distribution line will be higher, therefore if the skew is positive, the left side of the distribution line will be higher.
Eau Claire North: -0.579
Eau Claire Memorial: -0.185

Standard Deviation: The proximity of the values relative to the mean. (Figure 1)
Eau Claire North: 23.64
Eau Claire Memorial: 27.18




Analysis:


After computing the results, it is clear Eau Claire North has overall higher scores than Eau Claire Memorial. The people thought Memorial had better teachers due to the fact that they usually have the highest individual test score every year. However, it is clear North's average test scores are 2.38 points higher than Memorials, theoretically meaning they actually have the better teaching. Therefore, the Eau Claire North teachers don't have anything to worry about. The statistic that best helps support this answer is the mean, because it simply lays out the total average. Standard deviation also clearly shows scores are better.

Part II:


Mean Center: The mean center is physical representation of central tendency, taken from adding up all the x and y values separately, then dividing both of the totals by the total number of points.

Weighted Mean Center: The weighted mean center plants a point on a map according to the frequencies of the given values. It is weighs down the points depending on how frequently values appear.


Figure 2 displays a county map of Wisconsin, showing the Mean Center,Weighted Mean in 2000,
 and the Weighted Mean in 2015. The Map was created by James Morgan.

This map shows that the Weighted mean between 2000 and 2015 really hasn't changed much. The Weighted Mean from 2015 has moved a little southwest, but for the most part the population weighted mean is still located closer to the south. On the map, The Weighted Mean from 2000 symbol is larger than the Weighted Mean in 2015 symbol. This is because it was hard to see when they were the same size.  The most likely explanation for why this southwest shift has occured, could be due to the fact that larger cities like Madison and Milwaukee have been increasing in population size at higher rates than the smaller cities in the North.

Sources:


Part II:


Data comes from 2012 Census of Agriculture:

https://www.agcensus.usda.gov/Publications/2012/Full_Report/Volume_1,_Chapter_2_County_Level/Wisconsin/st55_2_047_047.pdf