Download remote sensing for urban and more Lecture notes Statistics for Psychologists in PDF only on Docsity!
SPSS Workshop
Day 2 – Data Analysis
Outline
(^) Descriptive Statistics
(^) Types of data
(^) Graphical Summaries
(^) For Categorical Variables
(^) For Quantitative Variables
(^) Contingency Tables
(^) Hypothesis Testing
(^) One Sample t-test
(^) Two Sample t-test
(^) Sample Size/Power Analysis
To SPSS:
(^) Open gssnet.sav ->Analyze->Descriptive Statistics ->Descriptives ->Analyze->Descriptive Statistics->Frequencies (you can get more descriptive statistics here also)
Types of Data
(^) Variable- any characteristic that is recorded for subjects in a study - (^) Categorical- if each observation belongs to one of a set of categories - (^) Quantitative- if observations on it take numerical values that represent different magnitudes of the variable - (^) Discrete- if its possible values form a set of separate numbers, such as 0, 1, 2, … - Continuous- if its possible values form an interval
Graphical Summaries for
Categorical Variables
(^) Pie chart- a circle having a “slice of the pie” for each category. The size of a slice corresponds to the percentage of observations in the category
(^) Bar chart- displays a vertical bar for each category. The height of the bar is the percentage of observations in the category
To SPSS:
(^) Still in gssnet.sav For the pie chart: ->Graphs->Pie->Summaries of groups of cases->Define slices by netcat->Click OK For labels: ->Double click on the chart ->Elements->Show data labels->choose labels
Graphical Summaries for
Quantitative Variables
(^) Dot plot- shows a dot for each observation, placed just above the value on the number line for that observation.
(^) Stem-and-Leaf Plot- each observation is represented by a stem and a leaf. Usually the stem consists of all digits except the final one, which is the leaf.
(^) Histogram- a graph that uses bars to portray the frequencies or the relative frequencies of the possible outcomes.
(^) Scatterplot- display for two variables. It uses the horizontal axis for the explanatory variable (x) and the vertical axis for the response variable (y).
To SPSS:
(^) Open marathon.sav
(^) Histogram: ->Analyze->Descriptive Statistics->Frequencies ->Charts->Histogram (you can also put a normal curve on the histogram to see how the shape of your data compares to the normal distribution)
Other Useful Plots
(^) Time plot- charts each observation, on the vertical scale, against the time it was measured, on the horizontal scale
(^) Box plot- constructed from the 5-number summary
To SPSS:
(^) Box plots: ->Graphs->Boxplot->Simple ->variable (continuous) ->category axis (categorical) (You can also use boxplots in order to visually compare different groups on a quantitative variable, i.e. age by gender)
Example
(^) 2 x 2 contingency table: Binge Drinking by Gender Binge Drinker Non- binge Drinker Total Male 1908 2017 3925 Female 2854 4125 6979 Total 4762 6142 10904
Chi-squared Test for Independence
(^) The chi-squared test is a hypothesis test to see whether two categorical variables are independent of one another.
(^) We will look to see if the p-value <. (Reject the null hypothesis) If so, then our variables are not independent of one another :variablesarenot independen t :variablesareindependen t 1 0 H
H
Interpreting P-values
(^) We compare the calculated p-value to a pre-specified value (usually .05), if the calculated p-value is less than .05 then there is significant evidence to reject the null hypothesis.
One-sample t-test
(^) Does the population mean differ from hypothesized value? - (^) Different alternative hypotheses (SPSS only does two-sided hypothesis test) 1 0 1 0 1 0