24.10.2014 Views

My PhD thesis - Condensed Matter Theory - Imperial College London

My PhD thesis - Condensed Matter Theory - Imperial College London

My PhD thesis - Condensed Matter Theory - Imperial College London

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

APPENDIX D. RECONSTRUCTING A PROBABILITY DENSITY FUNCTION<br />

fact that x i and x j are independent when i ≠ j:<br />

〈 ( 〉 2<br />

g(x) − f(x))<br />

= N − 1 〈<br />

w(xi , x) 〉 2<br />

N<br />

x i<br />

+ 1 〈<br />

w(xi , x) 2〉 N<br />

x i<br />

{x i }<br />

− 2f(x) 〈 w(x i , x) 〉 x i<br />

+ f(x) 2<br />

) 2<br />

( 〈w(xi<br />

= , x) 〉 x i<br />

− f(x)<br />

+ 1 ( 〈w(xi<br />

, x) 2〉 N<br />

x i<br />

− 〈 w(x i , x) 〉 )<br />

(D.6)<br />

2<br />

x i<br />

(∫<br />

) 2<br />

= w(y, x)f(y) dy − f(x)<br />

+ 1 ∫ ( ∫<br />

) 2f(y)<br />

w(y, x) − w(z, x)f(z) dz dy.<br />

N<br />

When w is made too narrow and delta-function-like, the second term (the variance<br />

of w for a particular value of x) becomes large. The factor of 1/N means that with<br />

more sample points, w may be made narrower; the benefit of this is that more of<br />

the fine detail in f is then recovered.<br />

The optimum w is therefore a compromise between a broad, slowly-decaying<br />

function which ensures that g is smooth but misses some of the features of f, and<br />

a narrow, quickly-decaying function which captures all the details but makes g very<br />

noisy.<br />

Using an inhomogeneous weighting function, it is possible to incorporate various<br />

boundary conditions. For example, if it is known that f(x) = 0 for x < a, the weight<br />

may be adjusted so that w(y, x < a) = 0, while still satisfying the normalisation<br />

condition expressed in equation (D.2).<br />

It is also possible to incorporate symmetry into this formalism: if f is known to<br />

be symmetric about x = a then letting w(y, x) = w(y, a − x) ensures that g has the<br />

same symmetry.<br />

As an example, consider the homogeneous Gaussian weight function<br />

w(y, x) =<br />

1<br />

√<br />

2πσ<br />

2 e−(y−x)2 /2σ 2 ,<br />

(D.7)<br />

which satisfies the normalisation condition (D.2). The expected value of the recon-<br />

202

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!