correlation and regression - etusivu | …...correlation and regression vanja radišić biljak...

111
CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb, Croatia

Upload: others

Post on 30-Aug-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

CORRELATION AND REGRESSION

Vanja Radišić Biljak

Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb, Croatia

Page 2: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

MedCalc

Page 3: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

Is there an association between White Blood Cell (WBC) count and

concentration of C-reactive protein (CRP) in a group of University Hospital

„Sveti Duh” Emergency Department patients with a suspicion of acute

appendicitis?

Page 4: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

What is the question about the data?

Are these groups

different?

Are these groups

associated?

Can I predict one variable

by knowing the other?

Tests for

statistical

differences

Correlation Regression

Page 5: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Correlation

• Statistical procedure applied to investigate association between two

variables

• Numerically expressed as coefficient of correlation (r)

• Level of significance (P)

Page 6: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Positive correlation

• Increase of x → Increase of y

• Decrease of x → Decrease of y

0 < r ≤ 1

x

y

Page 7: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Negative correlation

-1 ≤ r < 0

Increase of x → Decrease of y

Decrease of x → Increase of y

y

x

Page 8: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

No correlation

• Increase of x → ? of y

• Decrease of x → ? of y

y

x

Page 9: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Association but no correlation

• Correlation can be calculated only if there is LINEAR association

y y

x x

Page 10: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Types of correlation

• Pearson (rp) and Spearman correlation (rs)

1. Sample size < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 11: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

Is there an association between White Blood Cell (WBC) count and

concentration of C-reactive protein (CRP) in a group of University Hospital

„Sveti Duh” Emergency Department patients with a suspicion of acute

appendicitis?

Page 12: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 13: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

Is there an association between White Blood Cell (WBC) count and

concentration of C-reactive protein (CRP) in a group of University Hospital

„Sveti Duh” Emergency Department patients with a suspicion of acute

appendicitis?

Page 14: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 15: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 16: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 17: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

Is there an association between White Blood Cell (WBC) count and

concentration of C-reactive protein (CRP) in a group of University Hospital

„Sveti Duh” Emergency Department patients with a suspicion of acute

appendicitis?

Page 18: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

Is there an association between White Blood Cell (WBC) count and

concentration of C-reactive protein (CRP) in a group of University Hospital

„Sveti Duh” Emergency Department patients with a suspicion of acute

appendicitis?

Quantitative (numerical) data

Page 19: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 20: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 21: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 22: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 23: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Reject normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 24: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Reject normality

Both variables do

not follow normal

distribution

Spearman correlation

Pearson correlation

Page 25: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 1

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Reject normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 26: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

MedCalc

Page 27: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 28: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 29: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Coefficient of correlation (r)

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 30: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Coefficient of correlation (r)

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 31: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 32: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Coefficient of correlation (r)

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 33: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

There is statistically significant positive poor

association between WBC and CRP in a group of

University Hospital „Sveti Duh” Emergency Department

patients with a suspicion of acute appendicitis.

Page 34: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Coefficient of determination (D)

• D = r2

• Indicates how well data fit a statistical model

• r = 0.85; D = 0.7225

• 72% of data are associated

• r = 0.25; D = 0.0625

• 6.25% of data are associated

Page 35: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

There is statistically significant positive poor

association between WBC and CRP in a group of

University Hospital „Sveti Duh” Emergency Department

patients with a suspicion of acute appendicitis.

r2=0,2162

22% of data are associated

Page 36: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

Is there an association between White Blood Cell (WBC) count and Mean

Platelet Volume (MPV) in a group of University Hospital „Sveti Duh”

Emergency Department patients with a suspicion of acute appendicitis?

Page 37: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 38: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 39: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 40: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Type of data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 41: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

Is there an association between White Blood Cell (WBC) count and Mean

Platelet Volume (MPV) in a group of University Hospital „Sveti Duh”

Emergency Department patients with a suspicion of acute appendicitis?

Quantitative (numerical) data

Page 42: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 43: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 44: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 45: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 46: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Accept normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 47: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 2

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Accept normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 48: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

MedCalc

Page 49: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 50: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Coefficient of correlation (r)

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 51: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Coefficient of correlation (r)

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 52: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Coefficient of correlation (r)

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 53: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

We cannot interpret association between WBC and

MPV in a group of University Hospital „Sveti Duh”

Emergency Department patients with a suspicion of

acute appendicitis, as the P value is not significant.

Page 54: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 3

Is there an association between platelet (PLT) count and Mean Platelet

Volume (MPV) in a group of University Hospital „Sveti Duh” Emergency

Department patients with a suspicion of acute appendicitis?

Page 55: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 3

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 56: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 57: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 3

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Accept normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 58: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 3

• Pearson (rp) and Spearman correlation (rs)

1. Sample size = 120 < 30 Spearman correlation

2. Numerical data At least one ordinal

data Spearman correlation

3. Accept normality

Both variables do not

follow normal

distribution

Spearman correlation

Pearson correlation

Page 59: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 60: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Coefficient of correlation (r)

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 61: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

There is statistically significant negative poor

association between Plt and MPV in a group of

University Hospital „Sveti Duh” Emergency Department

patients with a suspicion of acute appendicitis.

Page 62: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

There is statistically significant negative poor

association between Plt and MPV in a group of

University Hospital „Sveti Duh” Emergency Department

patients with a suspicion of acute appendicitis.

r2=0,248

25% of data are associated

Page 63: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

