Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Practice of Statistics

Similar presentations


Presentation on theme: "The Practice of Statistics"— Presentation transcript:

1 The Practice of Statistics
Chapter 4: More about Relationships between Two Variables The Practice of Statistics Third Edition

2 Ch 4 Objectives Identify settings in which a transformation might be necessary in order to achieve linearity. Use transformations involving powers and logarithms to linearize curved relationships. Explain what is meant by a two-way table, and describe its parts Give an example of Simpson’s paradox. Explain what gives the best evidence for causation. Explain the criteria for establishing causation when experimentation is not feasible.

3 4.1 Recap… Objectives Explain what is mean by transforming (re-expressing) data. Discuss the advantage of transforming nonlinear data. Tell where y=log(x) fits into the hierarchy of power transformations. Explain the ladder of power transformations. Explain how linear growth differs from exponential growth. Identify real-life situations in which a transformation can by used to linearize dara from an exponential growth model. Use a logarithmic transformation to linearize a data set that can by modeled by an exponential model. Identify situations in which a transformation is required to linearize a power model. Use a transformation to linearize a data set that can be modeled by a power model.

4 Bivariate Data Influential points (which may be outliers) See 3.3, page 237 Effects of outliers

5 Fig 4.1 Scatterplot and least-squares regression line of brain weight against body weight for 96 species of mammals. Are there influential points? How do you know? There is a standard method for multivariate outlier detection, but we need – among other knowledge – Chi-square.

6 Fig 4.2 Scatterplot of brain weight against body weight for mammals with outliers removed.

7 Fig 4.3 Scatterplot and least-squares regression line of brain weight against body weight for 96 species of mammals.

8 Example 4.2: Fishing tournament (transforming data with powers)
Scatterplot of Atlantic Ocean rockfish weight versus length.

9 Scatterplot of Atlantic Ocean rockfish weight versus length3.

10 Residual plot versus length3.
Analysis Slight pattern in smaller values of length3. For smaller fish, the residuals are all small negative values. Thus, the model predicts a weight slightly higher than the actual weight. For heavier fish, fairly randomly scattered points. The model should be relatively accurate for heavier (tournament-sized) fish.

11 Atlantic Ocean rockfish data with the model
WEIGHT = (LENGTH3)

12 Fig 4. 8 The hierarchy of power functions
Fig 4.8 The hierarchy of power functions The logarithm function corresponds to p = 0.

13

14 Want or need more practice with logarithms? Visit tutorial.math.lamar.edu/AllBrowers/AlgebraTrigReview/SimpLogs.asp

15 4.2 Relationship between Categorical Variables
Examples: sex, race, occupation Use counts or percents of individuals in categories

16 4.2 Objectives Explain what is meant by a two-way table.
Explain what is meant by marginal distributions in a two-way table. Describe how changing counts to percents is helpful in describing relationships between categorical variables. Explain what is mean by a conditional distribution. Define Simpson’s paradox, and give an example of it.

17 Marginal Distributions
Two way table: If the row and column totals are missing, CALCUATE THEM!

18

19 Fig 4. 20: A bar graph of the distribution of age for college students
Fig 4.20: A bar graph of the distribution of age for college students. This is one of the marginal distributions for Table 4.5. EXCEL DATA

20 Fig 4.21: Bar graph comparing the percent of female college students in four age groups. There are more women than men in all college age groups, but the percent of women is the highest among older students.

21 Fig 4.22: Computer output of the two-way table of college students by age and sex, along with each entry as a percent of its row total. The percents in each row five the conditional distribution of sex for one age group, and the percent in the “Total” row give the marginal distributional of sex for all college students.

22

23

24

25 Simpson’s Paradox As is the case with quantitative variables, the effects of lurking variables can change or even reverse relationships between two categorical variables.

26 Example 4.15 Do medical helicopters save lives? pp

27

28

29

30

31 Remaining exercises to be completed and handed in include any we didn’t finish in class as well as:
4.31 through 4.35 We will cover 4.3 tomorrow.


Download ppt "The Practice of Statistics"

Similar presentations


Ads by Google