Professional Documents
Culture Documents
To d a y ’s o b j e c t i v e s
All the session today will be done on JASP, we will be dealing with:
1. Contingency tables
2. Correlation coefficients – Pearson
3. Correlation coefficients – Spearman
4. Simple linear regression
2
Inferential statistics
3
Measuring connections between variables
Depending on the type of variables that we have there are different option on how to measure
connections between variables
Testing for
connections
between variables
Spearman
Pearson correlation
correlation
coefficient
coefficient
4
Spearman correlation coefficient
For two variables which are continuous in nature
correlation
The relations between two variables
coefficient
• How the value of one variable changes when the value of another
variable changes
Definition
The Coefficient of Correlation (r) is a measure of the strength of the relationship between two
variables.
• It shows the direction and strength of the , there is little linear relationship between the variables.
linear relationship between two interval- indicates a direct or positive linear relationship.
or ratio-scale variables. indicates an inverse or negative linear relationship between
the variables.
Perfect negative correlation Perfect positive corrrelation
12 12
10 10
8 8
6 6
4 4
2 2
0 0
0 2 4 6 8 10 12 14 0 2 4 6 8 10 12 14
6
Correlation Analysis – Measuring
t h e R e l a t i o n s h i p B e t w e e n Tw o Va r i a b l e s
−1 Negative correlation:
0 Positive correlation:
1
Absence of correlation, no correlation, the variables are independent
Weak correlation
Moderate correlation
Strong correlation
Perfect correlation
7
Correlation Analysis – Measuring
t h e R e l a t i o n s h i p B e t w e e n T w o Va r i a b l e s
Examples of distributions
and their relative
coefficient of correlation
8
Correlation between more than 2
variables?
Income Education Attitude Vote
Income 1.00 0.35 -0.19 0.51
Education 1.00 -0.21 0.43
Attitude 1.00 0.55
Vote
Correlation matrix 1.00
Range: -1 to +1
Spearman
correlation
coefficient
Different types of correlation
coefficients
11
Correlation in JASP
Choice of
variables
Choice of correlation
coefficient
Scatter plots
Correlation is available on the regression menu under the option classical correlation
Correlation vs. Regression
• What are the differences
between the 2?
𝑌 =𝒂 𝑋+ 𝒃
15
Purpose of Regression Analysis
Choice of independent
variables
Simple Linear Regression – Output from
SPSS
correlation between actual and predicted values of the dependent
variable
R Square
• the model’s accuracy in explaining the dependent variable
• R2 varies from 0 (no fit) to 1 (perfect fit)
Adjusted R Square
• adjusts R2 for sample size and number of X variables
• As the sample size increases above 20 cases per variable, adjustment is less needed (and vice
versa).
Standard Error
• variability between observed & predicted Y variables
9-19
Activity
Load the file Employee data on JASP.
https://buv.instructure.com/courses/1541/quizzes/4645
9-20