Calculus Review Texas A&M University Dept. of Statistics.

52
Calculus Review Texas A&M University Dept. of Statistics
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    216
  • download

    0

Transcript of Calculus Review Texas A&M University Dept. of Statistics.

Page 1: Calculus Review Texas A&M University Dept. of Statistics.

Calculus Review

Texas A&M University

Dept. of Statistics

Page 2: Calculus Review Texas A&M University Dept. of Statistics.

In This Review

• Differentiation– Differentiation formulas– Examples– Trig. functions

• Integration– Indefinite integrals– Definite integrals– Trig. Functions

Page 3: Calculus Review Texas A&M University Dept. of Statistics.

Also In This Review

• Calculus in statistics– Continuous distributions– Expected value and mean– Variance– Median

Page 4: Calculus Review Texas A&M University Dept. of Statistics.

About Notation

As is common in statistics, we will use log to mean loge instead of log10 as is commonly used in mathematics.

Page 5: Calculus Review Texas A&M University Dept. of Statistics.

Differentiation

The derivative provides us information about the rate of change of a function.

The derivative of a function is also a function.

Example: The derivative of the rate function is the

acceleration function.

Page 6: Calculus Review Texas A&M University Dept. of Statistics.

Ways to Write the Derivative

Given the function f(x), we can write its derivative in the following ways:

