Thursday, December 14, 2017

Assignment 6

Introduction:

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.
For this Regression Analysis, as you can see in Figure 5 and 6, the Coefficient Determination is 0.152, meaning it is a positive relationship and it is a little stronger than that of 911 calls and college graduates. With a significance level of 0.000, the null hypothesis will be rejected, and its safe to say that there is barely any correlation at all the amount of Alcohol sales and 911 calls. When the number of calls increase by one, the number of alcohol sales increase by 0.00003069.

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.
The third and final Regression Analysis is between Foreign Born Population and 911 calls. With a coefficient determination of 0.552, it is clear that this relationship is the strongest. However, the significance level is 0.000, so again, the null hypothesis is rejected. For every one 911, there is an increase in Foreign Born population by 0.08.

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.
As you can see in Figure 9, the majority of 911 calls are most common in the inner city, but specifically the North central Census tracts. In turn, the least amount of calls are coming from the outside, but mainly to the very west of Portland. It can be assumed that the outside of the city is a lot safer and less prone to emergencies than the inner city. However, total population is likely higher in the inner city than the outer, so that is also something to keep in mind.

Residual Map:



Figure 10. Residual Map showing the correlation between Foreign Born Citizens and 911 calls.
As you can see in Figure 10, the Residual Map shows the Standard Deviation between the Foreign Born Population and 911 Calls in Portland. It shows a similar trend or correlation with the map displayed in Figure 9. The darker the red, the higher the two variables are higher correlated than expected compared to the trend line. Whereas, the darker the blue, the lower the two variables are correlated in comparison to the trend line. This can also be due to the larger number of Foreign born Citizens occupying living spaces in the inner city. Many of them have probably come to work at stores downtown.

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

Monday, December 4, 2017

Assignment 5

Goals and Background:

This assignment will give students experience with creating a scatter plot in Excel, running correlations in SPSS, interpreting correlation from a scatter plot and SPSS output, utilizing the U.S. Census site to download data and shape files, identifying GEOIDs from the census data, joining U.S census data and other data, as well as creating a report connecting all the data. This assignment is divided into two parts: the first deals with statistical correlation, and the second part deals with spatial auto correlation.

Methods:

Part I: Correlation

Again, the first part deals with statistical correlation, which is a measurement between two variables in order to determine how related they are to each other. By using correlation one can find the strength as well as the direction of a relationship. Strength shows how strong a relationship between variables can be based off a negative one to positive one range. Direction on the other hand tells whether the relation ship is positive, negative, or null. If a relationship is null, the value is zero, meaning there is no difference. A positive relationship means the value is greater than zero with a maximum of 1. If it is one then there is a one-hundred percent correlation, which is extremely rare. On the opposite side of the spectrum, a negative relationship means the value is lesser than zero, but no lower than negative one. However, negative one still means there is a very high correlation between two variables. The closer each value is to zero, the less related it is.

The first portion requires a scatter plot to be made in Microsoft Excel between Distance from the sound source and the sound level. By using the given data and Figure 1, you can create a chart similar to the one in Figure 2. Make sure to insert a Trendline to see how far the Sound Level strays away.

Figure 1. Excel data.
Figure 2. Correlation chart between distance and sound level.

Once a chart has been created, open SPSS to obtain correlation statistics on the scatterplot. Go to the Analyze pull down tab, then correlation, and bivariate. Run it with Pearson Correlation and as a 2-tailed test, and you will get a correlation like the one in Figure 3 shown in the results section.

The second part section of part one deals with Census Tracts and the Population in Detroit, Michigan. Using the Excel file for Detroit, MI,  repeat the same steps as before to get the results shown in Figure 4 also in the results section. The variables tested are given in the directions and shown on the chart.

Part II: Spatial Autocorrelation

The second part of the assignment will involve using specific data from the Texas Election Commission (TEC) for 1980 and 2012 presidential elections including democratic votes and voter turnout. Data on Hispanic populations for 2010 must be downloaded from the U.S. Census during the process. The TEC needs to analyze the patterns of the elections to decipher if voting patterns and voter turnout are clustered in the state in order to see if there are any changes in the past 32 years. Use the GeoDa and SPSS to make conclusions based on spatial autocorrelation. Follow the directions given by Dr. Weichelt to download the necessary data.

