Regression and Nonlinear Axes

Similar documents
7.4* General logarithmic and exponential functions

A Library of Functions

CURVE FITTING LEAST SQUARE LINE. Consider the class of linear function of the form. = Ax+ B...(1)

Intermediate Lab PHYS 3870

Lecture 5 - Logarithms, Slope of a Function, Derivatives

Matrix Theory and Differential Equations Homework 2 Solutions, due 9/7/6

Logarithmic and Exponential Equations and Change-of-Base

Appendix A. Common Mathematical Operations in Chemistry

Chapter 1 Linear Equations and Graphs

Chapter 3 Exponential and Logarithmic Functions

Appendix 4. Some Equations for Curve Fitting

Review of Section 1.1. Mathematical Models. Review of Section 1.1. Review of Section 1.1. Functions. Domain and range. Piecewise functions

Least squares regression

Curve Fitting and Approximation

Linear Equations. Find the domain and the range of the following set. {(4,5), (7,8), (-1,3), (3,3), (2,-3)}

CHM112 Lab Math Review Grading Rubric

y d y b x a x b Fundamentals of Engineering Review Fundamentals of Engineering Review 1 d x y Introduction - Algebra Cartesian Coordinates

LECTURE NOTES II FUNCTIONAL FORMS OF REGRESSION MODELS 1. THE LOG-LINEAR MODEL

Chapter 3: Transcendental Functions

Chapter 3 Exponential and Logarithmic Functions

Chapter 2. First-Order Differential Equations

Math. Manipulation. Determine the best function of this type. Now: Visually. Later: Using a computer

Lecture 48 Sections Mon, Nov 16, 2009

Interpolation APPLIED PROBLEMS. Reading Between the Lines FLY ROCKET FLY, FLY ROCKET FLY WHAT IS INTERPOLATION? Figure Interpolation of discrete data.

Cartesian Plane. Analytic Geometry. Unit Name

Solutions to Problems and

Calculus I Sample Exam #01

Jim Lambers MAT 419/519 Summer Session Lecture 13 Notes

SOLUTIONS FOR PROBLEMS 1-30

2326 Problem Sheet 1. Solutions 1. First Order Differential Equations. Question 1: Solve the following, given an explicit solution if possible:

Math 120: Precalculus Autumn 2017 A List of Topics for the Final

JUST THE MATHS UNIT NUMBER 5.3. GEOMETRY 3 (Straight line laws) A.J.Hobson

Section 5.8 Regression/Least Squares Approximation

Tvestlanka Karagyozova University of Connecticut

Uncertainty and Graphical Analysis

Test one Review Cal 2

Any of 27 linear and nonlinear models may be fit. The output parallels that of the Simple Regression procedure.

The Treatment of Numerical Experimental Results

regression analysis is a type of inferential statistics which tells us whether relationships between two or more variables exist

Logarithmic Functions

Economics 203: Intermediate Microeconomics. Calculus Review. A function f, is a rule assigning a value y for each value x.

Chapter 1: Precalculus Review

Activity Overview. Background. Concepts. Kepler s Third Law

Limit. Chapter Introduction

Topics Covered in Math 115

Brief answers to assigned even numbered problems that were not to be turned in

Better Exponential Curve Fitting Using Excel

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

Math 1 Lecture 23. Dartmouth College. Wednesday

Algebra I Assessment. Eligible Texas Essential Knowledge and Skills

f(x) = 2x + 5 3x 1. f 1 (x) = x + 5 3x 2. f(x) = 102x x

Jackson 2.3 Homework Problem Solution Dr. Christopher S. Baird University of Massachusetts Lowell

Final Exam Study Guide and Practice Problems Solutions

Dr. Abdulla Eid. Section 3.8 Derivative of the inverse function and logarithms 3 Lecture. Dr. Abdulla Eid. MATHS 101: Calculus I. College of Science

Study Guide for Benchmark #1 Window of Opportunity: March 4-11

Final Exam A Name. 20 i C) Solve the equation by factoring. 4) x2 = x + 30 A) {-5, 6} B) {5, 6} C) {1, 30} D) {-5, -6} -9 ± i 3 14

JUST THE MATHS UNIT NUMBER NUMERICAL MATHEMATICS 6 (Numerical solution) of (ordinary differential equations (A)) A.J.Hobson

Differentiation Practice Questions

for every x in the gomain of g

Tangent Planes, Linear Approximations and Differentiability

GOOD LUCK! 2. a b c d e 12. a b c d e. 3. a b c d e 13. a b c d e. 4. a b c d e 14. a b c d e. 5. a b c d e 15. a b c d e. 6. a b c d e 16.

Consider an ideal pendulum as shown below. l θ is the angular acceleration θ is the angular velocity

Preliminaries Lectures. Dr. Abdulla Eid. Department of Mathematics MATHS 101: Calculus I

Introduction to Differential Equations

