Transforming Data.  P. 265 2,4  P. 276 5,7,9  Make a scatterplot of data  Note non-linear form  Think of a “common-sense” relationship.

Slides:



Advertisements
Similar presentations
Chapter 12: More About Regression
Advertisements

AP Statistics: Section 4.1 C Power Law Models
4.1: Linearizing Data.
1-4 curve fitting with linear functions
Chapter Four: More on Two- Variable Data 4.1: Transforming to Achieve Linearity 4.2: Relationships between Categorical Variables 4.3: Establishing Causation.
AP Statistics Chapters 3 & 4 Measuring Relationships Between 2 Variables.
S ECTION 4.1 – T RANSFORMING R ELATIONSHIPS Linear regression using the LSRL is not the only model for describing data. Some data are not best described.
+ Hw: pg 764: 21 – 26; pg 786: 33, 35 Chapter 12: More About Regression Section 12.2a Transforming to Achieve Linearity.
C HAPTER 4: M ORE ON T WO - V ARIABLE D ATA Part 2.
Linear vs. exponential growth Linear vs. exponential growth: t = 0 A = 1x(1+1) 0 = 1 A = 1x0 + 1 = 1.
Economics 2301 Lecture 8 Logarithms. Base 2 and Base 10 Logarithms Base 2 LogarithmsBase 10 Logarithms Log 2 (0.25)=-2since 2 -2 =1/4Log 10 (0.01)=-2since.
Transforming to Achieve Linearity
+ Hw: pg 788: 37, 39, 41, Chapter 12: More About Regression Section 12.2b Transforming using Logarithms.
Transformations to Achieve Linearity
More about Relationships Between Two Variables
CHAPTER 12 More About Regression
Residuals and Residual Plots Most likely a linear regression will not fit the data perfectly. The residual (e) for each data point is the ________________________.
Transforming to achieve linearity
The Practice of Statistics
The Practice of Statistics Third Edition Chapter 4: More about Relationships between Two Variables Copyright © 2008 by W. H. Freeman & Company Daniel S.
Transforming Relationships
4.1 Modeling Nonlinear Data.  Create scatter plots of non linear data  Transform nonlinear data to use for prediction.
© 1998, Geoff Kuenning Linear Regression Models What is a (good) model? Estimating model parameters Allocating variation Confidence intervals for regressions.
Scatter plots and Regression Algebra II. Linear Regression  Linear regression is the relationship between two variables when the equation is linear.
1 Chapter 4: More on Two-Variable Data 4.1Transforming Relationships 4.2Cautions 4.3Relations in Categorical Data.
M ORE ON T WO V ARIABLE D ATA Non-Linear Data Get That Program Fishy Moths.
Exponential Regression Section Starter The city of Concord was a small town of 10,000 people in Returning war veterans and the G.I.
“Numbers are like people… torture them long enough and they’ll tell you anything...” Linear transformation.
Nonlinear Regression Problem 4.14 Heart Weights of Mammals.
4.1 Modeling Nonlinear Data.  Create scatter plots of non linear data  Transform nonlinear data to use for prediction  Create residual plots.
Transformations.  Although linear regression might produce a ‘good’ fit (high r value) to a set of data, the data set may still be non-linear. To remove.
AP Statistics Section 4.1 A Transforming to Achieve Linearity.
AP STATISTICS Section 4.1 Transforming to Achieve Linearity.
Derivative Examples 2 Example 3
Chapter 9 Scatter Plots and Data Analysis LESSON 1 SCATTER PLOTS AND ASSOCIATION.
Chapter 10 Notes AP Statistics. Re-expressing Data We cannot use a linear model unless the relationship between the two variables is linear. If the relationship.
A little VOCAB.  Causation is the "causal relationship between conduct and result". That is to say that causation provides a means of connecting conduct.
Scatter Plots & Lines of Best Fit To graph and interpret pts on a scatter plot To draw & write equations of best fit lines.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.2 Transforming.
or why I like to draw straight lines
Chapter 12.2A More About Regression—Transforming to Achieve Linearity
Chapter 12: More About Regression
Transforming Relationships
Is this data truly linear?
A little VOCAB.
Chapter 12: More About Regression
Ch. 12 More about regression
Linear Equations Y X y = x + 2 X Y Y = 0 Y =1 Y = 2 Y = 3 Y = (0) + 2 Y = 2 1 Y = (1) + 2 Y = 3 2 Y = (2) + 2 Y = 4 X.
EQ: How can we use linear models for non linear data?
Chapter 12: More About Regression
Transforming to Achieve Linearity
two variables two sets of data
CHAPTER 12 More About Regression
Advanced Placement Statistics Section 4
y = logax y = ax a0 = 1 a1 = a y = axb y = abx
Transforming Relationships
Chapter 12: More About Regression
Chapter 12: More About Regression
Section 4.1 Exponential Modeling
Ch 4 : More on Two-Variable Data
4.1 Transformations.
Chapter 12: More About Regression
CHAPTER 12 More About Regression
Chapter 12: More About Regression
Homework: pg. 276 #5, 6 5.) A. The relationship is strong, negative, and curved. The ratios are all Since the ratios are all the same, the exponential.
Chapter 12: More About Regression
Chapter 12: More About Regression
EQ: How can we use linear models for non linear data?
CHAPTER 12 More About Regression
exponential equations
Presentation transcript:

Transforming Data

 P ,4  P ,7,9

 Make a scatterplot of data  Note non-linear form  Think of a “common-sense” relationship

 Average length and weight of Atlantic Ocean rockfish Age (years) Length (cm) Weight (g) AgeLengthWeight

 Now lets graph length 3 vs. weight  L1 = length  L2 = weight  L3 = length 3  Plot L3 vs. L2  Perform linreg on L3 vs. L2

 weight = (length) 3  Now report r and r 2  Make residual plot

 Exponential Models y = b x Use an exponential model if there is a linear relationship between x and log y.  Power Models y = x b  Use a power Model if there is a linear relationship between log x and log y.

 Y = log b x if and only if b y = x  Evaluate  Log =  Log 2 8 =  Log 3 1/9 =

 log x 125 = 3  Log 4 x = 4

 Log b (MN) = log b M + log b N  Log b (M/N) = log b M – log b N  Log b M p = p log b M

 Show that if y = ab x, then there is a linear relationship between x and log y

 Make scatterplot and note very strong non- linear form.  Take the log of the y-values and put the results in L 3.  Do a linreg on L 1 vs. L 3 (x versus log y)  Write log(y) = bx + a  Untransform to get final exponential model

 Log y = a + bx

Date (years since 1970) Number of Transistors DateNumber of Transistors 12,250191,180,000 22,500233,100,000 45,000277,500, , ,000, , ,000, ,000