Presentation is loading. Please wait.

Presentation is loading. Please wait.

Inference for Regression

Similar presentations


Presentation on theme: "Inference for Regression"— Presentation transcript:

1 Inference for Regression
Chapter 11 Inference for Regression

2 Variation in the Slope from Sample to Sample
Section 11.1 Variation in the Slope from Sample to Sample

3 Using Samples Anytime we take a sample from the population, our result is some type of an _________.

4 Using Samples Anytime we take a sample from the population, our result is some type of an estimate.

5 Using Samples Anytime we take a sample from the population, our result is some type of an estimate. To obtain exact answers, we would have to take a _______ of the entire population.

6 Using Samples Anytime we take a sample from the population, our result is some type of an estimate. To obtain exact answers, we would have to take a census of the entire population.

7 Consider the scatterplots below.
In which scatterplots is it reasonable to model the relationship between y and x with a line?

8 Consider the scatterplots below.
In which scatterplots is it reasonable to model the relationship between y and x with a line? I, III, IV, V (must be linear pattern)

9 Consider the scatterplots below.
If you fit a line through each scatterplot by the method of least squares, which plot will give a line with slope closest to 0?

10 Consider the scatterplots below.
If you fit a line through each scatterplot by the method of least squares, which plot will give a line with slope closest to 0? IV (points most scattered)

11 Consider the scatterplots below.
In which scatterplots is it meaningful to use correlation to describe the relationship between y and x?

12 Consider the scatterplots below.
In which scatterplots is it meaningful to use correlation to describe the relationship between y and x? I, III, IV, V (must be linear pattern)

13 Consider the scatterplots below.
Which plot shows a correlation coefficient closest to 1?

14 Consider the scatterplots below.
Which plot shows a correlation coefficient closest to 1? V (points packed tightest to LSRL)

15 To summarize a linear relationship, we used a least squares regression line (LSRL).
y = b0 + b1x

16 To summarize a linear relationship, we used a least squares regression line (LSRL).
y = b0 + b1x For this model to be complete, what do you have to have?

17 To summarize a linear relationship, we used a least squares regression line (LSRL).
y = b0 + b1x For this model to be complete, what do you have to have? The complete population

18 To summarize a linear relationship, we used a least squares regression line (LSRL).
y = b0 + b1x If you only have a random sample, the values of b0 and b1 are estimates of true population parameters.

19 “True” linear relationship is:
response = prediction from true regression line + random deviation

20 “True” linear relationship is:
response = prediction from true regression line + random deviation Need random deviation because the point may not fall exactly on the true regression line - some will be above, some below, and some on the line

21 “True” linear relationship is:
response = prediction from true regression line + random deviation y =

22 “True” linear relationship is:
response = prediction from true regression line + random deviation y = where and refer to the intercept and slope of the true regression line if you had data for the entire population.

23 “True” linear relationship is:
response = prediction from true regression line + random deviation y = where and refer to the intercept and slope of the true regression line if you had data for the entire population. is size of random deviation – how far point falls above or below true regression line

24 True regression line aka line of means aka line of averages is written:

25 True regression line aka line of means aka line of averages is written:
=

26 Suppose we wanted to study the relationship of children’s heights vs their ages in years.

27 Suppose we wanted to study the relationship of children’s heights vs their ages in years.
Which variable goes on which axis? Horizontal axis: Vertical axis:

28 Suppose we wanted to study the relationship of children’s heights vs their ages in years.
Which variable goes on which axis? Horizontal axis: ages in years Vertical axis: children’s heights

29 Suppose we wanted to study the relationship of children’s heights vs their ages in years.

30 On average, kids from ages 8 to 13 grow taller at the rate of 2 inches per year. Heights of 8-year-olds average about 51 inches. At each age, the heights are approximately normal, with a standard deviation of roughly 2.1 inches.

31 On average, kids from ages 8 to 13 grow taller at the rate of 2 inches per year. Heights of 8-year-olds average about 51 inches. At each age, the heights are approximately normal, with a standard deviation of roughly 2.1 inches. Average Height Age, x from Model, µy 8 ?

32 On average, kids from ages 8 to 13 grow taller at the rate of 2 inches per year. Heights of 8-year-olds average about 51 inches. At each age, the heights are approximately normal, with a standard deviation of roughly 2.1 inches. Average Height Age, x from Model, µy

33 On average, kids from ages 8 to 13 grow taller at the rate of 2 inches per year. Heights of 8-year-olds average about 51 inches. At each age, the heights are approximately normal, with a standard deviation of roughly 2.1 inches. Average Height Age, x from Model, µy

34 On average, kids from ages 8 to 13 grow taller at the rate of 2 inches per year. Heights of 8-year-olds average about 51 inches. At each age, the heights are approximately normal, with a standard deviation of roughly 2.1 inches. Average Height Age, x from Model, µy

35 If we collected a random sample of the heights of children, we would have different heights for each year of age.

36 Conditional distribution of y given x refers to all the values of y for a fixed value of x

37 Conditional distribution of y given x refers to all the values of y for a fixed value of x

38 Each conditional distribution of height for a given age has:
Mean: for a population and y for sample

39 Each conditional distribution of height for a given age has:
Mean: for a population and y for sample Measure of variability: for a population and s for sample

40 Linear model is appropriate for set of data if:

41 Linear model is appropriate for set of data if:
1) Conditional means fall near a line

42 Linear model is appropriate for set of data if:
1) Conditional means fall near a line

43 Linear model is appropriate for set of data if:
1) Conditional means fall near a line 2) Variability is about the same for each conditional distribution

