linear regression exponential and power law relationships

Slides:



Advertisements
Similar presentations
Class 7.2: Graphical Analysis and Excel Solving Problems Using Graphical Analysis.
Advertisements

EGR 105 Foundations of Engineering I
Tensile Testing – Data Sheet Please fill in your name, group members, data and instructor’s name Mark gage length indents using the hammer Measure the.
Physics Graphing Using Excel. Advantages of Graphing with Spreadsheet Programs Can be fast. Handles lots of data and multiple calculations. Precise calculation.
Chapter 5 Plotting Data Curve Fitting, Good Graphing Practices Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Graphing in Excel X-Y Scatter Plot SCI 110 CCC Skills Training.
Altitude Problems the relationship between altitude and air pressure.
Types of Graphs Creating a Graph With Microsoft Excel.
Pressure. The amount of force an object puts on a surface. Pressure is measured by a barometer. Atmospheric pressure comes from air being pulled down.
DISCLAIMER This guide is meant to walk you through the physical process of graphing and regression in Excel…. not to describe when and why you might want.
Chapter 2 Functions and Graphs
Exponential and Logarithmic Functions Logarithmic Functions EXPONENTIAL AND LOGARITHMIC FUNCTIONS Objectives Graph logarithmic functions. Evaluate.
and Logarithmic Equations
CHM 101/102 Laboratory Manual Temperature and Reaction Rate General Chemistry 101/102 Laboratory Manual University of North Carolina at Wilmington.
OCTOBER 20 AIM: What is PRESSURE ? Atmospheric pressure Units Gas pressure.
Physics Activity #4 9/30/14. Objective:  To measure the acceleration of gravity in the lab, by using two different methods.
Solving Equations with Logs Day 2. Solving equations with only one logarithm in it: If it is not base 10 and you can’t use your calculator, then the only.
Copyright © Cengage Learning. All rights reserved. Logarithmic Function Modeling SECTION 6.5.
Principles of Physics.  motion along a straight line path, motion in one dimension  Which way are you headed?  How far did you go?  How fast are you.
Cancer: A Global View Gretchen A. Koch Goucher College PEER UTK 2011.
1 XY Scatter Plots in Excel In this example, the position of a hanger on a spring was measured (with respect to a Motion Sensor) as a function.
Understanding Labs. Objective/Agenda  Objective: I can record and present experimental data in a neat, clear, organized manner.  Agenda  Go over lab.
Linear regression exponential and power law relationships living with the lab how do we handle cases where x is not linearly related to y? a straight line.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 3- 1 Homework, Page 296 Tell whether the function is an exponential.
Graphing On Excel Rasienna Willars
Logarithms Definition Graphing. What’s a Log? the logarithm of a number to a given base is the power or exponent to which the base must be raised in order.
Graphical Analysis in Excel EGN 1006 – Introduction to Engineering.
FW364 Ecological Problem Solving Lab 3: Blue Whales Population Growth.
Creating a Scatter Plot On a Mac. Data in Excel Spreadsheet Insert the variable you want on the x-axis in the left column Insert the variable you want.
Exponential Functions. When do we use them? Exponential functions are best used for population, interest, growth/decay and other changes that involve.
Basic Review - continued tom.h.wilson Department of Geology and Geography West Virginia University Morgantown, WV.
Exponential and log graphs Logarithms Identify all the graphs in the diagrams below. (2,16) (0,1) 0 y x  (3,125) 0 y x (0,1)  0 y 1 (4,16) x  0 y.
REGRESSION MODELS OF BEST FIT Assess the fit of a function model for bivariate (2 variables) data by plotting and analyzing residuals.
1 Copyright © 2015, 2011, and 2008 Pearson Education, Inc. Chapter 1 Functions and Graphs Section 6 Logarithmic Functions.
Correlation and Regression Stats. T-Test Recap T Test is used to compare two categories of data – Ex. Size of finch beaks on Baltra island vs. Isabela.
Appendix A. Fundamentals of Science. Homework Problem Solving  1. List the “given” variables with their symbols, values and units.  2. List the unknown.
LOGARITHMIC AND EXPONENTIAL EQUATIONS LOGARITHMIC AND EXPONENTIAL EQUATIONS SECTION 4.6.
MAT150 Unit 4-2: Logarithmic Functions; Properties of Logarithms Copyright ©2013 Pearson Education, Inc.
The weight of Earth’s atmosphere above us exerts a pressure on us. In a way, we live at the bottom of an ocean of air.
§ 1.3 Intercepts.
Chapter 2 Functions and Graphs
Chemistry Monday, 9/21.
Objective Students will be able to graph exponential growth functions.
Solving Exponential and Logarithmic Equations
Chapter 2 Functions and Graphs
R fitting to functions other than lines
XY Scatter Plots in Excel 2007
Exponential and Logarithmic Functions
Using Excel to Graph Data
Making Science Graphs and Interpreting Data
DO NOW Pick up the notes and the lab.
Chapter 2 Functions and Graphs
8.6.4 Comparing Linear and Nonlinear Functions
Graphing Exponential Functions
AIM: What are the general properties of gases and what is PRESSURE
Nuclear Decay Simulation
Logarithmic and Exponential Equations
Exponential and Logarithmic Functions
Logarithms and Logarithmic Functions
Solve for x: 1) xln2 = ln3 2) (x – 1)ln4 = 2
Exponential and Logistic Modeling
Splash Screen.
Using Excel to Graph Data
Ch 4 : More on Two-Variable Data
Logarithmic and Exponential Equations
Chapters Important Concepts and Terms
Making Science Graphs and Interpreting Data
Creating a Graph With Microsoft Excel
7.4 Exponential & Logarithmic Equations
Logarithms Definition Graphing.
Presentation transcript:

