The expected number of random values from the unit- interval [0,1] needed to obtain a sum exceeding 1.

Slides:



Advertisements
Similar presentations
The random walk problem (drunken sailor walk)
Advertisements

16 MULTIPLE INTEGRALS.
Confidential 2 Warm Up Find the Surface area of each rectangular Prism to the nearest tenth 5.5cm 2.3cm 10cm in. 6.2 in. 5.4 in cm
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
Rev.S08 MAC 1140 Module 9 System of Equations and Inequalities I.
12 INFINITE SEQUENCES AND SERIES. In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved. Sequences and Series.
1 Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors. Review Matrices.
Copyright © Cengage Learning. All rights reserved The Integral Test and Estimates of Sums.
INTEGRALS 5. INTEGRALS In Chapter 3, we used the tangent and velocity problems to introduce the derivative—the central idea in differential calculus.
Copyright © Cengage Learning. All rights reserved. 4 Continuous Random Variables and Probability Distributions.
Random Variables and Probability Distributions. Definition A random variable is a real-valued function whose domain is the sample space for some experiment.
INFINITE SEQUENCES AND SERIES In general, it is difficult to find the exact sum of a series.  We were able to accomplish this for geometric series and.
SECTION 8.3 THE INTEGRAL AND COMPARISON TESTS. P2P28.3 INFINITE SEQUENCES AND SERIES  In general, it is difficult to find the exact sum of a series.
Average Value of a Function. Let’s get started: You already know how to take the average of some finite set. The "mean" is the "average" you're used to,
CSE15 Discrete Mathematics 03/01/17
Trigonometric Identities
Copyright © Cengage Learning. All rights reserved.
Encountering Euler's Number
Copyright © Cengage Learning. All rights reserved.
Chapter 5: Probability: What are the Chances?
22C:19 Discrete Math Discrete Probability
CONTINUOUS RANDOM VARIABLES
Advanced Algorithms Analysis and Design
Lesson 47 - Area under Curves as Limits and Sums
A power series with center c is an infinite series where x is a variable. For example, is a power series with center c = 2.
In this section, we will learn about: Using integration to find out
Matrices and Vectors Review Objective
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Week 8 Chapter 14. Random Variables.
Chapter 5: Probability: What are the Chances?
TECHNIQUES OF INTEGRATION
Chapter 5: Probability: What are the Chances?
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction
Copyright © Cengage Learning. All rights reserved.
Euler’s Method If we have a formula for the derivative of a function and we know the value of the function at one point, Euler’s method lets us build an.
Warmup The chance of winning a prize from Herff- Jones is 1/22. How would you set up a simulation using the random number table to determine the probability.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
CONDITIONAL PROBABILITY
Copyright © Cengage Learning. All rights reserved.
Chapter 5: Probability: What are the Chances?
Chapter 5: Probability: What are the Chances?
Objective To provide background material in support of topics in Digital Image Processing that are based on matrices and/or vectors.
The Fundamental Theorem of Calculus
Copyright © Cengage Learning. All rights reserved.
TRIANGLE INEQUALITY THEOREM
Chapter 5: Probability: What are the Chances?
Arab Open University Faculty of Computer Studies Dr
Advanced Analysis of Algorithms
Chapter 5: Probability: What are the Chances?
Mathematical Induction
5-6 Inequalities in ONE Triangle
Chapter 5: Probability: What are the Chances?
Chapter 5: Probability: What are the Chances?
Chapter 6: Probability: What are the Chances?
Chapter 5: Probability: What are the Chances?
Chapter 5: Probability: What are the Chances?
Chapter 5: Probability: What are the Chances?
Chapter 5: Probability: What are the Chances?
Chapter 5: Probability: What are the Chances?
Copyright © Cengage Learning. All rights reserved.
Chapter 5: Probability: What are the Chances?
Unit 6: Probability: What are the Chances?
of Solids of Revolution
Chapter 6 Additional Integration Topics
Presentation transcript:

The expected number of random values from the unit- interval [0,1] needed to obtain a sum exceeding 1

Graph of simulation results

Theory behind the simulation Let's try to see why Euler's Number e (= ) turns up as the average number of random values from the unit-interval [0,1] that need to be added in order to get a sum that exceeds 1 As background, let's recall that we showed in our previous lesson that e is equal to this sum: e = ∑ k=0,1,2,... 1/k!