Once the Hispanic Texas County Data and Texas shapefile are downloaded, open Arcmap and join the the attribute tables using Geo_ID. Make sure you delete row A2 for Hispanic Texas County data. Also join the Texas voting data to the shapefile as well. Once the data is joined, export the data as a shapefile, and open GeoDa. Then go to File, New Project Form, and find the exported shapefile. You will now create Moran's I graphs and corresponding maps, and then analyze them for clusters. Use the Weights Manager tool to create a spatial weight in order to see if there is spatial autocorrelation for both elections.

Results/Discussion:

Part I: 

Figure 3. Correlation Statistics on Distance and Sound Level.
Notice the two stars meaning there is a 99 percent significance level.

By looking at the chart and reading the correlation stats, it is clear there is a strong negative correlation. The null hypothesis is rejected since their is a 99 percent significance level.

Figure 4. Correlation Statistics for Detroit Populations
After analyzing the correlation numbers, one will find that highest correlations are Median Household income and Medium home value at 0.883. There is two asterisks next to the value meaning there is a 99% significance level, and that the null hypothesis is rejected. The number is close to one and positive, which means there is strong  positive correlation between the two.

The second highest is between Retial and Medium Household income has a correlation coefficient of 0.881 as well as two asterisks inferring a 99 percent significance level. There is also a strong positive correlation for these two variables as well.

On the opposite side of the spectrum, the lowest correlations is between Retial and Hispanic at -.004. Inferring a weak negative correlation.

Part II:

1980 Democratic Vote (Figure 5 and 6):


Figure 5. Moran's 1 graph of the Percent Democratic Vote in 1980
Figure 6. Cluster Map of the Percent Democratic Vote in 1980

2012 Democratic Vote (Figures 7 and 8):


Figure 7: Moran's 1 graph of the Percent Democratic Vote in 2012


Figure 8: Cluster Map of the Percent Democratic Vote in 2012




1980 Voter Turnout (Figures 9 and 10):

Figure 9. Moran's 1 graph of the Percent of Voter Turnout in 1980.

Figure 10. Cluster Map of the Percent of Voter Turnout in 1980.

2012 Voter Turnout (Figures 11 and 12): 

Figure 11. Moran's 1 graph of the Percent of Voter Turnout in 2012

Figure 12. Cluster Map of the Percent of Voter Turnout in 2012

2010 Hispanic Population (Figures 13 and 14):

As you can see the Distribution is 
Figure 13. Moran's 1 graph of the Percent of Hispanic Population in 2010


Figure 14. Cluster Map of Percent of Hispanic Population in 2010.



Conclusion:

In conclusion, SPSS and GeoDa as expected proved to be very effective for analyzing correlation.

Sources:

Saturday, November 11, 2017

Assignment 4

Introduction:

Assignment 4 is all about testing hypotheses. It involves distinguishing between a z or t test, calculating a z and t test, using steps of hypothesis testing, making decisions about the null and alternative hypotheses, and lastly taking real-world data and associating stats and geography.

Methods:

Part I: t and z tests

For the first section, complete the given chart by filling in the columns labeled Î± (the significant level for the given test), z or t (deciding whether the example is a z or t test), and lastly z or t Value (the Critical Value for the given significance level).

In the second section the Department of Agriculture and Live Stock Development organization in Kenya estimate that yields in a specific district should approach the given amounts in metric tons per hectare. Test the hypothesis of Ground Nuts, Cassava, and Beans, assuming they are 2 tailed with a 95% Level of Confidence. Next, present the null and alternative hypotheses for each and there conclusions. Figure out the probabilities values for each crop as well as the similarities and differences in the results.

