Mean Value Theorem for Integrals and Monte Carlo Integration

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

The mean value theorem for integrals states that if is continuous over , then there exists a real number with such that . Writing this as shows that the area under the curve is the base times the "average height" . To estimate this integral by the Monte Carlo method, use the following steps:

[more]

(1) Pick uniformly distributed numbers in the interval [,].

(2) Evaluate the function at each point and calculate the average function value: .

(3) Compute the approximate value of the integral: .

[less]

Contributed by: Enis Siniksaran (December 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send