16
Correlation and Linear Regression

Correlation and Linear Regression

  • Upload
    stian

  • View
    61

  • Download
    2

Embed Size (px)

DESCRIPTION

Correlation and Linear Regression. Tools : S catterplot, correlation coefficient , linear regression. If two variables are somehow related, there would be some trend in the scatter plot. 1. Scatterplot. Scatterplot Q2. Scatterplot. Linearity; Direction ; Outlier. - PowerPoint PPT Presentation

Citation preview

Page 1: Correlation and  Linear Regression

Correlation and Linear Regression

Page 2: Correlation and  Linear Regression

Tools:Scatterplot, correlation coefficient,

linear regression

Page 3: Correlation and  Linear Regression

If two variables are somehow related, there would be some trend in the scatter plot.

1. Scatterplot1. Scatterplot

Page 4: Correlation and  Linear Regression

Scatterplot Q2Scatterplot Q2

Page 5: Correlation and  Linear Regression

Linearity; Direction; Outlier

ScatterplotScatterplot

Page 6: Correlation and  Linear Regression

Measure the strenght of the linear relationship of two variables.

Sign: + , - Magnitude: [-1,1]

Partial correlation

2. Correlation Coefficient2. Correlation Coefficient

Page 7: Correlation and  Linear Regression

•Pearson correlation

Correlation Coefficient Q3Correlation Coefficient Q3

Page 8: Correlation and  Linear Regression

Partial Correlation Coefficent

Page 9: Correlation and  Linear Regression

Assumptions: Error follows a normal distribution with mean

0 and constant standard deviation σ.

Error Or,

)|(

10

10

XY

XXY

Regression ModelRegression Model

Page 10: Correlation and  Linear Regression

Regression Q1 e)Regression Q1 e)

Page 11: Correlation and  Linear Regression

Regression OutputRegression Output

ZY 212.907.

:line Regression^

Page 12: Correlation and  Linear Regression

Q1 e) iii. Independent two-sample t test Q1 e) iii. Independent two-sample t test vs. t-test about the slope in regression vs. t-test about the slope in regression modelmodel

0:H testing

toequivalent is :H testingSo,

(Smoker) 1 Z; )(Nonsmoker 0Z

10

SmokerNonsmoker0

10Smoker

0Nonsmoker

10

ZY

Page 13: Correlation and  Linear Regression

Regression cont. Q4Regression cont. Q4

Page 14: Correlation and  Linear Regression

Check normality? same constant standard deviation?

Page 15: Correlation and  Linear Regression

Data Transform data Recode into different variables

Data Select cases

Analyze Descriptive Explore (QQ Plot)

Analyze Compare Means Independent samples t-test (One sided!)

Page 16: Correlation and  Linear Regression