Can we predict MPV values if we know Plt count in a group of University

Hospital „Sveti Duh” Emergency Department patients with a suspicion of acute

appendicitis?

Page 64: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

What is the question about the data?

Are these groups

different?

Are these groups

associated?

Can I predict one variable

by knowing the other?

Tests for

statistical

differences

Correlation Regression

Page 65: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 66: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Regression

• Dependent variable is numeric

• Calculating value of dependent

variable

• Dependent variable is categorical

(binomial)

• Calculating the odds of an event

• Presence/Existence of disease

• Cut-off value

Linear Logistic

Page 67: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

Can we predict MPV if we know PLT count in a group of University Hospital

„Sveti Duh” Emergency Department patients with a suspicion of acute

appendicitis?

Quantitative (numerical) data

Page 68: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

• Dependent variable is numeric

• Calculating value of dependent

variable

• Dependent variable is categorical

(binomial)

• Calculating the odds of an event

• Presence/Existence of disease

• Cut-off value

Linear Logistic

Page 69: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

• Dependent variable is numeric

• Calculating value of dependent

variable

• Dependent variable is categorical

(binomial)

• Calculating the odds of an event

• Presence/Existence of disease

• Cut-off value

Linear Logistic

Page 70: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Linear regression

• Linear regression can be calculated ONLY if there is correlation between

variables

• Independent variable (x)

• Dependent variable (y)

• Dependent variable (y) is calculated from the independent variable (x) using

mathematical operation

Page 71: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Linear regression equation

Equation

y = a + bx

Intercept = a

1

1

Slope = b

x

y

Independent

variable

Dependent

variable

Page 72: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

www.mathisfun.com

Page 73: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

MedCalc

Page 74: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

Page 75: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Confidence limits

95% confidence

interval for slope and

intercept

y = a + bx

Page 76: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

Page 77: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

Page 78: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

only 25% of data follow calulated equation

Page 79: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Residuals

• Difference between

measured and calculated

value

• If equation describes the

data well, residuals are

low

x

Y – f(x)

0

> 0

< 0

Page 80: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 4

Equation doesn’t describe the data well,

coefficient of determination is low, residuals are high.

Page 81: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 5

• Can we predict CRP concentrations if we know WBC count and MPV

values in a group of University Hospital „Sveti Duh” Emergency Department

patients with a suspicion of acute appendicitis?

Page 82: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 5

• Can we predict CRP concentrations if we know WBC count and MPV

values in a group of University Hospital „Sveti Duh” Emergency Department

patients with a suspicion of acute appendicitis?

Multiple regression

Page 83: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 5

Page 84: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 5

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 85: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 5

Coefficient of correlation (r) Interpretation

0-0.24 No association

0.25-0.49 Poor association

0.50-0.74 Moderate to good association

0.75-1.00 Very good to excellent

association

r can be interpreted only if P < level of significance (0.05)

Page 86: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 5

There is no association between MPV and CRP in a group of

University Hospital „Sveti Duh” Emergency Department patients

with a suspicion of acute appendicitis.

Page 87: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

MedCalc

Page 88: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 5

Page 89: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 90: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,
Page 91: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Independent variables

Dependent

variable

Page 92: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 93: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 5

We wanted to predict an OUTCOME

Page 94: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

• Dependent variable is numeric

• Calculating value of dependent

variable

• Dependent variable is categorical

(binomial)

• Calculating the odds of an event

• Presence/Existence of disease

• Cut-off value

Linear Logistic

Page 95: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

• Dependent variable is numeric

• Calculating value of dependent

variable

• Dependent variable is categorical

(binomial)

• Calculating the odds of an event

• Presence/Existence of disease

• Cut-off value

Linear Logistic

Page 96: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Logistic regression

• We can analyze more than two groups of data

• Dependent variable is categorical and binomial (Y)

• Independent variables can be both, numerical and categorical (x1, x2, x3...)

Page 97: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Dependent variable: OUTCOME (APPENDICITIS YES/NO)

Independent variables:

CLINICAL

(categorical)

LABORATORY

(numerical)

LABORATORY

(categorical)

Appetite CRP

Urine test strip

Vomiting WBC

Diarrhea RBC

Dysuria RDW

Rebound tenderness PLT

Pain migration MPV

Page 98: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Stepwise analysis

• Analyze all variables separately to

identify which are significantly

associated with the outcome

• Include significantly associated

variables

• Include other variables for

adjustment

1. Univariate analysis 2. Multivariate analysis

Page 99: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

MedCalc

Page 100: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 101: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 102: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 103: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 104: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 105: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 106: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 107: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Example 6

Page 108: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Logistic regression

The goal of logistic regression is:

to find the best fitting model

(yet biologically reasonable)

to describe the relationship between the

dependent variable and the set of independent

(predictor or explanatory) variables.

Page 109: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Logistic regression

The goal of logistic regression is:

to find the best fitting model

(yet biologically reasonable)

to describe the relationship between the

dependent variable and the set of independent

(predictor or explanatory) variables.

Page 110: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

Logistic regression

The goal of logistic regression is:

to find the best fitting model

(yet biologically reasonable)

to describe the relationship between the

dependent variable and the set of independent

(predictor or explanatory) variables.

Page 111: CORRELATION AND REGRESSION - Etusivu | …...CORRELATION AND REGRESSION Vanja Radišić Biljak Department of medical laboratory diagnostics, University Hospital „Sveti Duh”, Zagreb,

https://www.biochemia-medica.com