Debian Codegraph @

hmmer/easel/documentation/statistics.tex

raw
1
2 \section{Overview of all the statistics modules}
3
4 All statistics modules require the \eslmod{stats} module, in addition
5 to the core \eslmod{easel} module.
6
7 \vspace{1em}
8 \begin{tabular}{ll}\hline
9 \multicolumn{2}{c}{\textbf{Core support:}}\\
10 \eslmod{stats} & Shared and special functions. \\
11 \multicolumn{2}{c}{\textbf{Distributions:}}\\
12 \eslmod{dirichlet} & Dirichlet densities. \\
13 \eslmod{exponential} & Exponential densities.\\
14 \eslmod{gamma} & Gamma densities.\\
15 \eslmod{gev} & Generalized extreme value densities.\\
16 \eslmod{gumbel} & Gumbel densities.\\
17 \eslmod{hyperexp} & Hyperexponential densities.\\
18 \eslmod{mixdchlet} & Mixture Dirichlet densities.\\
19 \eslmod{mixgev} & Mixtures of generalized extreme value densities.\\
20 \eslmod{stretchexp} & Stretched exponential densities.\\
21 \eslmod{weibull} & Weibull densities.\\
22 \hline
23 \end{tabular}
24
25 \subsection{Available densities and distributions}
26
27 Every module implements seven functions:
28
29 \begin{tabular}{lll}
30 \ccode{esl\_*\_pdf} & $P(X=x)$ & probability density function\\
31 \ccode{esl\_*\_logpdf} & $\log P(X=x)$ & natural log of the PDF \\
32 \ccode{esl\_*\_cdf} & $P(X \leq x)$ & cumulative distribution function\\
33 \ccode{esl\_*\_logcdf} & $\log P(X \leq x)$ & natural log of the CDF\\
34 \ccode{esl\_*\_surv} & $P(X > x)$ & survival function (right tail mass) \\
35 \ccode{esl\_*\_logsurv} & $\log P(X > x)$ & natural log of the survival function\\
36 \ccode{esl\_*\_invcdf} & ${ x \mid P(X \leq x) = p }$ & inverse CDF (often useful for sampling)\\
37 \end{tabular}
38
39 \subsubsection{Overview of parameters}
40
41 A summary of the parameters of the elemental distributions is as
42 follows:
43
44 \begin{tabular}{lcccc} \hline
45 \textbf{Distribution}& \textbf{Location} & \textbf{Scale} & \textbf{Shape} & \textbf{PDF} \\\hline
46 \eslmod{dirichlet} & \multicolumn{3}{c}{ $\alpha_i > 0$, $i=1..K$ } &
47 $\frac{\Gamma{\sum_i \alpha_i}}{\prod_i \Gamma(\alpha_i)} \prod_i p_i^{\alpha_i-1}$\\
48 \eslmod{exponential} & $\mu$ & $\lambda$ & - &
49 $\lambda e^{-\lambda (x - \mu)}$\\
50 \eslmod{gamma} & $\mu$ & $\lambda$ & $\tau$ &
51 $ \frac{\lambda^{\tau}}{\Gamma(\tau)} (x-\mu)^{\tau-1} e^{-\lambda (x - \mu)} $\\
52 \eslmod{gev} & $\mu$ & $\lambda$ & $\alpha$ &
53 $ \lambda \left[ 1 + \alpha \lambda (x - \mu) \right]^{-\frac{\alpha+1}{\alpha}}
54 \exp \left\{ - \left[ 1 + \alpha \lambda (x - \mu)
55 \right]^{-\frac{1}{\alpha}} \right\} $\\
56 \eslmod{gumbel} & $\mu$ & $\lambda$ & - &
57 $ \lambda \exp \left[ -\lambda (x - \mu) - e^{- \lambda (x - \mu)} \right] $\\
58 \eslmod{stretchexp} & $\mu$ & $\lambda$ & $\tau$ &
59 $ \frac{\lambda \tau}{\Gamma(\frac{1}{\tau})} e^{- [\lambda(x-\mu)]^{\tau}} $\\
60 \eslmod{weibull} & $\mu$ & $\lambda$ & $\tau$ &
61 $ \lambda \tau [\lambda(x - \mu)]^{\tau-1} e^{- [\lambda(x-\mu)]^{\tau}}$\\
62 \hline
63 \end{tabular}
64
65 Additionally, there are \textbf{mixture distributions} composed of a
66 sum of one of the above elemental densities:
67
68 \vspace{1em}
69 \begin{tabular}{ll} \hline
70 \textbf{Distribution} & \textbf{PDF}\\ \hline
71 \eslmod{hyperexp} & $\sum_k q_k P(x \mid \mbox{exponential:}\mu^k,\lambda^k)$\\
72 \eslmod{mixdchlet} & $\sum_k q_k P(\vec{p} \mid \mbox{Dirichlet:}\vec{\alpha}^k)$\\
73 \eslmod{mixgev} & $\sum_k q_k P(x \mid \mbox{GEV:}\mu^k,\lambda^k,\alpha^k)$\\
74 \hline
75 \end{tabular}
76
77 \subsubsection{Dynamic range}
78
79
80 \subsection{Using histograms}
81
82 \subsection{Parameter fitting}
83 \subsubsection{Complete data}
84 \subsubsection{Binned data}
85 \subsubsection{Censored data}
86 \subsubsection{Truncated data}
87
88
89
90 \subsection{Sampling}
91
92
93
94
95
96
97