linear regression exponential and power law relationships living with the lab linear regression exponential and power law relationships a straight line just doesn’t represent this data very well how do we handle cases where x is not linearly related to y?

living with the lab Class Problem Enter the data below into a spreadsheet, and complete the following activities: Plot y versus x in Excel, and set the title of the plot to “linear y versus linear x” Copy the plot from (a) to another part of your worksheet. Select the vertical axis on the copied plot, right click and select “format axis.” Select logarithmic scale, and change the title of this plot to “log y versus linear x” Copy the plot from (b) to another part of your worksheet. Use a logarithmic axis for the horizontal axis, and change the title of the plot to “log y versus log x” x (seconds) y (meters) 2 50 6 450 10 1400 14 2600 18 4200 22 6550 26 8800 30 11750 www.epa.gov

compare the three plots . . . living with the lab compare the three plots . . . do you notice anything special about any of these three plots? plot form equation physical example linear versus linear is a straight line linear 𝑦=𝑚∙𝑥+𝑏 spring: 𝐹=𝑘∙𝑥 log versus linear is a straight line exponential 𝑦=𝑏∙ 𝑒 𝑚𝑥 radioactive decay: 𝐴= 𝐴 𝑜 ∙ 𝑒 −𝜆𝑡 accelerating body: 𝑦= 1 2 𝑎∙ 𝑡 2 log versus log is a straight line power law 𝑦=𝑏∙ 𝑥 𝑚

  add trendlines & r2 to the previous plots. . . living with the lab 𝑦=𝑚∙𝑥+𝑏 linear  𝑦=𝑏∙ 𝑒 𝑚𝑥 exponential 𝑦=𝑏∙ 𝑥 𝑚 power law which one has the highest r2 value? what does this mean? a power law relationship best describes the relationship between x and y

math behind power law relationships living with the lab math behind power law relationships 𝑦 = 𝑏∙ 𝑥 𝑚 logarithm rules log⁡(𝑦) = log⁡(𝑏∙ 𝑥 𝑚 ) take log of both sides log⁡(𝑦) = log 𝑥 𝑚 +log⁡(𝑏) log 𝑝∙𝑞 = log 𝑝 +log⁡(𝑞) “log(y)” plays the part of “y” log⁡(𝑦) “log(x)” plays the part of “x” = m∙log 𝑥 +log⁡(𝑏) plays part of b log 𝑝 𝑟 = 𝑟∙log 𝑝 𝑚= 𝑛 𝑥 𝑖 𝑦 𝑖 − 𝑥 𝑖 𝑦 𝑖 𝑛 𝑥 𝑖 2 − 𝑥 𝑖 2 = 8∙30.901 − 8.715∙26.367 8∙10.572 − 8.715 2 = 2.020 log 𝑏= 𝑦 𝑖 −𝑚 𝑥 𝑖 𝑛 = 26.367−2.020∙8.715 8 =1.095 𝑏= 10 log 𝑏 = 10 1.095 = 12.457 𝑦=12.457∙ 𝑥 2.020

