Session 2
Session 2
Session 2
HYPOTHESIS TESTING
Hypothesis testing
Introduction
• Most hypotheses can be expressed in terms of 2 variables: an IV and a DV
If the p-value (i.e., the probability that the variation in scores is due to chance)
is p > .05 : we cannot reject the null hypothesis H0 and therefore we don’t find
support for the alternative hypothesis H1
→ The test statistic is said to be non-significant
→ Conclusion: there is no statistically significant effect
If the p-value (i.e., the probability that the variation in scores is due to chance)
is p < .05 : we can reject the null hypothesis H0 and therefore the alternative
hypothesis H1 is supported
→ The test statistic is said to be significant
→ Conclusion: there is a statistically significant effect
Hypothesis testing
Confidence intervals and statistical significance
Reminder
Confidence interval (CI)
= A range of scores constructed such that the population mean will fall
within this range in 95% (or 99%) of samples
Two overlapping
95% confidence
intervals
Two 95%
confidence
intervals that
don’t overlap
Statistically different
Hypothesis testing
Confidence intervals and statistical significance
Left: 95% confidence intervals
that just touch end-to-end
represent a p-value ≈ .01
Important to draw some graphs (histograms and boxplots) for all the
dependent variables (DVs) before performing statistical analyses
• The values of observations are plotted on the horizontal axis (x-axis), and the
frequency with which each value occurs in the data set is plotted on the
vertical axis (y-axis)
→ each bar represents a different score & the height of a bar is proportional to
the corresponding frequencies for that score
Histograms
Introduction
• Scores can also be arranged in ranges of scores
Example: length → ranges of 20 cm (e.g., 145-164; 165-184; 185-204)
A population pyramid is
a good way to visualize
differences in distributions
in different groups (or
populations)
Histograms &
population pyramids can
also help you spot unusual
cases (outliers)
Histograms
Element properties
Same as simple or clustered bar chart but instead of bars, the mean is
represented by a dot and a line represents the 95% CI of the mean
HOWEVER, these error bars can be added to a bar chart
Bar charts
Important consideration
• The way bar charts are created depends largely on the way data were
collected do the means come from independent or dependent
samples?
Independent samples: there is no connection between the members of the
different groups, they are different people
e.g., one group of people saw a picture of a big hairy tarantula and another group of
people played with a real, big hairy tarantula. In both groups, level of anxiety was
measured afterwards.
e.g., gender: male and female
Step 3: Drag the DV (« arousal ») into the y-axis box and drag the IV
(« Film ») into the x-axis box
Bar charts for independent means
Simple bar chart
Step 4: Ask to display the error bars
Bar charts for independent means
Clustered bar chart
Step 1: Open the Chart builder dialog box
Step 2: Double click on the icon for a clustered bar chart
Step 3: Drag the DV (« arousal ») into the y-axis box, drag the IV (« Film »)
into the x-axis box, and drag the second grouping variable (« Gender ») into
the Cluster on X box
Step 4: In « Element Properties », ask to display the error bars
Bar charts for dependent means
Simple bar chart
Step 1: Open the Chart builder dialog box
Step 2: Double click on the icon for a simple bar chart
This time, however, you do not have a grouping variable defined and have the data for the
DV (number of hiccups) split in 4 sets of data (baseline, tongue pulling, carotid artery
massage, feet massage) → ?!?
Bar charts for dependent means
Simple bar chart
Step 3: Drag all the variables that together form your DV into the y-axis box
You have to drag them simultaneously
→ Hold down the Ctrl key and click on the 4 variables « baseline », « tongue
pulling », « carotid artery massage », and « feet massage »
SUMMARY
= outcome variable (DV)
INDEX
= manipulation (IV)
Bar charts for dependent means
Simple bar chart
Step 4: Edit the properties of the graph
Bar charts for dependent means
Simple bar chart
EDITING GRAPHS
Editing graphs When you created a graph, double-click on
the graph in the SPSS Output Window
When clicking on the different parts of the graph: you can change the bar colors, the
background colors, etc.
Editing graphs
When clicking on the scale of the graph: you can change the minimum and maximum values displayed,
the decimal places, the text style, etc.