The third and final section for Part I is testing a researchers hypothesis who suspects that the level of a certain stream's pollutant is larger than the allowable limit of 4.2 mg/I. Create conclusions, following the hypothesis testing steps, on a sample of n=17 that revels a 6.8 mg/I mean pollutant level, with a 4.2 standard deviation. Assume the sample is a one-tailed test with a 95% Significance Level, and find the corresponding probability value of the calculated answer.

Part II

Using appropriate Hypothesis Testing, find the answer to the question: is the average value of homes for the city of Eau Claire block groups significantly different from the block groups for Eau Claire County? In order to figure this out, use the two shape files provided in the Assignment 4 folder to create a projected map that shows the average house prices for the county as a whole.

To figure out if the average value of houses per block are the same in Eau Claire city as Eau Claire county, use the given shapefile data to create a hypothesis test. Analyze the values in ArcMap, and use the statistics function in order to determine the difference for average block group value between Eau Claire City and County. 

Results:

Part I: t and z tests


Figure 1 shows the completed chart from the first question in part 1. The right three columns were newly filled in.


Figure 2 shows the t-chart I used to fill in the table in Figure 1.


Figure 3 shows the z-chart I used to fill in the table in Figure 1.

Department of Agriculture

For this problem, a T-test will be conducted because N is less than 30. Since there is 95 percent significance level and a 2 tailed test, use the T-chart to find the T probability. Divide the excess 5 percent by 2, to get 0.25 in the column section, and n-1 to get 23 for the row section. The critical value will be 2.074. Then compare each product's T-value to the critical value to see if it rejects or fails to reject the Null Hypothesis.

T-value for Ground Nuts is -0.67, so it fails to reject the Null Hypothesis.
T-value for Cassava is -2.67, so it rejects the Null Hypothesis.
T-value for Beans is 1.67, so it fails to reject the Null Hypothesis.

As you can see, the Ground Nuts and Beans are similar because they both fail to reject the Null Hypothesis. Whereas Cassava is different because it actually rejects the Null Hypothesis.

Stream Pollutants

 Again, a T-test will be used to solve this problem. Using the t-shirt locate the critical value by looking at row 16, and the column classified by 0.05. The critical value will be 1.746.

The T-value for the pollutant stream level is 2.35, therefore it rejects the Null Hypothesis proving that the stream is significantly polluted.

Part II:

After comparing the average block household value between Eau Claire City, 151876.50, and Eau Claire County, 169,438.12, one will find that the average house is close to 18,000 dollars more for the county than the city. The Map shown in Figure 4 shows the difference the average value of houses in Eau Claire City and County block groups.

Figure 4. Map of the average Value of Homes for Eau Claire County

Conclusion:

After completing various Hypothesis tests and creating a map, it is evident that the majority of the block groups within Eau Claire city are much lighter than the surrounding block groups in county. The lightest block groups are located near the center of the city, and the darkest block groups are in the South central block groups.

Sources:

All data was found in the shared folder labeled: Q:\StudentCoursework\RWeichelt\GEOG.370.001.2181\Share\Assignment4 

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

Wednesday, September 20, 2017

Assignment 1

Goals and Background:
Introduction:

The goals of this assignment are to differentiate between levels of measurement, differentiate between classification methods, retrieve data from the U.S. Census and join data, and lastly enhance cartographic knowledge. This will help not help the class grade, but will expand further into our careers.


Methods:

Part 1:


In this section one must define the the difference between Nominal, Ordinal, Interval, and Ratio Data in their own words as well as find a map associated with each example.


Part 2:

In this section you will be in a scenario in which you are a hired by an agriculture consulting/marketing company and need to create numerous maps for your boss and then display them for clients. The maps need to include a Equal Interval map based on Range, a Quantile map, and a Natural Breaks map of USDA Certified Organic Production Farms in order to increase the total number increase the total number of these farms. Define each method, sync it with each map, and choose the best one for the clients. Lastly, provide a good argument for the winning map, and relate those arguments to the patterns on the map.