rewriting equations for power law relationships living with the lab rewriting equations for power law relationships equations for linear fits 𝑚= 𝑛 𝑥 𝑖 𝑦 𝑖 − 𝑥 𝑖 𝑦 𝑖 𝑛 𝑥 𝑖 2 − 𝑥 𝑖 2 𝑏= 𝑦 𝑖 −𝑚 𝑥 𝑖 𝑛 replace x with “log x” and y with “log y” 𝑚= 𝑛 𝑙𝑜𝑔 𝑥 𝑖 ∙𝑙𝑜𝑔 𝑦 𝑖 − 𝑙𝑜𝑔 𝑥 𝑖 ∙ 𝑙𝑜𝑔 𝑦 𝑖 𝑛 (log 𝑥 𝑖 ) 2 − log 𝑥 𝑖 2 log 𝑏= log 𝑦 𝑖 −𝑚 log 𝑥 𝑖 𝑛 𝑏= 10 log 𝑏 equations for power law fits

math behind exponential relationships living with the lab math behind exponential relationships 𝑦 = 𝑏∙ 𝑒 𝑚𝑥 logarithm rules l𝑛(𝑦) = l𝑛(𝑏∙ 𝑒 𝑚𝑥 ) take natural log (ln) of both sides l𝑛⁡(𝑦) = ln 𝑒 𝑚𝑥 +l𝑛⁡(𝑏) l𝑛 𝑝∙𝑞 = l𝑛 𝑝 +l𝑛⁡(𝑞) l𝑛⁡(𝑦) = mx∙ln 𝑒 +l𝑛⁡(𝑏) l𝑛 𝑝 𝑟 = 𝑟∙l𝑛 𝑝 “ln⁡(𝑦)” plays the part of “y” l𝑛⁡(𝑦) = 𝑚𝑥+l𝑛⁡(𝑏) ln 𝑏 plays part of b l𝑛 𝑒 =1 𝑚= 𝑛 𝑥 𝑖 ∙ ln(𝑦 𝑖 ) − 𝑥 𝑖 ln( 𝑦 𝑖 ) 𝑛 𝑥 𝑖 2 − 𝑥 𝑖 2 ln(𝑏)= ln( 𝑦 𝑖 ) − 𝑚 𝑥 𝑖 𝑛 𝑏= 𝑒 ln(𝑏) equations for exponential fits

𝑚= 𝑛 𝑥 𝑖 ∙ ln(𝑦 𝑖 ) − 𝑥 𝑖 ln( 𝑦 𝑖 ) 𝑛 𝑥 𝑖 2 − 𝑥 𝑖 2 living with the lab Class Problem The air that we breathe exerts a significant amount of pressure on objects at sea level (101.3 kPa or 14.7 psi). As we go higher into the atmosphere, the pressure decreases and eventually reaches zero in outer space where there is no air. Pressure measurements were recorded as a function of elevation above sea level resulting in the following table (km = kilometers and kPa = kilopascals):. Hand plot pressure versus elevation using linear-linear scales. Hand plot pressure versus elevation using log-linear scales. Hand plot pressure versus elevation using log-log scales. Based on your hand plots, what type of function is most appropriate (linear, exponential, power law)???? Create an Excel spreadsheet, and create a plot of the data along with a trendline showing r2 for linear, exponential and power law functions. Which has the highest r2? If you have time, manually compute m and b for this function using Excel. altitude (km) pressure (kPa) 0.1 99.5 5 50.7 8 33.8 16 10.1 33 1.0 47 𝑚= 𝑛 𝑥 𝑖 ∙ ln(𝑦 𝑖 ) − 𝑥 𝑖 ln( 𝑦 𝑖 ) 𝑛 𝑥 𝑖 2 − 𝑥 𝑖 2 ln(𝑏)= ln( 𝑦 𝑖 ) − 𝑚 𝑥 𝑖 𝑛 𝑏= 𝑒 ln(𝑏) equations for exponential fits

living with the lab solution