+ Statistical Methods in

i x i y i

Experimental Uncertainty (Error) and Data Analysis

4.1 Least Squares Prediction 4.2 Measuring Goodness-of-Fit. 4.3 Modeling Issues. 4.4 Log-Linear Models

Math Exam 2, October 14, 2008

EXPONENTIAL, LOGARITHMIC, AND TRIGONOMETRIC FUNCTIONS

Intermediate Algebra Study Guide

Chapter 13: General Solutions to Homogeneous Linear Differential Equations

Math 308 Exam I Practice Problems

JUST THE MATHS UNIT NUMBER DIFFERENTIATION 4 (Products and quotients) & (Logarithmic differentiation) A.J.Hobson

CURVE FITTING LEAST SQUARE LINE. Consider the class of linear function of the form

Approximate Linear Relationships

MATHEMATICS LEARNING AREA. Methods Units 1 and 2 Course Outline. Week Content Sadler Reference Trigonometry

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

Lecture 13. Simple Linear Regression

STAT 361 Fall Homework 1: Solution. It is customary to use a special sign Σ as an abbreviation for the sum of real numbers

Intermediate Algebra Chapter 12 Review

Appendix F. Treatment of Numerical Data. I. Recording Data F-1

Differential Equations & Separation of Variables

Engg. Math. I. Unit-I. Differential Calculus

Integration - Past Edexcel Exam Questions

Math Review ECON 300: Spring 2014 Benjamin A. Jones MATH/CALCULUS REVIEW

Graphing and Writing Linear Equations Review 3.1, 3.3, & 4.4. Name: Date: Period:

CALCULUS PROBLEMS Courtesy of Prof. Julia Yeomans. Michaelmas Term

Final Exam C Name i D) 2. Solve the equation by factoring. 4) x2 = x + 72 A) {1, 72} B) {-8, 9} C) {-8, -9} D) {8, 9} 9 ± i

2.12: Derivatives of Exp/Log (cont d) and 2.15: Antiderivatives and Initial Value Problems

Review For the Final: Problem 1 Find the general solutions of the following DEs. a) x 2 y xy y 2 = 0 solution: = 0 : homogeneous equation.

Section Linear Correlation and Regression. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

lnbfhf IF Tt=Yy=Y LECTURE: 3-6DERIVATIVES OF LOGARITHMIC FUNCTIONS EY = em EY = by = =1 by Y '= 4*5 off (4 45) b "9b

Skill 6 Exponential and Logarithmic Functions

Predator - Prey Model Trajectories and the nonlinear conservation law

Introduction to Determining Power Law Relationships

UNIT 3: DERIVATIVES STUDY GUIDE

Math 240 Calculus III

1.1 GRAPHS AND LINEAR FUNCTIONS

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

Transcription:

Introduction to Chemical Engineering Calculations Lecture 2.

What is regression analysis? A technique for modeling and analyzing the relationship between 2 or more variables. Usually, 1 variable is designated as the independent variable. Purpose: Establish a mathematical relation between the variables. C(t) = e t 2 a nπx n x n y 0 n=1 a sinh (nπb/a) a a a u(x,y) = f(x)sin dx sin sinh 2

Linear Regression An equation of a line is used to establish the relationship between 2 variables x and y. y = mx + b where y,x = dependent and independent variables, respectively. m, b = slope and intercept, respectively. 3

Fitting a Straight Line to a Set of Data Points Consider a rotameter calibration data: Rotameter Reading (independent variable) Flow Rate (ml/min) (dependent variable) 10 20.0 30 52.1 50 84.6 70 118.3 90 151.0 4

Fitting a Straight Line to a Set of Data Points 5

Fitting a Straight Line to a Set of Data Points Calculating the slope and intercept using the method of least squares: slope : Δy m = = S - S S xy x y 2 xx x Δx S - S intercept : b = S S - S S xx y xy x 2 xx x S - S 6

Fitting a Straight Line to a Set of Data Points Calculating the S-values: S S S S x y xx (average of x values) = (average of y values) = i1 i1 n 2 2 xi n i1 (average of x values) = (average of xy values) = 1 n n 1 n n 1 1 n x y xy i i n i1 x y i i 7

Fitting a Straight Line to a Set of Data Points For the previous data set: S S S S x y xx xy 1 = 10 30 50 70 90 = 50 5 1 = 20.0 52.1 84.6 118.3 151.0 85.2 5 1 2 2 2 2 2 = 10 30 50 70 90 = 3300 5 10 20 30 52.1 5084.6 1 = 5572.8 5 70 118.3 90 151.0 8

Fitting a Straight Line to a Set of Data Points Calculating the slope and intercept: m 5572.8-5085.2 2 = 1.641 3300-50 b 330085.2-5572.850 2 3300-50 3.15 9