The requirements for these maps includes having only 4 classes, all basic cartographic elements (legend, scale, title, sources), and come from the 2012 Census of Agriculture database. You must first download and unzipping a shape file for Wisconsin Counties which can be found by following the  step by step instructions of the given Introduction to the Census document. Then you need to change the coordinate system to the USA Contiguous Albers Equal Area Conic. You will find this under the coordinate system tabs from the layers properties.

Results:

Part 1:

Nominal Data is data consisting of real-world phenomena excluding numerical information, 
each category clear differs from the next. Each value can be placed into one of the categories being mapped. Examples of nominal data include gender, race, religion, political boundaries (see Figure 1), etc.



Figure 1 is an example of a map that shows Nominal Data 

Ordinal Data is any data that is arranged in a particular top to bottom order The two subcategories of ordinal data are known as strong and weak. Strongly ordered data is where each of the data has a certain ranked position. An example of this is the top five highest birth rates in which the five locations are the only locations in the data set. On the other hand, weakly ordered data is when data gets assigned to organized categories, and values tend to be percentages. An example for weakly ordered data is the percentage of African Americans in the U.S.A (See Figure 2). 


Figure 2 displays a map that uses weakly Ordinerd Data


Interval Data is data that can be interpreted in separate classes, but does not contain an absolute 0. There are two types of interval data which are known as continuous and discrete. When the interval data is continuous there is an infinite amount of  small data points. Examples would include temperature (see Figure 3), elevation, or even blood pressure. The maximum and minimum for continuous data can always be broken, but it is likely that the recorded data will be within the range. For discrete interval data, there is only a certain amount of options. For example there is 52 weeks in a year, and that number is more than likely to never change, unless some giant meteor comes crashing into earth abolishing its current orbit path. 

Figure 3 shows a map of Continuous Interval Data 



Ratio Data is data that, like Interval Data, can also be broken into classes, but these categories and values have an absolute zero. Examples of Ratio Data tend to be countable stats, fixed rates, and certain densities. A great example of Ratio Data is population, whether it is human population or housing unit population it just needs to have zero as the minimum number. (see Figure 4)
Figure 4 demonstrates two maps that use Ratio Data

Part 2:

The following figures are examples of the maps that I would present to the clients:

This map shown in Figure 5 has classes broken down by the Equal Interval method. This type of map separates its classes according to the range. Take the maximum minus the minimum and then divide the range by the total number of classes to get the equal intervals.





Figure 5 shows the Equal Interval map of the Organic
Production farms.


Figure 6 shows a graduated color map classified by the Quantile method. This type of method separates its classes by using the same amount of observations per interval of the data set.


Figure 6 shows the Quantile map of the Organic
Production farms.


Figure 7 displays a graduated map by the Natural Breaks (Jenks) method. This type of method breaks up the intervals depending on where the biggest differences are. 


Figure 7 displays the Natural Breaks map of the
Organic Production Farms


NSDA Certified Organic Farms in 2012


Figure 8 shows all there methods that were mapped side by side for an easier comparison


After creating the three maps I decided that the Natural Breaks was the best map to show my boss's clients. Equal Interval would not be the best because outlying Organic Farms are highly concentrated in just a few counties. Because there are only a few outliers, it would be hard for the clients to tel which counties need more organic production farms the most. On the other hand, the Quantile map is a little overkill. If the clients see how many dark colored counties there are, they might assume that there is no need more NSDA Organic Farms in certain counties that could use more. In conclusion, the most effective map is Natural breaks because it meets the other two maps right in middle properly showing the distribution of Organic Farms in Wisconsin counties. It also does a great job at displaying which of the counties need more Organic Farms.

Sources:


Part 1:

Figure 1: Self-made

Figure 2: Self-made

Figure 3: http://www.smu.edu/-/media/Site/Dedman/Academics/Programs/Geothermal-Lab/Graphics/TemperatureMaps/SMU_2011_10kmTemperature_small.ashx?la=en

Figure 4: Self-made

Part 2:

Data comes from 2012 Census of Agriculture. Accessed September 26, 2017: 
https://www.agcensus.usda.gov/Publications/2012/Full_Report/Volume_1,_Chapter_2_County_Level/Wisconsin/st55_2_042_042.pdf