+ All Categories
Home > Documents > 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random...

2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random...

Date post: 31-Oct-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
44
2DI90 Probability & Statistics 2DI90 – Integral Calculus Review
Transcript
Page 1: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

2DI90 Probability & Statistics

2DI90 – Integral Calculus Review

Page 2: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

2

Continuous Random Variables - Motivation!Discrete random variables are not the end of the story… Let X the be a random variable representing the temperature in a museum room (in centigrade degrees)

It seems the probability of X taking any specific value is always be equal to zero, but the probability of X being in an interval is often strictly positive..

Next we will try to make some sense out of this…

Page 3: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

3

Continuous Random Variables - Motivation!It seems the probability that X is in some small interval should be small (but not zero)…

The smaller the interval, the smaller the probability, so perhaps we can write it as

So if we want to compute the probability that X is in an arbitrary interval we can perhaps break it into many small pieces…

Page 4: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

4

Probabilities as Areas!

So computing these probabilities seems to be essentially the same as computing areas under functions !!!

Page 5: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

5

Agenda for the Slides!In other to progress further and develop useful tools to deal with continuous random variables we need to formulate and solve the following problem: Compute the area A under the function:

This is known as integral calculus and it is generally taught in calculus courses. Perhaps surprisingly it has a very close relation to the differentiation…

Page 6: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

6

The Area under a Graph (§ 5.1-5.3 A)!Perhaps surprisingly defining the concept of area (or volume) is not the easiest of tasks. However, we can easily view areas as limits of sums…

Let’s get an approximate value of the area…

Page 7: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

7

Riemann Sums!

This gives an upper bound on the area…

Page 8: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

8

Riemann Sums!

This gives an lower bound on the area…

Page 9: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

9

Riemann Sums!Definition: Upper and Lower Riemann Sums

Page 10: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

10

Riemann Sums!

Intuitively, we expect that if the partition is fine enough these two areas should be rather close…

Page 11: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

11

The rectangles counts as positive areas, and the rectangles count as negative areas.

Function with Negative Values!To keep things general we don’t want to consider only non-negative functions. Therefore it is convenient to see what the previous definition tells us in that case:

Page 12: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

12

The rectangles counts as positive areas, and the rectangles count as negative areas.

Function with Negative Values!Similarly

Page 13: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

13

Function with Negative Values!

From now on, whenever we say area under the graph of a function we count regions where the function is negative as negative areas.

So, we are really approximating the following “area”:

Page 14: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

14

An Illustrative Example!

Page 15: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

15

An Illustrative Example!

This seems to make perfect sense, as the “area” under the function is 2-1/2=3/2.

Page 16: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

16

The Definite Integral (§ 5.3 A)!

Definition: The Definite Integral (1st definition)

Page 17: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

17

Important Remarks!

Note: We can also define more general Riemann sums, that also result in an equivalent definition of integral…

Page 18: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

18

General Riemann Sums!Definition: General Riemann Sums

We can use this to get a definition of the integral that is a bit more general…

Page 19: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

19

General Definition of the Riemann Integral!Definition: The Definite Integral (2nd definition)

The above definition is more general, as we don’t require the function f to be continuous.

Page 20: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

20

Important Theorem!Theorem:

This means the integral is well defined for many, many functions. The proof of this result is a bit subtle, and won’t be given in class…

So now we have a concrete definition of integral, which is intimately related to the area under a function. However, we still don’t know how to calculate these in general…

Page 21: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

21

Properties of the Definite Integral (§ 5.4 A)!Theorem:

Page 22: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

22

Properties of the Definite Integral!Theorem (continued)

Page 23: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

23

Integrals and Derivatives (§ 5.5 A)!So far we have a definition of integral, and several properties that this definition satisfies, but don’t have a general way of computing integrals. This is what we are going to address next, in one of the most fundamental results in the history of mathematics… Before stating this important result let’s get an intuitive idea why it is true.

Page 24: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

24

Integrals and Derivatives!

Page 25: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

25

Integrals and Derivatives!

Page 26: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

26

The Fundamental Theorem of Calculus!Theorem:

Page 27: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

27

Remarks and Notation! We have seen that integrals are essentially just the reversal the differentiation operator! •  Both parts of the theorem are important

Unfortunately computing anti-derivatives is in general harder than computing derivatives… There are however tricks of the trade to do so in many cases. Next we’ll learn about these…

Page 28: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

28

Examples!

Page 29: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

29

Computing Integrals!

Often reverse engineering a derivative is difficult and cumbersome. It requires practice!!! •  You must compute many integrals to learn the “tricks of the trade”, there is not another way to learn this! •  One can build a table of useful antiderivatives, that serve as building blocks for more complicated ones…

Page 30: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

30

Some Elementary Integrals!

Page 31: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

31

More Examples (show the following)!

Sometimes evaluating an integral by inspection can be close to impossible. This is when we need to use some techniques to rewrite the integral in a more convenient form. We will study essentially two techniques: •  The method of substitution •  Integration by parts

Page 32: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

32

The Method of Substitution (§ 5.6 A)!This is essentially the integral version of the chain rule for derivatives.

Written in this way the above might seem difficult to use…

Page 33: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

33

The Method of Substitution - Examples!

Often the substitution is not obvious as in the examples above…

Page 34: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

34

The Method of Substitution - Examples!

Page 35: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

35

Substitution in a Definite Integral!Theorem:

Page 36: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

36

Integration by Parts (§ 6.1 A)!Sometimes the method of substitution is not enough to compute the integral. For example

However, there is a simple “trick” that can be of help here… Recall the product rule for differentiation:

Page 37: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

37

Integration by Parts!We can rearrange the terms to get

•  The main idea is that you solve part of the original integration problem, and are left with a (hopefully) simpler integral

•  Again, only through experience you’ll learn which decompositions are better…

•  The two factors in the integral are not necessarily obvious…

Integration by Parts:

Page 38: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

38

Integration by Parts - Examples!

Sometimes you need to use all the tricks in your bag: integration by parts, substitution, and your experience…

Page 39: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

39

Rules of Thumb!

•  If you have a polynomial multiplied by a function you can integrate easily take the polynomial as g.

•  If there is a function in the integrand that is easy to differentiate, but hard to integrate, try to use it as g.

Page 40: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

40

Interesting Example!

This approach is useful in many situations !!!

Page 41: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

41

Evaluating a Definite Integral!Don’t forget the evaluation symbol…

Example:

Page 42: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

42

Improper Integrals (§ 6.5 A)!Up to now we considered only the case where the integrand is a continuous function on a closed interval [a,b]. What happens when one (or both) limits of integration are infinity? Or |f(x)| tends to infinity as x approaches a or b? Things get a bit more delicate in this case… For this course we’ll need only to deal with the first case (known as an improper integral of type I).

Page 43: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

43

Improper Integrals!Definition: Improper Integrals of Type I

Page 44: 2DI90 Probability & Statistics€¦ · 2DI90 – Integral Calculus Review . 2 Continuous Random Variables - Motivation! Discrete random variables are not the end of the story… Let

44

Other Interesting Examples!


Recommended