Fitting a Straight Line to a Set of Data Points Therefore, the mathematical relation for flow rate in terms of the rotameter reading is: y = 1.641x + 3.15 At any given value of x, a corresponding value for y can easily be calculated using this equation. For x = 25, y = 1.641(25) + 3.15 = 44.175 for x = 250, y = 1.641(250) + 3.15 = 413.40 10

Two-Point Linear Interpolation Given the following set of data: x 1.0 2.0 3.0 4.0 y 0.3 0.7 1.2 1.8 Supposed we want to know two values of y when: 1. x = 2.5 (x is between the range of data points: interpolation) 2. x = 5.0 (x is outside the range of data points: extrapolation) 11

Two-Point Linear Interpolation 12

Two-Point Linear Interpolation 13

Two-Point Linear Interpolation If points 1, 2, and A lie on the same line, then Slope (1-A) = Slope (1-2) If slope is defined as y/x, then, y - y x - x Rearranging the equation, y = y + y - y = x - x 1 2 1 1 2 1 x - x 1 1 2 1 x2- x1 y - y 14

Two-Point Linear Interpolation Two-point interpolation can be used when extracting values from a tabular data. Consider the following tabular data: x 1 2 3 y 1 4 8 Find the value of y when x = 1.3. 1.3-1 y = 1 + 4-1 = 1.9 2-1 15

Fitting Nonlinear Data For simple non-linear equations, linearization can be done by manipulating or plotting the data so that it can be expressed analogously as a linear equation. Original equation: y = mx 2 + b Linearized Form: y = mw + b (with w = x 2 ) Original equation: Linearized Form: sin y = m(x 2 4) + b u = aw + b (with w = x 2 4 and u = sin y) 16

Fitting Nonlinear Data A mass flow rate M(g/s) is measured as a function of temperature T( 0 C). T( 0 C) 10.0 20.0 40.0 80.0 M 14.76 20.14 27.73 38.47 There is reason to believe that m varies linearly with the square root of T: M = at 1/2 + b Determine the values and units of a and b. 17

Fitting Nonlinear Data 18

Fitting Nonlinear Data 19

Fitting Nonlinear Data Linearizing the data set: T 10.0 20.0 40.0 80.0 T 1/2 3.162 4.472 6.325 8.944 M 14.76 20.14 27.73 38.47 The values of a (slope) and b (intercept) can be determined using the method of least squares as discussed previously. 20

Fitting Nonlinear Data Calculate for S X, S Y, S XX, and S XY : X (T 1/2 ) Y (M) X 2 XY 3.162 14.76 10.00 46.68 4.472 20.14 20.00 90.07 6.325 27.73 40.00 175.38 8.944 38.47 80.00 344.09 S X = 5.726 S Y = 25.275 S XX = 37.50 S XY = 164.05 21

Fitting a Straight Line to a Set of Data Points Calculate the slope (a) and intercept (b): slope : intercept : (164.05) - (5.726)(25.275) a = 4.100 2 (37.50) - 5.726 (37.50)(25.275) - (164.05)(5.726) b = 1.798 2 (37.50) - 5.726 Apply dimensional consistency to get the units of a and b: a = 4.100 g/(s- 0 C 1/2 ) and b = 1.798 g/s 22

Nonlinear Axes: The Logarithmic Coordinates 23

Nonlinear Axes: The Logarithmic Coordinates 24

Nonlinear Axes: The Logarithmic Coordinates 25

Nonlinear Axes: The Logarithmic Coordinates 26

Nonlinear Axes: The Logarithmic Coordinates 27

Nonlinear Axes: The Logarithmic Coordinates 28

Nonlinear Axes: The Logarithmic Coordinates 29

Nonlinear Axes: The Logarithmic Coordinates 1. If y versus x data appear linear on a semilog plot, then ln(y) versus x would be linear on a rectangular plot, and the data can therefore be correlated by an exponential function: y = ae bx 2. If y versus x data appear linear on a log plot, then ln(y) versus ln(x) would be linear on a rectangular plot, and the data can therefore be correlated by a power function: y = ax b 30

Nonlinear Axes: The Logarithmic Coordinates A plot of F versus t yields a straight line that passes through the points (t 1 = 15, F 1 = 0.298) and (t 2 = 30, F 2 = 0.0527) on a log plot. Determine the mathematical equation that relates F and t. If linear on a logarithmic plot, then, Linearizing the equation, F = at b ln (F) = ln (a) + b ln(t) 31

Nonlinear Axes: The Logarithmic Coordinates Determine a and b: Δ ln(f) ln(f 2 /F 1) ln(0.0527/.298) b = = = = -2.50 Δ ln(t) ln(t /t ) ln(30/15) To determine a: 2 1 ln (a) = ln (F 1 ) b ln(t 1 ) or ln (a) = ln (F 2 ) b ln(t 2 ) Using the first data point, ln (a) = ln (0.298) b ln(15) = 5.559 a = exp (5.559) = 260 32