Mean Value Theorem for Integrals and Monte Carlo Integration

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

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

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:


(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: .


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



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.