Nonlinear Regression Section 3 Quadratic Modeling

Similar documents
Nonlinear Regression Curve Fitting and Regression (Statcrunch) Answers to selected problems

Correlation and Regression Notes. Categorical / Categorical Relationship (Chi-Squared Independence Test)

Scatterplots. 3.1: Scatterplots & Correlation. Scatterplots. Explanatory & Response Variables. Section 3.1 Scatterplots and Correlation

Example: f(x) = 2x² + 1 Solution: Math 2 VM Part 5 Quadratic Functions April 25, 2017

Math 1311 Section 5.5 Polynomials and Rational Functions

Chapter 8 ~ Quadratic Functions and Equations In this chapter you will study... You can use these skills...

Nonlinear Regression Act4 Exponential Predictions (Statcrunch)

Determine is the equation of the LSRL. Determine is the equation of the LSRL of Customers in line and seconds to check out.. Chapter 3, Section 2

Richter Scale and Logarithms

Math 5a Reading Assignments for Sections

Chapter 5 Smartboard Notes

Chapter 7. Linear Regression (Pt. 1) 7.1 Introduction. 7.2 The Least-Squares Regression Line

Instructor Quick Check: Question Block 12

Algebra I Assessment. Eligible Texas Essential Knowledge and Skills

Final Exam Review: Study Guide Math 3

Business Statistics. Lecture 9: Simple Regression

Ch. 7.6 Squares, Squaring & Parabolas

Get acquainted with the computer program, The Quadratic Transformer. When you're satisfied that you understand how it works, try the tasks below.

GRE Workshop Quantitative Reasoning. February 13 and 20, 2018

Chapter 10 Correlation and Regression

Chapter 1A -- Real Numbers. iff. Math Symbols: Sets of Numbers

Objectives. Assessment. Assessment 5/14/14. Convert quantities from one unit to another using appropriate conversion factors.

3.2: Least Squares Regressions

Linear Regression. Linear Regression. Linear Regression. Did You Mean Association Or Correlation?

Math 243 OpenStax Chapter 12 Scatterplots and Linear Regression OpenIntro Section and

Scatterplots and Correlation

a factors The exponential 0 is a special case. If b is any nonzero real number, then

MHF4U Unit 2 Polynomial Equation and Inequalities

Chapter 5: Quadratic Functions

Midterm 2 - Solutions

A quadratic expression is a mathematical expression that can be written in the form 2

y = a + bx 12.1: Inference for Linear Regression Review: General Form of Linear Regression Equation Review: Interpreting Computer Regression Output

HMH Fuse Algebra correlated to the. Texas Essential Knowledge and Skills for Mathematics High School Algebra 1

Algebra II Notes Quadratic Functions Unit Applying Quadratic Functions. Math Background

Chapter 2 Linear Equations and Inequalities in One Variable

Intermediate Algebra Summary - Part I

Algebra II (Common Core) Summer Assignment Due: September 11, 2017 (First full day of classes) Ms. Vella

Chapter 4: Regression Models

June If you want, you may scan your assignment and convert it to a.pdf file and it to me.

SOLUTIONS FOR PROBLEMS 1-30

BIVARIATE DATA data for two variables

UNIT 12 ~ More About Regression

Inference with Simple Regression

Algebra 1. Unit 3: Quadratic Functions. Romeo High School

Graphs and Solutions for Quadratic Equations

Non-Linear Regression

Algebra One Dictionary

Practice Test - Chapter 2

Marina s Fish Shop Student Worksheet Name

Chapter 9. Correlation and Regression

More Vocabulary for Expressions

Chapter 3: Describing Relationships

Lesson 2: Exploring Quadratic Relations Quad Regression Unit 5 Quadratic Relations

Absolute Extrema and Constrained Optimization

MINI LESSON. Lesson 2a Linear Functions and Applications

1 a) Remember, the negative in the front and the negative in the exponent have nothing to do w/ 1 each other. Answer: 3/ 2 3/ 4. 8x y.

Algebra & Trig Review

Polynomial Form. Factored Form. Perfect Squares

Solving Quadratic Equations

bx, which takes in a value of the explanatory variable and spits out the log of the predicted response.

Statistical View of Least Squares

MA 1128: Lecture 19 4/20/2018. Quadratic Formula Solving Equations with Graphs

