Debian Codegraph @

examples/harmonic-oscillators/README.md

raw
1 # Harmonic oscillators
2
3
4 This folder contains two examples illustrating application of MBAR to
5 a set of harmonic oscillators, for which free energy differences and
6 expectations can be computed analytically. More examples can be found
7 in [pymbar-examples](http://github.com/choderalab/pymbar-examples/).
8
9 * `README.md` - this file
10 * `harmonic-oscillators.py`
11 * `harmonic-oscillators-distributions.py`
12
13 It also contains sample output from these scripts.
14
15 ## Usage
16
17 * `harmonic-oscillators.py` - runs though all of the external functions for MBAR
18 using data generated from harmonic oscillators
19
20 * `harmonic-oscillators.py_output.txt` - sample output from `harmonic-oscillators.py`
21
22 * `oscillators.pdf` - figure illustrating the overlap of the harmonic oscillators in this test.
23
24 * `oscillators.m` - Matlab script to generate oscillators.pdf
25
26 This script gives examples of how to call all externally accessible
27 functionality in MBAR. Since all samples are drawn from harmoinc
28 oscillators,
29
30 * `harmonic-oscillators-distributions.py` - test driver showing the
31 consistency of free energies and observable error estimates from the
32 normal distribution
33
34 * `harmonic-oscillators-distributions.py_output.txt` - sample output from `harmonic-oscillators.py`
35
36 * `QQdf.pdf` - QQ plots for the free energy differences
37
38 * `QQMBARobserve.pdf` - QQ plots for the ensemble averages computing using MBAR
39
40 * `QQstandardobserve.pdf` - QQ plots for the ensemble averages computing using standard averaging (which can't be done for the lone unsampled state
41
42 * `cumulative_probability_comparison_curves.pdf` - another visualization comparing the standard normal distribution with the errors in the data normalized by the estimated uncertatity.
43
44 QQ plots give a straight line if the distributions agree. In this
45 case, we compare the distribution of errors from the analytical
46 estimate divided by the estimated uncertainty to the analytical
47 standard normal distribution. In all cases except for distribution
48 the positions sampled from the unsampled state, the QQ plot is linear
49 to within noise.
50
51 The [Anderson-Darling test](http://en.wikipedia.org/wiki/Anderson%E2%80%93Darling_test) printed out in the
52 `harmonic-oscillators-distributions.py` code also gives a test of
53 normality of the error estimates.
54
55 Cutoffs for the statistic for the confidence intervals for known uncertainty and known mean are:
56
57 | | |
58 |------|-------|
59 | 15% | 1.610 |
60 | 10% | 1.933 |
61 | 5% | 2.492 |
62 | 2.5% | 3.070 |
63 | 1% | 3.857 |
64
65 However, since the sigma is generated using MBAR, then it has some
66 uncertainty, and the statistic may be slightly different.
67
68 When the number of replicates becomes too high, there is a chance that
69 the Anderson-Darling metric can be too sensitive, but the current
70 level of 200 replicates is fine.
71
72 Again, all results except the uncertainty of the position in the
73 unsampled states are consistent with normal distribution of error.