Summing the reciprocal-factorials

Volume of an n-box Suppose you want to measure the “volume” in an n- dimensional rectangular box having sides s 1, s 2,..., s n For n>3 we can't visualize this object, but we can represent it as a product of n closed intervals B n = [0,s 1 ] x [0,s 2 ] x... x [0,s n ]

Special cases: n = 1, 2, 3 For n = 1 the measure is s 1 (i.e., “length”) For n = 2 the measure is s 1 s 2 (i.e., “area”) For n = 3 the measure is s 1 s 2 s 3 (i.e., “volume”) Do these facts suggest a pattern?

Integral calculus when n=2 The measure of [0,s 1 ] x [0,s 2 ] can be computed from the measure of [0,s 1 ] using calculus: m( B 2 ) = ∫ 0≤x≤s2 m( B 1 ) dx = s 1 s 2

Integral calculus when n=3 Similarly, the measure of B 3 can be computed from the measure of B 2 using calculus m( B 3 ) = ∫ 0≤x≤s3 m( B 2 ) dx = s 1 s 2 s 3

Mathematical Induction Continuing in this way we can obtain m( B n+1 ) from m( B n ) using integral calculus m( B n+1 ) = ∫ 0≤x≤sn+1 m( B n ) dx = s 1 s 2 s 3... s n s n+1

An n-dimensional simplex Let's consider the subset S n of the box B n consisting of those n-tuples (x 1, x 2,..., x n ) satisfying the inequality (1/s 1 )x 1 + (1/s 2 )x (1/s n )x n ≤ 1

When n = 2 it's a triangle s1s1 s2s2 (1/s 1 )x 1 + (1/s 2 )x 2 ≤ 1 0 “area”: m( S 2 ) = s 1 s 2 / 2

When n = 3 it's a tetrahedron s1s1 s2s2 s3s3 0 (1/s 1 )x 1 + (1/s 2 )x 2 + (1/s 3 )x 3 ≤ 1 “volume”: m( S 3 ) = s 1 s 2 s 3 / 6

“volume” as a sum of “areas” s1s1 s2s2 s3s3 0 (1/s 1 )x 1 + (1/s 2 )x 2 + (1/s 3 )x 3 ≤ 1 “volume”: m( S 3 ) = ∫ 0≤t≤s3 ½ (t/s)(t/s) dt = ½ [ t 3 / 3 s 1 s 2 ] 0≤t≤s3 = s 1 s 2 s 3 / 3! dt t/s 1 t/s 2 t

When n > 3 it's a hyper-simplex We can't truly visualize objects in n-dimensional space when n is greater than 3 But we can our imagination and memory to get a sense of some simple 4-dimensional objects through a “time- lapse” thought experiment, and we can use analogies from lower dimensions

“volume” by analogy m( S n ) = ∫ 0≤t≤sn (s 1 s 2...s n-1 /(n-1)!) dt = (s 1 s 2... s n-1 / (n-1)! ) s n /n = s 1 s 2... s n / n!

measures in unit-hypercubes If p(k) be the probability that the sum of k randomly selected values from [0,1] have a sum which does NOT exceed 1, then p(k) = 1/k! This fact is based on the formula for the “volume” of a k-dimensional rectangular simplex whose apex-edges all have 1-unit lengths (k = 1, 2, 3,... )

Probability distribution The probability f(n) that the sum of n randomly chosen values from [0,1] does exceed 1, but that the sum of the initial n-1 of these values does NOT exceed 1, will be given by f(n) = ( 1 – p(n) ) - ( 1 – p(n-1) ) Thus f(n) is the probability that the experiment requires selecting exactly n values from [0,1]

Expected number of selections μ The mean μ for this probability distribution f will be given by the (infinite) sum μ = Σ k=2,3,4,... k f(k) We will be able to recognize this sum once we have simplified our formula for f(k) f(k) = (1 – p(k)) – (1 – p(k-1))

Simplification for (k > 1) f(k) = ( 1 – p(k) ) - (1 - p(k-1)) = p(k-1) – p(k) = 1/(k-1)! - 1/k! = (k - 1) / k! = 1 / k(k-2)! Therefore μ = Σ k=2,3,4,... k f(k) = Σ k=2,3,4,... 1/(k-2)! = 1/0! + 1/1! + 1/2! +1/3! +... = e

Simulation agrees with theory μ =