Hogar » Estimación de Monte Carlo de Pi

Estimación de Monte Carlo de Pi

1950
Classroom demonstration of Monte Carlo method for estimating Pi in numerical analysis.

A classic illustration of the Monte Carlo method is estimating the value of [latex]\pi[/latex]. By inscribing a circle of radius [latex]r[/latex] within a square of side length [latex]2r[/latex], the ratio of their areas is [latex]\frac{\pi r^2}{(2r)^2} = \frac{\pi}{4}[/latex]. Randomly scattering points within the square and counting the fraction [latex]p[/latex] that fall inside the circle provides an estimate: [latex]\pi \approx 4p[/latex].

The procedure for estimating [látex]\pi[/latex] is straightforward and highlights the core Monte Carlo principle. Consider a unit square in the Cartesian plane with vertices at (0,0), (1,0), (1,1), and (0,1). A quarter circle of radius 1 is inscribed within this square, centered at the origin. The area of the square is 1, and the area of the quarter circle is [latex]\frac{\pi(1)^2}{4} = \frac{\pi}{4}[/latex]. The ratio of the quarter circle’s area to the square’s area is therefore [latex]\frac{\pi}{4}[/latex].

To estimate this ratio, we generate a large number, [latex]N[/latex], of random points [latex](x, y)[/latex] where both [latex]x[/latex] and [latex]y[/latex] are uniformly distributed between 0 and 1. Each point has an equal chance of landing anywhere within the square. A point [latex](x, y)[/latex] falls inside the quarter circle if its distance from the origin is less than or equal to 1, which is determined by the condition [latex]x^2 + y^2 \le 1[/latex]. We count the number of points, [latex]M[/latex], that satisfy this condition. The ratio [latex]\frac{M}{N}[/latex] is an estimate of the ratio of the areas, [latex]\frac{\pi}{4}[/latex]. Therefore, we can approximate [latex]\pi[/latex] as [latex]\pi \approx 4 \frac{M}{N}[/latex]. According to the law of large numbers, as [latex]N[/latex] approaches infinity, this approximation converges to the true value of [latex]\pi[/latex]. However, the convergence is slow, with the error decreasing proportionally to [latex]\frac{1}{\sqrt{N}}[/latex], making it a very inefficient método for calculating [latex]\pi[/latex] to high precision compared to deterministic algorithms.

UNESCO Nomenclature: 1202
– Computer sciences

Tipo

Software/Algoritmo

Disrupción

Incremental

Utilización

Uso generalizado

Precursores

  • concept of pi as the ratio of a circle’s circumference to its diameter
  • cartesian coordinate system
  • Teorema de Pitágoras
  • distribución de probabilidad uniforme
  • desarrollo de generadores de números pseudoaleatorios

Aplicaciones

  • Herramienta pedagógica para la enseñanza de probabilidad y simulación.
  • punto de referencia simple para generadores de números aleatorios
  • Problema introductorio en cursos de ciencias computacionales

Patentes:

NA

Posibles ideas innovadoras

Membresía obligatoria de Professionals (100% free)

Debes ser miembro de Professionals (100% free) para acceder a este contenido.

Únete ahora

¿Ya eres miembro? Accede aquí
Related to: pi, estimation, Monte Carlo, simulation, random numbers, area, probability, numerical integration, circle, square.

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

DISPONIBLE PARA NUEVOS RETOS
Ingeniero Mecánico, Gerente de Proyectos, Ingeniería de Procesos o I+D
Desarrollo eficaz de productos

Disponible para un nuevo desafío a corto plazo.
Contáctame en LinkedIn
Integración de electrónica de metal y plástico, diseño a coste, GMP, ergonomía, dispositivos y consumibles de volumen medio a alto, fabricación eficiente, industrias reguladas, CE y FDA, CAD, Solidworks, cinturón negro Lean Sigma, ISO 13485 médico

Estamos buscando un nuevo patrocinador

 

¿Su empresa o institución se dedica a la técnica, la ciencia o la investigación?
> Envíanos un mensaje <

Recibe todos los artículos nuevos
Gratuito, sin spam, correo electrónico no distribuido ni revendido.

o puedes obtener tu membresía completa -gratis- para acceder a todo el contenido restringido >aquí<

Contexto histórico

(si se desconoce la fecha o no es relevante, por ejemplo "mecánica de fluidos", se ofrece una estimación redondeada de su notable aparición)

Invención, innovación y principios técnicos relacionados

Scroll al inicio

También te puede interesar