Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
MMC hit or miss 1<br />
MMC hit or miss 1<br />
Sia I un integrale da valutare:<br />
I<br />
b<br />
= ∫<br />
f( x)<br />
dx<br />
0 ≤ f ( x)<br />
≤ y0<br />
e<br />
a<br />
≤<br />
x<br />
≤<br />
b<br />
a<br />
L’integrale è l’area sottesa dalla curva …<br />
N<br />
∑<br />
I = f( x ) Δx<br />
i=<br />
1<br />
i<br />
i<br />
Ma è possibile anche un metodo alternativo. Sia il rettangolo definito come segue<br />
Il generico punto (X, Y) appartenente<br />
ad R con densità di probabilità<br />
che possa cadere<br />
nell’insieme<br />
ha probabilità<br />
R= x y ∈ a≤ x≤b ≤ y≤<br />
y<br />
2<br />
{( , ) : , 0<br />
0}<br />
( , )<br />
f x y<br />
S = x y ∈ a≤ x≤b ≤ y≤<br />
f x<br />
XY<br />
2<br />
{( , ) : , 0 ( )}<br />
area S 1<br />
p= =<br />
area R ( b−<br />
a)<br />
y<br />
L. Parisi - A. <strong>Stabile</strong> <strong>Metodo</strong> <strong>Monte</strong> <strong>Carlo</strong> 7<br />
0<br />
⎧ 1<br />
⎪<br />
se ,<br />
= ⎨( b−<br />
a)<br />
y0<br />
⎪⎩ 0 altrove<br />
b<br />
∫<br />
a<br />
f( xdx )<br />
( xy)<br />
∈ R