






















Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!























Intermediate SPSS (2) Hypothesis Testing and Inferential Statistics
Tutorial Goal: Continuation of Intermediate SPSS (1). Building and testing hypotheses using inferential statistics in SPSS. This workshop covers parametric and nonparametric data, concentrating on ANOVAs, linear regression, and logistic regression. Participants learn how to understand, analyze and report results. Ok, let‟s review somewhat from our last workshop.
For statistics, there are four kinds of levels of measurement for the variable. All your analyses extend from what kind of level your variable is. They are NOIR.
(N)ominal (O)rdinal (I)nterval (R)atio
Let‟s talk about each one.
Nominal means that the number simply represents a category of objects. There is no measured different among the objects or people. Some examples are giving states numbers (N.Y. 1, Connecticut 2, R.I. 3), assigning a number for gender (male 1, female 2), or designating college major (History 1, Business 2, Sociology 3). You are just assigning a number to something.
Ordinal means the larger number for the object is truly larger in some sort of amount. This typically means rank. Some examples are 1st, 2nd, and 3rd^ places in a contest, or preferences for different movies. However, there is no exactly measured difference among the objects. We don‟t know definitively how much larger or better 1st^ is compared to 2nd. We just know 1st^ is somehow larger than 2nd.
Interval means, like Ordinal, that there is a rank for the objects or people, but there is also a measurement for the ranking. Some examples are degrees Celsius or Fahrenheit. We know that the different between 98 and 99 degrees is the difference of the amount of mercury in a thermometer. Also, the difference between 42 and 43 degrees is the same amount between 98 and 99. However, there is no true zero, which stands for a complete lack of the object being measured. 0 degree does not mean there is no mercury, for example.
Ratio means, like Interval, that there is a measurement for the ranking, but there is also a true zero. A true zero means that there is lack of the quality being measured. Some examples are income, where the difference between $10,000 and $11,000 is known and zero means complete lack of income.
These levels are very important and we will be discussing them more as we go on. Nominal and Ordinal are called Nonparametric Data , and Interval and Ratio are called Parametric Data. The statistical analyses that you can use are dependent on what level your data are. Specifically, if you can make a logical mean using your data, then you can use parametric data.
There are some assumptions about data that you should be aware of. These also affect which test you choose.
Nonparametric Parametric Nominal/Ordinal Data Random sampling
Interval/Ratio Data Random sampling Normal Distribution Equal variances of the scores in populations that the samples come from.
Since the parametric data have more assumptions, the parametric tests are considered more powerful when the assumptions are met. Powerful means that these tests are better at picking up differences in variables in the population. Also they are more robust to the violations of the assumptions. So, if the assumptions are not completely met, you can still get accurate results. The only assumption that‟s nonnegotiable is the level of measurement.
When you choose a statistical analysis, you need to do two things, make a hypothesis and decide on significance. We are now going to talk about each one before we go on to the test.
N ull Hypothesis (HO) states that the numbers of your sample do not differ significantly from the numbers of the population. For example, you walk into any old restaurant and do an IQ test on 30 customers. The HO says that the mean of their IQs should not differ significantly from the mean IQ of the population.
Alternative Hypothesis (HA) states that the numbers of your sample differ significantly from the numbers of the population. For example, we heard that the restaurant has intelligence boosting spices in the food, so our HA is that the sample of 30 people from the restaurant has a mean IQ of 130, which is much higher than the population‟s IQ.
P is significance. So, if you see a result reported p<.05 , it means that the likelihood that the result is due to chance is less than .05. You, when doing research, have .05 likelihood of chance that you can tolerate. It is conventional that significance is set at .05, but it can even be lower at .01 or even lower depending on how daring you want to be. One tailed or two tailed is where you put this likelihood of chance on your distribution curve. The likelihood of chance is also called alpha.
APA also suggests reporting effect size. Please see Publication Manual of the American Psychological Association for further information.
From these four things, the test result and significance are the most important. Basically, you need a test result of a number high enough to reach significance. For example, if I were doing chi-square with 2 df, I need a test result (critical value) of at least 5.992 to reach significance. If you reach significance, you can reject the HO and accept the HA (You always talk about accepting hypotheses). Don‟t worry, though. SPSS does all the math. You only need to understand and report the results.
df\area .050 .025 .010. 1 3.84146^ 5.02389^ 6.63490^7. 2 5.99146 7.37776 9.21034 10. 3 7.81473^ 9.34840^ 11.34487^ 12. 4 9.48773 11.14329 13.27670 14. 5 11.07050^ 12.83250^ 15.08627^ 16.
So, with our restaurant and IQ example, the result would be reported as “The mean IQ of 130.76 for the 30 eaters at the restaurant was significantly higher than the national average IQ, t (29) = 20.650, p < .000, one- tailed).”
In this lesion, you will be introduced to five of the major statistical tests: simple and multiple regression , logistic regression, and ANOVA.
Our last important statistical analysis is the Analysis of Variance (ANOVA). Basically, it‟s multiple t -tests. Instead of doing a t -test for every group that you have and all their combinations, you can do a quick ANOVA and check the means of each group with each other.
Please go to http://dl.lib.brown.edu/gateway/ssds/SPSSDATA3.zip and open the Anova file.
Minimum critical value to reach significance at p = .05 with 2 df.
This is again data from the GSS. Let‟s do some sociology/political science research. Here we have two variables, livecom1 , which is number of years a person has lived in a community, and partyid , which is the person‟s political party affiliation (0 strong democrat; 1 not strong democrat; 2 independent, near dem; 3 independent; 4 independent, near rep; 5 not strong republican; 6 strong republican). So, we want to form 7 groups according to how each person views him/herself politically and compare the mean number of years living in a community for each group. We are going to do a One-Way ANOVA. This is where we have one independent variable, partyid, which is categorical data, and one dependent variable, livecom1, which is parametric data. Remember, categorical data is nominal or ordinal. You can break up the data into different groups. Also, there is a nonparametric equivalent of ANOVAs - Kruskal-Wallis.
Let‟s establish our hypotheses:
HO: There is no difference in the number of years a person has lived in a community according to the person‟s political identity. HA: People who are democratic live longer in a neighborhood.
You can also do Two-Way (two independent variables) or more ANOVAS. In addition, there are two ways we deal with our participants or subjects. If the levels are different between the participants, for example different drug doses, then our ANOVA is called Between-subjects. If the levels vary for each participant, so he/she experiences two or more levels, then our ANOVA is called Within-subjects. Use the statistics reference at the end of the tutorial to learn more.
Now let‟s look at our results.
First, we have our Descriptives. If you look at the Mean , you can see that the mean number of years is smallest for Independents and highest for Strong Democrats and Strong Republicans.
In the ANOVA chart:
A. The df for your result.
B. The F result, which is the result for the ANOVA.
C. The Sig. is .004 there is at least one difference in the means. We need to check out what‟s actually difference in the Post Hocs Tests.
So, let‟s report our results: ( F with the df from the Regression and Residual in subscript from the ANOVA table = result, p (<=) number from the ANOVA table)
There is a significant difference in length of residence among groups of different political affiliation, F 6, 1284= 3.197, p < .004.
Also, we should report our Post Hoc Tests to explain what means were exactly significant.
“Using a Bonferroni post-hoc test ( p <.05), the group of Strong Democrats ( M = 19.55 years) and Strong Republicans ( M = 19.24 years) lived longer in their neighborhoods than Independents ( M = 13.43 years).
2. REGRESSION: This is an analysis that is almost a continuation of correlation. As we have seen, one variable varied with another in correlation. A perfect correlation is when X increases one unit of measurement, Y increases an equal unit of measurement. So, in Regression, you are using the X variable to predict the
In the Multiple Comparisons , you have the comparisons of the groups. You can see that the mean of the group of Strong Democrat compared to Independent is significant. Also, you see that the mean is a positive 6.116, so the Strong Democrat group lived more than 6 years more in their neighborhood than Independents. If you check Strong Republicans compared to Independents, you see a significant mean of 5.808.
The Means Plots is a nice visual of what‟s happening. The mean number of years of Strong Democrats and Republicans is noticeably higher than Indepedents. Remember, the means of the other groups were not significant.
H0: There is no relationship between a country‟s death rate and caloric intake. HA: A country‟s death rate can be predicted by the daily caloric intake of its populace.
click the arrow and move it into the Dependent field. Select Per capita daily calories 1985 [food], click the arrow and move it to the Independent field. 2) Click on Save since we want the residuals.
Ok, so we can accept our HA. When we report our results, we have to report the Model and the Beta. In reality, you would never do a simple regression. You would have multiple independent variables. We‟ll talk about that shortly.
First our model: F with the df from the Regression and Residual in subscript from the ANOVA table = result, p (<=) number from the ANOVA table, and the Adjusted R Square from the Model Summary.
“Caloric intake significantly predicted mortality rates, F 1,106 = 56.217, p <.001, R^2 =.347.”
You also need to give info on the significant independent variable: Name of Variable, = result, p (< =) result.
“Our independent variable, per capita daily calories, was a significant predictor, = -.589, p < .001.”
Now, let‟s visualize our data with a scatterplot to get a better sense of how our modal is doing.
Observe some of the cases above the upper lower end of the regression line. See a pattern? They‟re European countries.
Let‟s now look at our residuals. Remember, they are the distance of the observed case from the regression line. Or, in other words, how far our cases fell from the line, which is our model.
There are several methods to enter the variables, such as Enter, Stepwise and Remove. The default is Enter. Also, you need to report what method you used. Usually, if you have a large set of independent variables, more than seven, you can use one of the stepwise options to eliminate variables.
Multicollinearity is when your independent variables correlate with each other. You need to avoid this because it‟s really just creating noise in your model. For example, poverty correlates with crime and illiteracy. So, why have all three variables when poverty is a major cause of the other two?
A. In Model Summery , you find the R Square of .525. So, this model does a better job of explaining the variance of the dependent than only using daily calories.
B. In the ANOVA table, you find the df , F value and the Sig. , all of which you need to report. The Sig. for the model is .000 , so we can reject the null hypothesis.