Skip to content

Commit

Permalink
fix nb distr
Browse files Browse the repository at this point in the history
  • Loading branch information
fzimmermann89 committed Nov 1, 2020
1 parent dd336b9 commit 66ea7a9
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 4 deletions.
52 changes: 52 additions & 0 deletions Tex/ffz.bib
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,58 @@ @Book{forbes2010
lccn = {2009052131},
}

@Book{holmes2019,
author = {Holmes, S. and Huber, W.},
publisher = {Cambridge University Press},
title = {Modern Statistics for Modern Biology},
year = {2019},
isbn = {9781108705295},
}

@Article{yun2019,
author = {Yun, Kyuseok and Kim, Sungwon and Kim, Dongjin and Chung, Myungwoo and Jo, Wonhyuk and Hwang, Hyerim and Nam, Daewoong and Kim, Sangsoo and Kim, Jangwoo and Park, Sang-Youn and Kim, Kyung Sook and Song, Changyong and Lee, Sooheyong and Kim, Hyunjung},
journal = {Scientific reports},
title = {Coherence and pulse duration characterization of the PAL-XFEL in the hard X-ray regime.},
year = {2019},
issn = {2045-2322},
month = mar,
pages = {3300},
volume = {9},
abstract = {We characterize the spatial and temporal coherence properties of hard X-ray pulses from the Pohang Accelerator Laboratory X-ray Free Electron Laser (PAL-XFEL, Pohang, Korea). The measurement of the single-shot speckle contrast, together with the introduction of corrections considering experimental conditions, allows obtaining an intrinsic degree of transverse coherence of 0.85 ± 0.06. In the Self-Amplified Spontaneous Emission regime, the analysis of the intensity distribution of X-ray pulses also provides an estimate for the number of longitudinal modes. For monochromatic and pink (i.e. natural bandwidth provided by the first harmonic of the undulator) beams, we observe that the number of temporal modes is 6.0 ± 0.4 and 90.0 ± 7.2, respectively. Assuming a coherence time of 2.06 fs and 0.14 fs for the monochromatic and pink beam respectively, we estimate an average X-ray pulse duration of 12.6 ± 1.0 fs.},
country = {England},
doi = {10.1038/s41598-019-39765-3},
issn-linking = {2045-2322},
issue = {1},
nlm-id = {101563288},
owner = {NLM},
pii = {10.1038/s41598-019-39765-3},
pmc = {PMC6397240},
pmid = {30824784},
pubmodel = {Electronic},
pubstate = {epublish},
revised = {2020-03-09},
}

@Article{lehmkuhler2014,
author = {Lehmk{\"u}hler, Felix and Gutt, Christian and Fischer, Birgit and Schroer, Martin A. and Sikorski, Marcin and Song, Sanghoon and Roseker, Wojciech and Glownia, James and Chollet, Mathieu and Nelson, Silke and Tono, Kensuke and Katayama, Tetsuo and Yabashi, Makina and Ishikawa, Tetsuya and Robert, Aymeric and Gr{\"u}bel, Gerhard},
journal = {Scientific Reports},
title = {Single Shot Coherence Properties of the Free-Electron Laser SACLA in the Hard X-ray Regime},
year = {2014},
number = {1},
pages = {5234},
volume = {4},
abstract = {We measured the coherence properties of the free-electron laser SACLA on a single shot basis at an X-ray energy of 8 keV. By analysing small-angle X-ray scattering speckle patterns from colloidal dispersions we found a degree of transverse coherence of βt = 0.79 $\pm$0.09. Taking detector properties into account, we developed a simulation model in oder to determine the degree of coherence from intensity histograms. Finally we calculated a coherence time of τc = 0.1 fs and a pulse duration of 5.2 fs which corresponds with previous predictions.},
da = {2014/06/10},
date-added = {2020-10-31 12:44:46 +0000},
date-modified = {2020-10-31 12:44:46 +0000},
doi = {10.1038/srep05234},
id = {Lehmk{\"u}hler2014},
ty = {JOUR},
}

@Article{,
}

@Comment{jabref-meta: databaseType:bibtex;}

@Comment{jabref-meta: grouping:
Expand Down
5 changes: 3 additions & 2 deletions Tex/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@
\DeclareMathOperator{\difn}{\mathrm{d}^n \!}
\DeclareMathOperator{\diff}{\mathrm{d}\!}

\DeclareMathOperator\erf{erf}
\DeclareMathOperator\erfc{erfc}
\DeclareMathOperator{\erf}{erf}
\DeclareMathOperator{\erfc}{erfc}
\DeclareMathOperator{\Var}{Var}
%%pygments%
\usepackage{fancyvrb}
\usepackage{xcolor}
Expand Down
26 changes: 24 additions & 2 deletions Tex/theory.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,32 @@ \section{Statistics}
p(I)=\frac{ e^{-I/\overline{I}}}{\overline{I}}
\end{equation}
with mean $\overline{I}$ and standard deviation $\sigma=\overline{I}$ \cite{goodman2000,goodman1976}.
A sum of $M$ uncorrelated random variables following identical distributions given by \fref{eq:expdistr} follows a Gamma distribution \cite{forbes2010,trost2020},
A sum of $M$ uncorrelated random variables following identical distributions given by \fref{eq:expdistr} follows a Gamma distribution,
\begin{equation}
p(I)=\frac{I^{M-1} e^{I/\overline{I}}} {\overline{I}^M(M-1)!}
\label{eq:gammadistr}
p(I)=\frac{I^{M-1} e^{-I/\overline{I}}} {\overline{I}^M \Gamma(M)},
\end{equation}
for a positive integer $M$ this simplifies with $\Gamma(M)=(M-1)!$ to an Erlang distribution \cite{forbes2010,trost2020}.
If $I$ is distributed as \ref{eq:gammadistr} and Poisson sampled as discrete $k$, it follows an negative binomial distribution
\cite{trost2020,mandel1959,holmes2019}
\begin{equation}
p(k)=
\frac{\Gamma(k+M)}{\Gamma(M)\Gamma(k+1) }
\left( 1+\frac{1}{\overline{I}}
\right)^{-k}
\left( 1+\overline{I}
\right)^{-M}
\end{equation}
with mean $\mu=M\overline{I}$ and variance $\mu+\frac{\mu^2}{M}$ (which differs from the variance of a poisson distribution $\mu$).
This probability distribution can be compared to an experimental measured intensity distribution and the number of modes present in the measurement can be estimated by a regression \cite{lehmkuhler2014,yun2019}.
Furthermore, following the arguments of Trost et. al, the variance of a product of the photon numbers following this distribution has a variance
\begin{equation}
\Var_{p\cdot p}= \Var_p^2 +2 \mu^2\Var_p = \mu^4 \frac{2 M + 1}{M^2 + 2}+ \mu^3 \frac{M+1}{M} + \mu^2
\end{equation}




\paragraph{Stationarity and Ergodicity}
A process $f(t)$ is wide-sense stationary, if the expectation value $E[f(t)]$ is independent of the time $t$ and $E[f(t_1)f(t_2)]$ depends only on the time difference $\tau=f_1-f_2$. A process, for which the time average and the ensemble average are equal is called ergodic. Stationarity is a necessity for ergodicity.

Expand Down

0 comments on commit 66ea7a9

Please sign in to comment.