Linear Regression SPSS

Embed Size (px)

Citation preview

  • 8/10/2019 Linear Regression SPSS

    1/19

    Linear Regression

  • 8/10/2019 Linear Regression SPSS

    2/19

    Slide 2

    Aims

    Understand linear regression with one predictor

    Understand how we assess the fit of a regressionmodel

    Total Sum of Squares Model Sum of Squares

    Residual Sum of Squares

    F

    R

    2

    Know how to do Regression on PASW/SPSS

    Interpret a regression model

  • 8/10/2019 Linear Regression SPSS

    3/19

    Slide 3

    What is Regression?

    A way of predicting the value of one variable

    from another.

    It is a hypothetical model of the relationship

    between two variables.

    The model used is a linear one.

    Therefore, we describe the relationship using the

    equation of a straight line.

  • 8/10/2019 Linear Regression SPSS

    4/19

    Slide 4

    Describing a Straight Line

    bi

    Regression coefficient for the predictor Gradient (slope) of the regression line

    Direction/Strength of Relationship

    b0

    Intercept (value of Y when X = 0)

    Point at which the regression line crosses the Y-

    axis (ordinate)

    iii XbbY 10

  • 8/10/2019 Linear Regression SPSS

    5/19

    Intercepts and Gradients

  • 8/10/2019 Linear Regression SPSS

    6/19

    Slide 6

    The Method of Least Squares

  • 8/10/2019 Linear Regression SPSS

    7/19

    Slide 7

    How Good is the Model?

    The regression line is only a model

    based on the data.

    This model might not reflect reality.

    We need some way of testing how well

    the model fits the observed data.

    How?

  • 8/10/2019 Linear Regression SPSS

    8/19

    Slide 8

    Sums of Squares

  • 8/10/2019 Linear Regression SPSS

    9/19

    Slide 9

    Summary

    SST Total variability (variability between scores and the mean).

    SSR Residual/Error variability (variability between the

    regression model and the actual data).

    SSM

    Model variability (difference in variability between the

    model and the mean).

    2

    T iSS y y

    2

    pR i iSS y y

    2

    pM iSS y y

  • 8/10/2019 Linear Regression SPSS

    10/19

    Slide 10

    Testing the Model: ANOVA

    If the model results in better predictionthan using the mean, then we expect SSMto

    be much greater than SSR

    SSR

    Error in Model

    SSM

    Improvement Due to the Model

    SST

    Total Variance In The Data

  • 8/10/2019 Linear Regression SPSS

    11/19

    Slide 11

    Testing the Model: ANOVA

    Mean Squared Error

    Sums of Squares are total values.

    They can be expressed as averages.

    These are called Mean Squares, MS

    R

    MMS

    MS

    F

  • 8/10/2019 Linear Regression SPSS

    12/19

    Slide 12

    Testing the Model: R2

    R2

    The proportion of variance accounted for by the

    regression model.

    The Pearson Correlation Coefficient Squared

    T

    M

    SSSSR 2

  • 8/10/2019 Linear Regression SPSS

    13/19

    Regression: An Example

    A record company boss was interested in

    predicting record sales from advertising.

    Data

    200 different album releases

    Outcome variable:

    Sales (CDs and Downloads) in the week after release

    Predictor variable:

    The amount (in s) spent promoting the record before

    release.

  • 8/10/2019 Linear Regression SPSS

    14/19

    Slide 14

    Step One: Graph the Data

  • 8/10/2019 Linear Regression SPSS

    15/19

    Slide 15

    Regression Using PASW/SPSS

  • 8/10/2019 Linear Regression SPSS

    16/19

    Slide 16

    Output: Model Summary

  • 8/10/2019 Linear Regression SPSS

    17/19

    Slide 17

    Output: ANOVA

    SSM

    SSR

    SST

    MSR

    MSM

  • 8/10/2019 Linear Regression SPSS

    18/19

    Slide 18

    SPSS Output: Model Parameters

  • 8/10/2019 Linear Regression SPSS

    19/19

    Slide 19

    Using The Model

    iii bb

    BudgetgAdvertisin09612.014.134

    BudgetgAdvertisinSalesRecord 10

    75.143

    10009612.014.134

    BudgetgAdvertisin09612.014.134SalesRecord

    ii