Transformations to Achieve Linearity

Slides:



Advertisements
Similar presentations
Chapter Four: More on Two- Variable Data 4.1: Transforming to Achieve Linearity 4.2: Relationships between Categorical Variables 4.3: Establishing Causation.
Advertisements

8.4 Logarithms p. 486.
Transformations. Transformation (re-expression) of a Variable A very useful transformation is the natural log transformation Transformation of a variable.
Lectures 4a,4b: Exponential & Logarithmic Functions 1.(4.1) Exponential & Logarithmic Functions in Biology 2.(4.2) Exponential & Logarithmic Functions:
Exponential and Logarithmic Functions. Exponential Functions Vocabulary – Exponential Function – Logarithmic Function – Base – Inverse Function – Asymptote.
+ Hw: pg 788: 37, 39, 41, Chapter 12: More About Regression Section 12.2b Transforming using Logarithms.
Transformations to Achieve Linearity
Describing Bivariate Relationships Chapter 3 Summary YMS3e AP Stats at LSHS Mr. Molesky Chapter 3 Summary YMS3e AP Stats at LSHS Mr. Molesky.
VCE Further Maths Least Square Regression using the calculator.
Transforming to achieve linearity
Bivariate Data When two variables are measured on a single experimental unit, the resulting data are called bivariate data. You can describe each variable.
1 6.9 Exponential, Logarithmic & Logistic Models In this section, we will study the following topics: Classifying scatter plots Using the graphing calculator.
Logarithmic Functions & Graphs, Lesson 3.2, page 388 Objective: To graph logarithmic functions, to convert between exponential and logarithmic equations,
Wednesday, May 13, 2015 Report at 11:30 to Prairieview.
Transformations. Transformations to Linearity Many non-linear curves can be put into a linear form by appropriate transformations of the either – the.
Natural Logarithms.
Regression Regression relationship = trend + scatter
Exponential Regression Section Starter The city of Concord was a small town of 10,000 people in Returning war veterans and the G.I.
Scatter Plots And Looking at scatter plots Or Bivariate Data.
Exponential and Logarithmic Functions
YOU NEED TO KNOW WHAT THIS MEANS
Polynomial Regression Section Starter Johnny’s Pizza Shack sells pizzas in seven different sizes. The diameters and costs are shown in the.
NATURAL LOGARITHMS. The Constant: e e is a constant very similar to π. Π = … e = … Because it is a fixed number we can find e 2.
Objective: To graph logarithmic functions, to convert between exponential and logarithmic equations, and find common and natural logarithms using a calculator.
Exponential Functions. When do we use them? Exponential functions are best used for population, interest, growth/decay and other changes that involve.
Fall Looking Back In Chapters 7 & 8, we worked with LINEAR REGRESSION We learned how to: Create a scatterplot Describe a scatterplot Determine the.
Unit 4 Lesson 3 (5.3) Summarizing Bivariate Data 5.3: LSRL.
Chapter 5 Lesson 5.2 Summarizing Bivariate Data 5.2: LSRL.
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.
REGRESSION MODELS OF BEST FIT Assess the fit of a function model for bivariate (2 variables) data by plotting and analyzing residuals.
Warm Ups:  Describe (in words) the transformation(s), sketch the graph and give the domain and range:  1) g(x) = e x ) y = -(½) x - 3.
Chapter 4 More on Two-Variable Data. Four Corners Play a game of four corners, selecting the corner each time by rolling a die Collect the data in a table.
Solving Logarithmic Equations I.. Relationship between Exponential and Logarithmic Equations. A) Logs and Exponentials are INVERSES of each other. 1) That.
LOGARITHMIC FUNCTIONS. LOG FUNCTIONS Exact Values Find the exact value of log 3 81 log 3 81 = x 3 x = 81 3 x = 3 4 x = 4 1.Set the equation equal to.
12.2 TRANSFORMING TO ACHIEVE LINEARITY To use transformations involving powers, roots, and logarithms to find a power or exponential model that describes.
Thursday, May 12, 2016 Report at 11:30 to Prairieview
7.7A Write Exponential Functions
Sections Review.
Lesson 15-7 Curve Fitting Pg 842 #4 – 7, 9 – 12, 14, 17 – 26, 31, 38
Transforming Relationships
7 INVERSE FUNCTIONS.
A little VOCAB.
Solving Exponential and Logarithmic Equations
Solving Exponential Equations
Section 3.2: Least Squares Regression
MATH 2311 Section 5.5.
Solving Exponential Equations
Chapter 10 Re-Expressing data: Get it Straight
Data Transformation Data Analysis.
Day 13 Agenda: DG minutes.
Ch. 12 More about regression
Describing Bivariate Relationships
Transformations.
Transformations.
Advanced Placement Statistics Section 4
Residuals and Residual Plots
Transforming Relationships
Warm Up The following data lists the prices of 12 different bicycle helmets along with the quality rating. Make a scatterplot of the data (price is the.
Chapter 12 Review Inference for Regression
8.3 – Logarithmic Functions and Inverses
Exponential and Logarithmic Functions
Warm Up The table below shows data on the number of live births per 1000 women (aged years) from 1965 to (Hint: enter the year as the years.
MATH 2311 Section 5.5.
4.1 Transformations.
Homework: pg. 266 #3 A. The relationship is strong, negative, and slightly curved. B. Yes. The scatterplot for the transformed data shows a clear linear.
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 3 Vocabulary Linear Regression.
15.7 Curve Fitting.
Regression and Correlation of Data
MATH 2311 Section 5.5.
Presentation transcript:

Transformations to Achieve Linearity

Common Models for Curved Data Exponential Model y = a bx Power Model y = a xb The variable is in the exponent. The variable is the base and b is its power.

Linearizing Exponential Data Accomplished by taking ln(y) To illustrate, we can take the logarithm of both sides of the model. y = a bx ln(y) = ln (a bx) ln(y) = ln(a) + ln(bx) ln(y) = ln(a) + ln(b)x Need Help? Click here. A + BX This is a linear model because ln(a) and ln(b) are constants

Linearizing the Power Model Accomplished by taking the logarithm of both x and y. Again, we can take the logarithm of both sides of the model. y = a xb ln(y) = ln (a xb) ln(y) = ln(a) + ln(xb) ln(y) = ln(a) + b ln(x) Note that this time the logarithm remains attached to both y AND x. A + BX

Why Should We Linearize Data? Much of bivariate data analysis is built on linear models. By linearizing non-linear data, we can assess the fit of non-linear models using linear tactics. In other words, we don’t have to invent new procedures for non-linear data. HOORAY!!

Procedures for testing models Step 1 Inspect Data. If it is non-linear, you should test both exponential and power models. Step 2 Transform Data. Try exponential model first, since it requires taking only one logarithm. Step 3 Inspect Transformed Data. Pay close attention to residual plot and linear correlation coefficient. Step 4 Repeat with the other model.

Example: Starbucks Growth This table represents the number of Starbucks from 1984- 2004. Put the data in your calculator Year in L1 Stores in L2 Construct scatter plot. Forgotten how to make scatterplots? Click here.

Note that the data appear to be non-linear.

Forgotten how to determine the LSRL? Click here. Transformation time Transform the data Let L3 = ln (L1) Let L4 = ln (L2) Redraw scatterplot Determine new LSRL Forgotten how to determine the LSRL? Click here.

Original

Exponential (x, ln y)

Original

Power (ln x, ln y)

Remember: Inspect Residual Plots!! Exponential Power NOTE: Since both residual plots show curved patterns, neither model is completely appropriate, but both are improvements over the basic linear model. Forgotten how to make residual plots? Click here.

R-squared (A.K.A. Tiebreaker) If plots are similar, the decision should be based on the value of r-squared. Power has the highest value (r2 = .94), so it is the most appropriate model for this data (given your choices of models in this course). Forgotten how to find r-squared? Click here.

Writing equation for model Once a model has been chosen, the LSRL must be converted to the non-linear model. This is done using inverses. In practice, you would only need to convert the best fit model.

Conversion to Exponential LSRL for transformed data (x, ln y) ln y = -20.7 + .2707x eln y = e-20.7 + .2707x eln y = e-20.7 (e.2707x) y = e-20.7 (e.2707)x Transformed Linear Model: a + bx Exponential Model: a + bx

Transformed Linear Model: a + bx Conversion to Power LSRL for transformed data (ln x, ln y) ln y = -102.4 + 23.6 ln x eln y = e-102.4 + 23.6 ln x eln y = e-102.4 (e23.6 ln x) y = e-102.4 x23.6 Transformed Linear Model: a + bx Exponential Model: a + bx

View non-linear model with non-linear data