Sect The Slope-Intercept Form

Overview. 4.1 Tables and Graphs for the Relationship Between Two Variables. 4.2 Introduction to Correlation. 4.3 Introduction to Regression 3.

Properties of a Taylor Polynomial

Algebra I. Polynomials.

3. If a coordinate is zero the point must be on an axis. If the x-coordinate is zero, where will the point be?

Parametric Estimating Nonlinear Regression

8.7 MacLaurin Polynomials

9.4 Radical Expressions

1 Quadratic Functions

The Method of Substitution. Linear and Nonlinear Systems of Equations. The Method of Substitution. The Method of Substitution. Example 2.

Index I-1. in one variable, solution set of, 474 solving by factoring, 473 cubic function definition, 394 graphs of, 394 x-intercepts on, 474

Lesson 4 Linear Functions and Applications

Intermediate Algebra Summary - Part II

Show that the set of ordered pairs (x, y) in the table below satisfied a quadratic relationship. Find. Think Pair Share

Math-Essentials Unit 3 Review. Equations and Transformations of the Linear, Quadratic, Absolute Value, Square Root, and Cube Functions

University of Houston Mathematics Contest Algebra 2 Exam. 1. Find x + y, where x and y satisfy the given pair of equations: x 2y = 16

Modeling with non-linear functions Business 8. Consider the supply curve. If we collect a few data points we might find a graph that looks like

7.2 Solving Quadratic Equations by Factoring

MATH SPEAK - TO BE UNDERSTOOD AND MEMORIZED

Algebra I Polynomials

Chapter 9: Roots and Irrational Numbers

Divisibility, Factors, and Multiples

Adding and Subtracting Polynomials

Chapter 3: Examining Relationships

Basic Equation Solving Strategies

Assignment busshw1 due 10/15/2012 at 01:04pm EDT

Chapter 8. Linear Regression. Copyright 2010 Pearson Education, Inc.

Polynomial and Synthetic Division

A VERTICAL LOOK AT KEY CONCEPTS AND PROCEDURES ALGEBRA I

STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA II. 2 nd Nine Weeks,

Modeling Data with Functions

Suppose we have the set of all real numbers, R, and two operations, +, and *. Then the following are assumed to be true.

P.1 Prerequisite skills Basic Algebra Skills

Polynomial Functions

Lecture Slides. Elementary Statistics Tenth Edition. by Mario F. Triola. and the Triola Statistics Series. Slide 1

Course Outline. Linear Equations Linear Inequalities (1.6)

Section 8 Topic 1 Comparing Linear, Quadratic, and Exponential Functions Part 1

Chapter 2. Polynomial and Rational Functions. 2.5 Zeros of Polynomial Functions

Transcription:

Nonlinear Regression Section 3 Quadratic Modeling Another type of non-linear function seen in scatterplots is the Quadratic function. Quadratic functions have a distinctive shape. Whereas the exponential function has an L shape, quadratic functions have a U shape. This U shape is often called a Parabola. Because of their parabolic shape, Quadratic functions are commonly used to map airplane flights or missile launches. But a scatterplot does not have to have a U shape to use a Quadratic function. Quadratic functions can be used to map almost any curve in the scope of the data. But what is a Quadratic function? What does the function look like? Whereas linear functions have the form ŷ mx b and exponential functions are known for the variable exponents, Quadratic functions are known for their squared variables. The standard form for a quadratic function is 2 ŷ ax bx c where a, b and c are real numbers. Let us look at the following data set. This gives the value of a stock over a 6 month period. Stocks are notorious for going up and down in value depending on the state of the economy at the time. We let the explanatory variable be the number of months since January 1, and the response variable is the stock price per share in dollars. # of months since January Stock price $ per 1 share 0 39.4 0.5 45.35 1 62.91 1.5 84.71 2 102.31 2.5 110.19 3 120.4 3.5 115.63 4 104.23 4.5 92.5 5 86.61 5.5 75.12 6 69.29 If we make a scatterplot of this data on Statcato, we get the following graph. Notice the distinctive upside down U shape.

So far, we have discussed the linear, exponential functions. Having Statcato find the least squares regression line and the best fit exponential function, we obtain the following graphs.