- f`(x)

- f(x)

The derivative of x is commonly written dx.

dx

d

Page 7: Calculus Review Texas A&M University Dept. of Statistics.

Differentiation Formulas

The following are common differentiation formulas:

- The derivative of a constant is 0.

- The derivative of a sum is the sum of the derivatives.

0cdu

d

)(')('))()(( ugufugufdu

d

Page 8: Calculus Review Texas A&M University Dept. of Statistics.

Examples

- The derivative of a constant is 0.

- The derivative of a sum is the sum of the derivatives.

7du

d

)4(tdt

d

Page 9: Calculus Review Texas A&M University Dept. of Statistics.

More Formulas

- The derivative of u to a constant power:

- The derivative of e:

- The derivative of log:

dueedu

d uu

duu

udu

d 1)log(

duunudu

d nn 1*

Page 10: Calculus Review Texas A&M University Dept. of Statistics.

More Examples

- The derivative of u to a constant power:

- The derivative of e:

- The derivative of log:

yedy

d 4

)log(3 xdx

d

33xdx

d

Page 11: Calculus Review Texas A&M University Dept. of Statistics.

Product and Quotient

The product rule and quotient rules are commonly used in differentiation.

- Product rule:

- Quotient rule:

)(')()(')())(*)(( ufugugufugufdu

d

2))((

)(')()(')(

)(

)(

ug

ugufufug

ug

uf

du

d

Page 12: Calculus Review Texas A&M University Dept. of Statistics.

Product and Quotient Examples

- Product rule:

- Quotient rule:

))log(3( zzdz

d

ue

u

du

d3

7

Page 13: Calculus Review Texas A&M University Dept. of Statistics.

Chain Rule

The chain rule allows you to combine any of the differentiation rules we have already covered.

- First, do the derivative of the outside and then do the derivative of the inside.

duugugfugfdu

d*)('*))(('))((

Page 14: Calculus Review Texas A&M University Dept. of Statistics.

Chain Rule Examples)log( ve

dv

d

)log( 2 vevdv

d

vvee

dv

d

Page 15: Calculus Review Texas A&M University Dept. of Statistics.

Try These

11)( zzf

yyyg 24)( 3

xexh 3)(

x

xxp

)log()(

2

3)()( zezq z

yyeys 24)(

Page 16: Calculus Review Texas A&M University Dept. of Statistics.

Solutions

1)(' zf

212)(' 2 yyg

xexh 33)('

2

2 )log(2)('

x

xxp

)1()(3)(' 2 zz ezezq

yy eyeys 22 48)('

Page 17: Calculus Review Texas A&M University Dept. of Statistics.

Derivatives of Trig. Functions

duuudu

d)cos()sin( duuu

du

d)(csc)cot( 2

duuudu

d)sin()cos( duuuu

du

d)tan()sec()sec(

duuudu

d)(sec)tan( 2 duuuu

du

d)cot()csc()csc(

Page 18: Calculus Review Texas A&M University Dept. of Statistics.

More About Trig. Functions

The chain rule also applies to the trig. functions.

- First, do the derivative of the trig. function and then do the derivative of the inside.

Example:

)cos(22*)cos()sin( 222 xxxxxdx

d

Page 19: Calculus Review Texas A&M University Dept. of Statistics.

Integration

The integral provides us with information about the area under a function.

The indefinite integral of a function is a function, but the definite integral may be a number.

Example: The integral of the rate function is the

distance function.Integrating over a specified time tells us how far we have gone.

Page 20: Calculus Review Texas A&M University Dept. of Statistics.

Ways to Write the Integral

The two forms of integration, indefinite and definite, can be distinguished by the presence of limits on the integral.

- indefinite

- definite

b

adxxf )(

dxxf )(

Page 21: Calculus Review Texas A&M University Dept. of Statistics.

Integration Formulas

The following are common integration formulas. *Note these are the ‘opposite’ of the derivative formulas, hence the integral is also called the antiderivative.

When doing the indefinite integral, you must add a constant to your function.

Page 22: Calculus Review Texas A&M University Dept. of Statistics.

Integration Formulas

- The integral of a sum is the sum of the integrals.

- The integral of u-1:

du

uduudu

uu nn 11

cuduu

)log(1

Page 23: Calculus Review Texas A&M University Dept. of Statistics.

Examples

- The integral of a sum is the sum of the integrals.

- The integral of u-1:

dxx 4

dtt2

1

Page 24: Calculus Review Texas A&M University Dept. of Statistics.

More Formulas

- The integral of u to a constant power:

for

- The integral of e:

- The integral of the derivative:

cun

duu nn

1

1

1

cedue uu

1n

cufduuf )()('

Page 25: Calculus Review Texas A&M University Dept. of Statistics.

More Examples

- The integral of u to a constant power:

- The integral of e:

dyy3

dve v2

Page 26: Calculus Review Texas A&M University Dept. of Statistics.

Definite Integrals

We will use the formulas already given for the indefinite integral, but we will take one additional step.

Evaluate the integral at the upper bound and subtract the value of the integral at the lower bound.

b

aafbfcafcbfdxxf )()())(()()('

Page 27: Calculus Review Texas A&M University Dept. of Statistics.

Definite Integral Examples

1

02xdx

1

1dtet

Page 28: Calculus Review Texas A&M University Dept. of Statistics.

Try These

dyyy )36( 5

dxex

x21

4

0

2dxx

Page 29: Calculus Review Texas A&M University Dept. of Statistics.

Solutions

cyydyyy 265

2

3)36(

cexdxex

xx

22

2

1)log(

1

3

644

0

2 dxx

Page 30: Calculus Review Texas A&M University Dept. of Statistics.

Integrals of Trig. Functions

cuduu )cos()sin( cuduu )cot()(csc2

cuduu )sin()cos( cuduuu )sec()tan()sec(

cuduu )tan()(sec2 cuduuu )csc()cot()csc(

Page 31: Calculus Review Texas A&M University Dept. of Statistics.

Definite Trig. Integral

dxx2/

0)cos(

2/0)sin( x

)0sin(2/sin

01

1

Page 32: Calculus Review Texas A&M University Dept. of Statistics.

Calculus in Statistics

There are many calculus applications in statistics including: - continuous density functions - finding the expected value (mean) of a distribution - finding the variance (standard deviation) of a distribution - finding the median of a distribution

Page 33: Calculus Review Texas A&M University Dept. of Statistics.

Probability Function

The probability function of a variable tells us the probability of a certain event.

Example:The probability of getting a jack whendrawing from a normal deck of cards is4/52 = 1/13.

Page 34: Calculus Review Texas A&M University Dept. of Statistics.

Continuous Density Function

The probability density function (pdf) of a variable tells us the probability of a certain event when a continuum of events is possible.

Example:The probability of getting the exact valueof π from the set of all real numbers.

The pdf of x is usually noted by the lowercase f, i.e. f(x).

Page 35: Calculus Review Texas A&M University Dept. of Statistics.

Cumulative Density Function

The cumulative density function (cdf) of a variable tells us the probability for all events in a range.

The cdf of x is usually noted by the capital F, i.e. F(x).

Example:For a standard normal distribution,F(-0.22)=P(z≤-0.22)=0.4129.

Page 36: Calculus Review Texas A&M University Dept. of Statistics.

Notes About the pdf

The pdf of a variable is said to have a value of 0 for any specific event.

Example:From our example earlier, we can neverget the exact value of π.

For all x, f(x)≥0.

The integral of the pdf over all events is 1.

Page 37: Calculus Review Texas A&M University Dept. of Statistics.

Notes About the cdf

The cdf has values between 0 and 1. The limit as x approaches -∞ is 0 and the limit as x approaches ∞ is 1.

The cdf is an increasing function. The cdf can be ‘flat’ for a range of values, so some people prefer to think of it as non-decreasing.

Page 38: Calculus Review Texas A&M University Dept. of Statistics.

Calculus and pdf & cdf

The cdf measures the area under the pdf.

When given the pdf, we can do an indefinite integral to find the cdf. If given the cdf, we can differentiate to find the pdf.

We will also use calculus to find information about the pdf such as the mean, median, and variance.

Page 39: Calculus Review Texas A&M University Dept. of Statistics.

Try This

Show that the pdf f(x)=1/6 integrates to 1 when x=(0,6). Find F(x).

Page 40: Calculus Review Texas A&M University Dept. of Statistics.

Answer

Show that the pdf f(x)=1/6 integrates to 1 when x=(0,6). Find F(x).

xxF

xdxdxxf

6

1)(

10*6

16*

6

1

6

1

6

1)(

6

0

6

0

6

0

Page 41: Calculus Review Texas A&M University Dept. of Statistics.

Try This One Too

Given the cdf F(t)=1-e-t when t=(0,∞), find the pdf and show that it integrates to 1.

Page 42: Calculus Review Texas A&M University Dept. of Statistics.

Another Answer

Given the cdf F(t)=1-e-t when t=(0,∞), find the pdf and show that it integrates to 1.

1)1(0)()(

)(

0

000

eeedtedttf

etf

tt

t

Page 43: Calculus Review Texas A&M University Dept. of Statistics.

Expected Value

The expected value is the mean of a distribution.

Example:The expected value for the standard

normal is 0.

The expected value is commonly written as E(X).

Page 44: Calculus Review Texas A&M University Dept. of Statistics.

To find the expected value, we use the following formula.

The expected value of f(x)=1/6 where x=(0,6) is

Expected Value Formula

dxxfx )(*E(X)

30312

1

6

1*)(*E(X)

6

0

26

0

6

0 xdxxdxxfx

Page 45: Calculus Review Texas A&M University Dept. of Statistics.

Median

The median of a distribution is the number in the middle. 50% of the area under the distribution is above the value and 50% is below it.

The median, like the expected value (mean), is a measure of the center of a distribution.

The median of the distribution function f(x) is commonly written .X~

Page 46: Calculus Review Texas A&M University Dept. of Statistics.

To find the median, we use the following formula. In this formula, M is the median.

To find the median of f(x)=1/6 where x=(0,6), we solve the equation above for M.

So M= =3.

Median Formula

Mdxxf 5.0)(

66

1

6

1)(5.0

000

MxdxdxxfM

MM

X~

Page 47: Calculus Review Texas A&M University Dept. of Statistics.

The variance of a distribution function tells us about how spread out the possible events are. A large variance means the events are more spread out.

The standard deviation is the square root of the variance.

The variance is often written as V(X) or Var(X).

Variance

Page 48: Calculus Review Texas A&M University Dept. of Statistics.

To find the variance, we use the following formula.

E(X), the expected value, is the same as before and E(X2) is computed similarly.

Variance Formula

22 E(X))()E(XVar(X)

dxxfx )(*)E(X 22

Page 49: Calculus Review Texas A&M University Dept. of Statistics.

To find the variance of f(x)=1/6 where x=(0,6), first find E(X2).

Now use the variance formula.

Variance Example

1201218

1

6

1*)(*)E(X

6

0

36

0

26

0

22 xdxxdxxfx

3)3(12E(X))()E(XVar(X) 222

Page 50: Calculus Review Texas A&M University Dept. of Statistics.

Try This

Find the expected value, median, and variance for the distribution f(y)=2y for y in (0,1).

Page 51: Calculus Review Texas A&M University Dept. of Statistics.

Answer

Find the expected value, median, and variance for the distribution f(y)=2y for y in (0,1).

1/18Var(X)

0.5X~

2/3E(X)

Page 52: Calculus Review Texas A&M University Dept. of Statistics.