SE-280 Dr. Mark L. Hornick Numerical Integration.

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.
Today’s class Romberg integration Gauss quadrature Numerical Methods
Numerical Integration Lecture (II)1
Newton-Cotes Integration Formula
Lecture 3: Integration. Integration of discrete functions
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Fall 2006 – Fundamentals of Business Statistics 1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter 7 Estimating Population Values.
Chapter 6 Numerical Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Standing.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Newton-Cotes.
Chapter 9 Numerical Integration Numerical Integration Application: Normal Distributions Copyright © The McGraw-Hill Companies, Inc. Permission required.
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
Numerical Integration Formulas
19.5 Numeric Integration and Differentiation
SE-280 Dr. Mark L. Hornick 1 Prediction Intervals.
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Integration. Problem: An experiment has measured the number of particles entering a counter per unit time dN(t)/dt, as a function of time. The problem.
Simpson’s 1/3 rd Rule of Integration. What is Integration? Integration The process of measuring the area under a.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 21 Newton-Cotes Integration Formula.
Numerical Integration In general, a numerical integration is the approximation of a definite integration by a “weighted” sum of function values at discretized.
Integrals 5.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Automatic Integration
Today’s class Numerical Integration Newton-Cotes Numerical Methods
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Simulation of Random Walk How do we investigate this numerically? Choose the step length to be a=1 Use a computer to generate random numbers r i uniformly.
MAT 1235 Calculus II Section 7.7 Approximate (Numerical) Integration
1 Numerical Analysis Lecture 12 Numerical Integration Dr. Nader Okasha.
1 Simpson’s 1/3 rd Rule of Integration. 2 What is Integration? Integration The process of measuring the area under a curve. Where: f(x) is the integrand.
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
Stats for Engineers Lecture 9. Summary From Last Time Confidence Intervals for the mean t-tables Q Student t-distribution.
Simpson Rule For Integration.
Population All members of a set which have a given characteristic. Population Data Data associated with a certain population. Population Parameter A measure.
Confidence Intervals for Means. point estimate – using a single value (or point) to approximate a population parameter. –the sample mean is the best point.
PARAMETRIC STATISTICAL INFERENCE
Numerical Methods Applications of Loops: The power of MATLAB Mathematics + Coding 1.
University of Ottawa - Bio 4118 – Applied Biostatistics © Antoine Morin and Scott Findlay 08/10/ :23 PM 1 Some basic statistical concepts, statistics.
● Final exam Wednesday, 6/10, 11:30-2:30. ● Bring your own blue books ● Closed book. Calculators and 2-page cheat sheet allowed. No cell phone/computer.
Statistical Analysis Topic – Math skills requirements.
Integration Copyright © Cengage Learning. All rights reserved.
Correlation and Prediction Error The amount of prediction error is associated with the strength of the correlation between X and Y.
Section 7-3 Estimating a Population Mean: σ Known.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
Numerical Integration
Ex St 801 Statistical Methods Inference about a Single Population Mean.
1 Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. Example: In a recent poll, 70% of 1501 randomly selected adults said they believed.
Principles of Extrapolation
6. Numerical Integration 6.1 Definition of numerical integration. 6.2 Reasons to use numerical integration. 6.3 Formulas of numerical Integration. 6.4.
Ex St 801 Statistical Methods Inference about a Single Population Mean (CI)
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
Quadrature – Concepts (numerical integration) Don Allen.
Numerical Integration
Chapter 6 Inferences Based on a Single Sample: Estimation with Confidence Intervals Slides for Optional Sections Section 7.5 Finite Population Correction.
Part 6 - Chapter 21.
Numerical Analysis Lecture 42.
The Normal Distribution…
Trapezoidal Rule of Integration
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Simpson’s 1/3rd Rule of Integration
SKTN 2393 Numerical Methods for Nuclear Engineers
Simpson’s 1/3rd Rule of Integration
Numerical Integration
Objectives Approximate a definite integral using the Trapezoidal Rule.
Presentation transcript:

SE-280 Dr. Mark L. Hornick Numerical Integration

SE-280 Dr. Mark L. Hornick 2 In the PSP, definite integrals of the t-distribution are used to calculate the significance of a correlation and the prediction interval of an estimate. Requirement: Integrate an arbitrary f(x) from a to b The problem is that there is no (simple) closed-form solution for the integral of the t-distribution function.

SE-280 Dr. Mark L. Hornick 3 When is Numerical Integration needed? Analytic solution F(x) is not always practical

SE-280 Dr. Mark L. Hornick 4 Numerical Integration Approach Fit polynomial (or something else) to f(x) All at once In discrete segments Polynomial degree can vary Integrate resulting polynomial(s) Using well-known formulas

SE-280 Dr. Mark L. Hornick 5 Integration Example

SE-280 Dr. Mark L. Hornick 6 Zeroth-Order Fit h

SE-280 Dr. Mark L. Hornick 7 Zeroth-Order Fit hh f0f0 f2f2 f1f1

SE-280 Dr. Mark L. Hornick 8 Zeroth-Order Fit h Note: Sometimes “w” is used instead of “h” for step width.

SE-280 Dr. Mark L. Hornick 9 First-Order Fit (trapezoidal rule) hh f0f0 f2f2 f1f1

SE-280 Dr. Mark L. Hornick 10 First-Order Fit (contd.)

SE-280 Dr. Mark L. Hornick 11 Second-Order Fit h f0f0 f2f2 f1f1 h Parabolic curve

SE-280 Dr. Mark L. Hornick 12 Simpson’s Rule Simpson’s 1/3 rule: parabolic segments Coefficients First and last terms: 1 Odd terms: 4 Even terms: 2 n must be even

SE-280 Dr. Mark L. Hornick 13 In all these methods, we must choose an appropriate step size. A small step size generally gives a better fit, but takes longer to calculate and may increase round-off error. A large step size is usually less accurate, but faster to compute.

SE-280 Dr. Mark L. Hornick 14 Often the best choice is to iterate to the "right" step size. Choose # of segments (n 1 ) Calculate integral (save as p a ) Calc new segments (n j = 2*n j-1 ) |p b - p a | < e Calculate integral (save as p b ) Set p a = p b Done (answer = p b ) "e" is the desired result precision "h" is derived from "n", the number of segments Yes No

SE-280 Dr. Mark L. Hornick 15 Distributions are important statistical functions that we often need to integrate numerically, since no closed-form solution exists. Normal Distribution: The probability density function for a large sample size Its integral represents a cumulative probability over some range (more on that in a later).