Notice that neither the regression line nor the exponential function seem to fit the data very well. In fact the exponential looks almost the same as the regression line. We will now have Statcato find the quadratic function that best fits the data. The quadratic function seems to fit the data very well. Let us look at the quadratic function that Statcato found. yˆ 31.168 47.652 x 7.108x 2 2 Notice that the coefficient in front of the x term is negative. This is called the leading coefficient. When the leading coefficient is positive the quadratic will have a U shape, but as in this function, when the leading coefficient is negative the quadratic will have an upside down U shape. As I said earlier, don t make the mistake of thinking that quadratic functions are only useful when your scatterplot has a U shape. On the contrary, quadratic functions can be a good model for many curves.

For an example of this, let s look again at our world population data from section 4.1. Recall that this data gives the year and the world population from the year 500 BC to the year 1950 AD. Statcato found that the equation for that exponential function that best fit the data was yˆ the data and a scatterplot of the data with the exponential function. Year World Population in Billions -500 0.1 1 0.2 1000 0.31 1750 0.791 1800 0.978 1850 1.262 1900 1.65 1950 2.519 0.164 1.001 x. Here is We said in section 4.1 that the exponential function fits the data set better than the regression line, but still not perfectly. We may think about whether another function might fit the data better than the exponential function. Plugging in this data into Statcato, we have the program find the quadratic function that best fits the data. Here is the scatterplot.

Notice that the quadratic function fits the data reasonably well. As with the exponential function, Statcato found the function that best fits the data. Looking at the graph, you may see that the leading coefficient says 0.000. This does not mean that the leading coefficient is zero. (If that were the case, this function would not be quadratic.) It just means that the number when rounded to three decimal places is zero. Look under the Statistics menu in Statcato. Click on Correlation and Regression then on Nonlinear models. Under this menu, Statcato will give the function to better accuracy. We found the function to be yˆ 0.6674 0.00037 x 0.0000006479 x 2. Notice the leading coefficient is positive, which corresponds to the graphs U shape. But now we have a quandary. In section 4.1, we found the linear and exponential functions that best fit this data. Now we also have the quadratic function to think about. So which is the best fit for the data? Assessing the fit of a quadratic function Let s start be looking again at the scatterplots. Which function looks like it fits the data the best, the line, the exponential curve, or the quadratic curve?

We definitely can see that the curves fit the data better than the line, but it is hard to tell which of the curves fit the data better. Recall that one way to answer the question of best fit is to look at the R-squared values for the line and each of the two curves. R-Squared (line) = 0.5878 R-Squared (Exponential curve) = 0.9078 R-Squared (Quadratic curve) = 0.7369 Remember that we do not like to use a more complicated model unless there is a significant improvement. We see from the R-squared values that the quadratic (73.7%) is significantly better than the line (58.8%) but not nearly as good as the exponential (90.8%). For this data set, it seems the exponential is the best model. We also like to look at the standard deviation of the residual errors S e. Recall that the curve with the smallest standard deviation is also an indication of best fit. We had Statcato calculate the standard deviations for the line and the two curves. S e (line) = 0.5721 Billion people S e (exponential) = 0.3673 Billion people S e (quadratic) = 0.5007 Billion people. As with the R-squared, the exponential model seems to be the best fit for this data. It has not only the highest R-squared value, but also the lowest standard deviation of the residual errors. Residual Plots Let s take a look at the residual plot for the quadratic population function above. Recall that a Residual plot is just a scatterplot with the original x values and the residuals as the y values.

What does the Residual Plot tell us? Recall one of the main reasons to look at a residual plot is to find which x values might be best for making a prediciton with this model. These x values are often called prediction intervals. Do you notice that for 500 x 1000 the points are reasonably close to the curve, but for 1750 x 1950 the points are much farther away from curve. This tells us that if we use the quadratic function to predict the population, then the predictions will be more accurate if we use years between 500 BC and 1000 AD and less accurate for years between 1750 and 1950 AD. You may have noticed that the residual plot for the Quadratic function looks very similar to the residual plot for the exponential function that we looked at in section 4.1. The residual plots for both the Exponential and Quadratic function have an S shape to them. We said that this could indicate that there may be a function that fits this data even better than the Exponential or Quadratic models. Can you think of a model that has an S shape to it? If you said cubic function, you may be right. Just to satisfy your curriosity here is a scatterplot of the population data with a cubic function. So what do you think of the fit?