Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Regression Analysis. Two Purposes Explanation –Explain (or account for) the variance in a variable (e.g., explain why children’s test.

Similar presentations


Presentation on theme: "Introduction to Regression Analysis. Two Purposes Explanation –Explain (or account for) the variance in a variable (e.g., explain why children’s test."— Presentation transcript:

1 Introduction to Regression Analysis

2 Two Purposes Explanation –Explain (or account for) the variance in a variable (e.g., explain why children’s test scores vary). –We’ll cover this later. Prediction –Construction an equation to predict scores on some variable. –Construct an equation that can be used in selecting individuals.

3 Prediction Use a set of scores collected from a sample to make predictions about individuals in the population (not in the sample). Use the scores to construct a mathematical (typically linear) equation that allows us to predict performance. Two types of scores are collected: –Usually a measure on one criterion (outcome, dependent) variable. –Scores on one or more predictor (independent) variables.

4 The equations The equation for one individual’s criterion score: The prediction equation for that individual’s score The difference between the two equations (called a residual)

5 The function The linear function has the form: Where the βs are weights (regression weights) selected such that sum of squared errors are minimized (least squares criterion)

6 Multiple Correlation Minimizing the sum of squared errors causes the correlation between the actual criterion scores and the predicted scores to be maximized (as large as possible). This correlation is called a multiple correlation. It is the correlation between the criterion variable and a linear composite of the predictor variables.

7 Coefficient of Determinatin The square of the multiple correlation, is called the coefficient of determination. It gives the proportion of shared variance (i.e., covariance) between the criterion variable and the weighted linear composite. Hence the larger the, R 2, the better the prediction equation.

8 Basic regression equation

9 Computing the constants in the regression equation where

10 A closer look at the regression equation

11 Partitioning the Sum of Squares (SS y ) SSy is given by Now, Consider the following identity Subtracting from each side gives, Squaring and summing gives,

12 Simplifying the previous equation Where SSreg = Sum of squares due to regression, and SSres = Residual sum of squares. Dividing through by the total sum of squares, gives:, or

13 Example YX 3104531045 1 0 1 2

14 Calculation of squares and cross-products Deviation squares and cross- products Sums of squares and cross- products

15 Calculation of the coefficients The slope, the intercept, and the regression line.

16 Calculation of SSreg From an earlier equation…

17 Some additional equations for SSreg Hence…

18 SSreg computed from a correlation The formula for the Pearson correlation is… therefore,

19 A Closer Look at the Equations in Regression Analysis

20 The Variance

21 The standard deviation

22 The covariance

23 The Pearson product moment correlation

24 The normal equations (for the regressions of y on x)

25 The structural model (for an observation on individual i)

26 The regression equation

27 Partitioning a deviation score, y

28 The score, Y, is partitioned Hence, Y is partitioned into a deviation of a predicted score from the mean or the scores PLUS a deviation of the actual score from the predicted score. Our next step is to square the deviation, and sum over all the scores.

29 Partitioning the sum of squared deviations (sum of squares, SS y )

30 What happened to the term, Showing that reduces to zero requires some complicated algebra, recalling that and that

31 Calculation of proportions of sums of squares due to regression and due to error (or residual)

32 Alternative formulas for computing the sums of squares due to regression

33 Test of the regression coefficient, b yx, (i.e. test the null hypothesis that b yx = 0) First compute the variance of estimate

34 Test of the regression coefficient, b yx, (i.e. test the null hypothesis that b yx = 0) Then obtain the standard error of estimate Then compute the standard error of the regression coefficient, S b

35 The test of significance of the regression coefficient ( b yx ) The significance of the regression coefficient is tested using a t test with (N-k-1) degrees of freedom:

36 Computing regression using correlations The correlation, in the population, is given by The population correlation coefficient, ρ xy, is estimated by the sample correlation coefficient, r xy

37 Sums of squares, regression (SS reg ) Recalling that R 2 gives the proportion of variance of Y accounted for (or explained) by X, we can obtain or, in other words, SS reg is that portion of SS y predicted or explained by the regression of Y on X.

38 Standard error of estimate From SS res we can compute the variance of estimate and standard error of estimate as (Note alternative formulas were given earlier.)

39 Testing the Significance of r The significance of a correlation coefficient, r, is tested using a t test: With N-2 degrees of freedom.

40 Testing the difference between two correlations To test the difference between two Pearson correlation coefficients, use the “Comparing two correlation coefficients” calculator on my web site.

41 Testing the difference between two regression coefficients This, also, is a t test: Where was given earlier.

42 Point-biserial and Phi correlation These are both Pearson Product-moment correlations The Point-biserial correlation is used when on variable is a scale variable and the other represents a true dichotomy. For instance, the correlation between a performance on an item—the dichotomous variable—and the total score on a test—the scaled variable.

43 Point-biserial and Phi correlation The Phi correlation is used when both variables represent a true dichotomy. For instance, the correlation between two test items.

44 Biserial and Tetrachoric correlation These are non-Pearson correlations. Both are rarely used anymore. The biserial correlation is used when one variable is truly a scaled variable and the other represents an artificial dichotomy. The Tetrachoric correlation is used when both variables represent an artificial dichotomy.

45 Spearman’s Rho Coefficient and Kendall’s Tau Coefficient Spearman’s rho is used to compute the correlation between two ordinal (or ranked) variables. It is the correlation between two sets of ranks.


Download ppt "Introduction to Regression Analysis. Two Purposes Explanation –Explain (or account for) the variance in a variable (e.g., explain why children’s test."

Similar presentations


Ads by Google