




























































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!





























































































Monte Carlo Integration Which is based on simulation that we have thoroughly seen inthe first part of the courseNevertheless, we will also make a short tour in numericalmethods in order to have an understanding of the mainalternative and why at the end MC integration is a goodalternative (and finally very popular in Statistics).
𝑓 𝑥 𝑑𝑥 (^) For only a few functions,
f^ , can the value of the integral be derived analytically. For the rest, numerical approximations of the integral can be usedExamples of integration in statistics: Likelihood based inference: when the likelihood itself is afunction of one or more integralsExamples: Factor Analysis and Random effects models Bayesian inference: is solely based on integrals inhabited inposterior moments (e.g. mean or variance) which typically cannotbe evaluated analytically.
x
మమ^ ௫ ௫ିସ^ /ଷ 𝑓 𝑥 ൌ 0.7𝑒ି 0.3𝑒ି^ I. Ntzoufras, AUEB 2021^ 7 / 168
x
ି න 𝑓 𝑥 𝑑𝑥ଶ I. Ntzoufras, AUEB 2021^ 8 / 168
x
Intervals of length 0.5K=16 intervals I. Ntzoufras, AUEB 2021^ 10 / 168
x
Intervals of length 0.2K=40 intervals I. Ntzoufras, AUEB 2021^ 11 / 168
x
Intervals of length 0.1K=80 intervalsNo borders! I. Ntzoufras, AUEB 2021^ 13 / 168
[a, b]^ into^ K^ sub-intervals,
[x, x]^ for kk+ k =0, 2, ..., K-1^ with
x= a^ and^ x= b.^0 K^ Calculate the mid-point
ௗ^ of each interval
[x, x] bykk+ ௗ^ =^ (x+x)/2 k+1^ k Calculate the integral as The larger is^ K^ (the number of intervals) the more accurate isthe calculation (but with increased computational time)
‐k K=1‐7 step= Integral
μ= E(X)^ =^
, we can obtain an i.i.d. random sample^ X
,... , X from^ f^ and then approximate n^1
μ^ via
the sample average:
^ ୀଵ These approaches are useful in many contexts, but moresophisticated approaches are often necessary.
m=2 , ∗ ∗ ௗ∗^ 𝑥ൌ x , 𝑥ൌ 𝑥,^ 𝑥= x k ଵଶ k+1 and A=0, A=(x–x) and A=0.k0k1kk-1k Hence
௫ೖశభ௫ೖ