Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder

Slides:



Advertisements
Similar presentations
1 Direct Method of Interpolation Electrical Engineering Majors Authors: Autar Kaw, Jai Paul
Advertisements

Differentiation-Discrete Functions
Direct Method of Interpolation
7/2/ Differentiation-Discrete Functions Industrial Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
8/8/ Euler Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
8/8/ Linear Regression Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
8/15/ Differentiation-Discrete Functions Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
8/18/ Nonlinear Regression Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
10/11/ Nonlinear Regression Chemical Engineering Majors Authors: Autar Kaw, Luke Snyder
10/11/ Differentiation-Discrete Functions Chemical Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
REGRESI 1. 2 Regresi adalah Diberikan sejumlah n buah data Yg dimodelkan oleh persamaan Model yg paling baik (best fit) secara umum adalah model yg meminimalkan.
1 Lagrangian Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
1 Newton’s Divided Difference Polynomial Method of Interpolation Chemical Engineering Majors Authors: Autar Kaw, Jai.
Exponential Model Givenbest fitto the data. Figure. Exponential model of nonlinear regression for y vs. x data 1.
1 Newton’s Divided Difference Polynomial Method of Interpolation Major: All Engineering Majors Authors: Autar Kaw,
5/30/ Runge 4 th Order Method Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
11/16/ Euler Method Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Direct Method of Interpolation Major: All Engineering Majors Authors: Autar Kaw, Jai Paul
12/17/ Linear Regression Dr. A. Emamzadeh. 2 What is Regression? What is regression? Given n data points best fitto the data. The best fit is generally.
1/16/ Runge 4 th Order Method Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
1/19/ Runge 4 th Order Method Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker
1 Direct Method of Interpolation Computer Engineering Majors Authors: Autar Kaw, Jai Paul
2/12/ Linear Regression Electrical Engineering Majors Authors: Autar Kaw, Luke Snyder
1 Direct Method of Interpolation Mechanical Engineering Majors Authors: Autar Kaw, Jai Paul
2/28/ Runge 4 th Order Method Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
6/13/ Linear Regression Major: All Engineering Majors Authors: Autar Kaw, Charlie Barker Presented by: دکتر ابوالفضل.
6/13/ Linear Regression Civil Engineering Majors Authors: Autar Kaw, Luke Snyder
Trapezoidal Rule of Integration
Gauss Quadrature Rule of Integration
Computer Engineering Majors Authors: Autar Kaw, Charlie Barker
Exponential and Logistic Modeling
Differentiation-Discrete Functions
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Spline Interpolation Method
Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Direct Method of Interpolation
Spline Interpolation Method
Lagrangian Interpolation
Civil Engineering Majors Authors: Autar Kaw, Charlie Barker
Newton’s Divided Difference Polynomial Method of Interpolation
Trapezoidal Rule of Integration
Trapezoidal Rule of Integration
Sources of Error Major: All Engineering Majors
Spline Interpolation Method
Computer Engineering Majors Authors: Autar Kaw, Luke Snyder
REGRESI.
Gauss Quadrature Rule of Integration
Industrial Engineering Majors Authors: Autar Kaw, Charlie Barker
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Direct Method of Interpolation
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Sources of Error Major: All Engineering Majors
Nonlinear Fitting.
Industrial Engineering Majors Authors: Autar Kaw, Luke Snyder
Measuring Errors Major: All Engineering Majors
Lagrangian Interpolation
Simpson’s 1/3rd Rule of Integration
Simpson’s 1/3rd Rule of Integration
Mechanical Engineering Majors Authors: Autar Kaw, Luke Snyder
Electrical Engineering Majors Authors: Autar Kaw, Charlie Barker
Spline Interpolation Method
Reading Between the Lines
Chemical Engineering Majors Authors: Autar Kaw, Charlie Barker
Sources of Error Major: All Engineering Majors
Differentiation-Discrete Functions
Chemical Engineering Majors Authors: Autar Kaw, Luke Snyder
Newton’s Divided Difference Polynomial Method of Interpolation
Lagrangian Interpolation
Presentation transcript:

Nonlinear Regression http://numericalmethods.eng.usf.edu Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder http://numericalmethods.eng.usf.edu Transforming Numerical Methods Education for STEM Undergraduates 11/15/2018 http://numericalmethods.eng.usf.edu

Nonlinear Regression Some popular nonlinear regression models: 1. Exponential model: 2. Power model: 3. Saturation growth model: 4. Polynomial model: http://numericalmethods.eng.usf.edu

Figure. Nonlinear regression model for discrete y vs. x data Given n data points best fit to the data, where is a nonlinear function of . Figure. Nonlinear regression model for discrete y vs. x data http://numericalmethods.eng.usf.edu

Regression Exponential Model http://numericalmethods.eng.usf.edu

Figure. Exponential model of nonlinear regression for y vs. x data Given best fit to the data. Figure. Exponential model of nonlinear regression for y vs. x data http://numericalmethods.eng.usf.edu

Finding Constants of Exponential Model The sum of the square of the residuals is defined as Differentiate with respect to a and b http://numericalmethods.eng.usf.edu

Finding Constants of Exponential Model Rewriting the equations, we obtain http://numericalmethods.eng.usf.edu

Finding constants of Exponential Model Solving the first equation for a yields http://numericalmethods.eng.usf.edu

Example 1-Exponential Model Many patients get concerned when a test involves injection of a radioactive material. For example for scanning a gallbladder, a few drops of Technetium-99m isotope is used. Half of the Technetium-99m would be gone in about 6 hours. It, however, takes about 24 hours for the radiation levels to reach what we are exposed to in day-to-day activities. Below is given the relative intensity of radiation as a function of time. Table. Relative intensity of radiation as a function of time. t(hrs) 1 3 5 7 9 1.000 0.891 0.708 0.562 0.447 0.355 http://numericalmethods.eng.usf.edu

Example 1-Exponential Model cont. The relative intensity is related to time by the equation Find: a) The value of the regression constants and b) The half-life of Technetium-99m c) Radiation intensity after 24 hours http://numericalmethods.eng.usf.edu

Plot of data http://numericalmethods.eng.usf.edu

The value of λ is found by solving the nonlinear equation Constants of the Model The value of λ is found by solving the nonlinear equation http://numericalmethods.eng.usf.edu

Setting up the Equation in MATLAB t (hrs) 1 3 5 7 9 γ 1.000 0.891 0.708 0.562 0.447 0.355 http://numericalmethods.eng.usf.edu

Setting up the Equation in MATLAB gamma=[1 0.891 0.708 0.562 0.447 0.355] syms lamda sum1=sum(gamma.*t.*exp(lamda*t)); sum2=sum(gamma.*exp(lamda*t)); sum3=sum(exp(2*lamda*t)); sum4=sum(t.*exp(2*lamda*t)); f=sum1-sum2/sum3*sum4; http://numericalmethods.eng.usf.edu

Calculating the Other Constant The value of A can now be calculated The exponential regression model then is http://numericalmethods.eng.usf.edu

Plot of data and regression curve http://numericalmethods.eng.usf.edu

Relative Intensity After 24 hrs The relative intensity of radiation after 24 hours This result implies that only radioactive intensity is left after 24 hours. http://numericalmethods.eng.usf.edu

Homework What is the half-life of Technetium-99m isotope? Write a program in the language of your choice to find the constants of the model. Compare the constants of this regression model with the one where the data is transformed. What if the model was ? http://numericalmethods.eng.usf.edu