44 Linear model is appropriate for set of data if:
1) Conditional means fall near a line 2) Variability is about the same for each conditional distribution

45 Linear model is appropriate for set of data if:
1) Conditional means fall near a line 2) Variability is about the same for each conditional distribution

46 Page 744, D4

47 Linear model is appropriate for set of data if:
1) Conditional means fall near a line 2) Variability is about the same for each conditional distribution

48 Page 744, D4 Two potential problems here.
First, the data appear to have curvature. The centers of the conditional distributions of y do not lie on a straight line, which is one of the conditions for a linear fit.

49 Page 744, D4 Second, the conditional distribution of
responses at x = 2 has far greater variation than either of the other two conditional distributions. The assumption of equal variances of responses across all values of x is violated.

50 Common variability of y at each x is called .

51 Common variability of y at each x is called .
It is estimated by s, which can be thought of as the standard deviation of the residuals.

52 Common variability of y at each x is called .
It is estimated by s, which can be thought of as the standard deviation of the residuals.

53 Spread in values of x is measured by:

54 Recall, most of the time the theoretical slope, β1, is _________.

55 Recall, most of the time the theoretical slope, β1, is unknown.

56 Recall, most of the time the theoretical slope, β1, is unknown.
So, we use ___ to estimate β1.

57 Recall, most of the time the theoretical slope, β1, is unknown.
So, we use b1 to estimate β1.

58 The slope b1 _____ from sample to sample.

59 The slope b1 varies from sample to sample.
Is this variation a good thing or not so good?

60 The slope b1 varies from sample to sample.
Is this variation a good thing or not so good? Not so good as the variation affects our predictions.

61 The slope b1 varies from sample to sample.
Bold line is true regression line for the population.

62 Page 741, D2

63 Page 741, D2 The parameter, , is the slope of the theoretical model and generally will not be known.

64 Page 741, D2 The statistic, b1, is an estimate of that is calculated from observed data. The value of b1 will vary from sample to sample.

65 Page 741, D2 Further, the theoretical model takes into
account that not every point is expected to lie on the line. An error term is built in. Epsilon, , is the deviation of a given point from the true regression line.

66 Page 741, D2 Further, the theoretical model takes into
account that not every point is expected to lie on the line. An error term is built in. Epsilon, , is the deviation of a given point from the true regression line. Whereas is the residual from the regression line calculated from the sample data.

67 Page 749, P1

68 Page 749, P1 Fat contains 9 calories per gram. The
theoretical slope, β1, would be 9 calories per gram of fat.

69 Page 749, P1 What is the slope, b1, of the regression line?

70 Page 749, P1 What is the slope, b1, of the regression line?
b1 ≈ 14.9 calories per gram of fat.

71 Page 749, P1 b. Intercept of line tells us the number of calories associated with a serving containing no grams of fat. What is the intercept, b0, of the regression line?

72 Page 749, P1 b. Intercept of line tells us the number of calories associated with a serving containing no grams of fat. What is the intercept, b0, of the regression line? b0 ≈

73 Page 749, P1 c. Pizza has calories from carbohydrates and protein as well as fat. There may be other sources of variation in the measurement process.

74 Page 749, P2

75 mean heightarm span = arm span
Page 749, P2 mean heightarm span = arm span

76 Page 749, P2 b. LSRL: Height = Arm Span

77 Page 749, P2 b. LSRL: Height = 7.915 + 0.952 Arm Span
The interpretation of the estimated slope is that height tends to increase by about 0.952 cm for each 1-cm increase in arm span.

78 Page 749, P2 b. LSRL: Height = 7.915 + 0.952 Arm Span
The estimated slope, b1, of is very close to Leonardo’s theoretical slope, β1 of 1.

79 Page 749, P2 The estimated intercept, b0, is 7.915 cm,
b. LSRL: Height = Arm Span The estimated slope of is very close to Leonardo’s theoretical slope of 1. The estimated intercept, b0, is cm, which is quite far from Leonardo’s theoretical intercept, β0, of 0.

80 Page 749, P2 (c) Mean height arm span = 0 + arm span +

81 Page 749, P2 (c) Mean height arm span = 0 + arm span +
So, = mean height arm span – arm span

82 Page 749, P2 (c) Mean height = 0 + arm span +
So, = mean height – arm span Use L3 = L2 – L1

83 How do you plot the random deviations?
STAT PLOTS 1: Plot 1 ….On Type: select scatterplot Xlist: L1 Ylist: L3 Mark:

84 Page 749, P2 (c)

85 Page 749, P2 (c) This plot shows the random deviations
from the theoretical line y = x plotted against the x-values. The plot shows a pattern: All of the negative deviations are for larger arm spans, and the plot shows a downward trend.

86 Page 749, P2 (d) How do you calculate the residuals?

87 Page 749, P2 (d) How do you calculate the residuals?
8: LinReg(a + bx) L1, L2

88 Page 749, P2 (d) How do you plot the residuals? STAT PLOTS
1: Plot 1 ….On Type: select scatterplot Xlist: L1 Ylist: RESID Mark:

89 Page 749, P2 (d) How do you plot the residuals? STAT PLOTS
1: Plot 1 ….On Type: scatterplot Xlist: L1 Ylist: RESID [2nd, LIST, NAMES, 7:RESID] Mark:

90 Page 749, P2 d.

91 Page 749, P2

92 Page 749, P3

93 Page 749, P3

94 Page 749, P3

95 Page 749, P3

96 Page 749, P3

97 Questions?


Download ppt "Inference for Regression"

Similar presentations


Ads by Google