Top Banner
Using car4ams, the Bayesian AMS data-analysis code V. Palonen , P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics
16

Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Dec 29, 2015

Download

Documents

Rafe Elliott
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Using car4ams, the Bayesian AMS data-analysis code

V. Palonen, P. Tikkanen, and J. Keinonen

Department of Physics, Division of Materials Physics

Page 2: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

AMS data

In AMS, several measurements are

made of each cathode.

Each measurement has intrinsic

uncertainty from the 14C counting.

Additional (instrumental) error is possible.

What is a reliable uncertainty estimate?

Page 3: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

AMS data analysisFour ways

Counting statistical uncertainty Usually the main component of measurement uncertainty

Additional instrumental error possible. Hence, using this only is too

optimistic.

Standard error of the mean (SDOM) Has negative bias.

Has significant random scatter from sampling → >5σ errors.

Not Gaussian.

Combination of the above Better but not optimal.

Bayesian CAR model Small scatter, best detection of instrumental error, accurate.

Applies same kind of instrumental error for all cathodes.

Page 4: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

SDOM: the random scatter

Sampling causes random scatter to SDOM. May be too

small or too large.

2000 simulated results10 runs per cathode

z-score

Page 5: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

SDOM: deviations not normally distributed

The random scatter of the SDOM leads to a more tailed

distribution for the z-scores (true error/uncertainty).

-6 -4 -2 0 2 4 6

0.0

0.1

0.2

0.3

0.4

0.5

True Error / SDOM

Den

sity

True error / SDOMstd=1 Gaussian

-6 -4 -2 0 2 4 6

1e-0

41e

-03

1e-0

21e

-01

1e+

00

True Error / SDOM

log(

dens

ity)

True error / SDOMstd=1 Gaussian

Page 6: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Combination 1:

Max(sampling, counting)

Counting statisticaluncertainty

Overestimates when no instrumental error. May underestimate when instrumental error present.

Page 7: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Combination 2:

Chi2 test (NEC)

Good when no instrumental error. Underestimates when instrumental error present.

Page 8: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

The CAR model

Known measurement uncertainties

from the Poisson distribution of the 14C counts.

Main assumption: Unknown

(instrumental) error is described by a

continuous autoregressive (CAR)

process. The process can describe both white

noise and random walk noise (trend).

Adapts to the most probable

magnitude and type of instrumental

error.

Page 9: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

CAR results

Small scatter and (usually) Gaussian results. Much better control on instrumental error. Uncertainties

increase continuously with increasing additional error. Slightly more accurate.

Page 10: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

The usage

car4ams, a Linux/Unix/Windows implementation of the

CAR model for AMS is available, along with preprint of an

article on the usage, at:

beam.acclab.helsinki.fi/~vpalonen/car4ams/

The usage:

1. δ13C correct each measured ratio prior to CAR analysis.

2. Make a Ratios.in file of the data.

3. Run car4ams to get a MCMC chain.

4. Summarize car4ams output with cAnalyze.R (an R script).

Summaries are given in a spreadsheet file, all graphs in a

.pdf file.

Page 11: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

δ13C correction

Prior to CAR analysis, the measured ratios and the stable

isotope currents are corrected with

where, for 14C/13C measurements

and for 14C/12C measurements

Page 12: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Form of the Ratios.in file

Each measured 14C /13C or 14C /12C ratio is given on one line: n(i) ti Ri Iiτi

with the four columns:

n(i) Cathode number

ti Time of the measurement of the ratio. In hours

from an arbitrary starting point (from 0:00 of the first

day convenient).Ri The ion current ratio. The number of 14C counts

is converted to ion current.

Ri = rare isotope current / stable isotope current.

Iiτi The product of stable-isotope current and the

duration of 14C counting. Values are given in

coulombs (A· s).

Page 13: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Run car4ams

car4ams output an MCMC chain. The chain consists of

parameter-space points distributed as the posterior pdf.

(For example, the histogram of the values of the parameter O1 is

the probability density function for the 14C concentration of

cathode 1)

car4ams outputs the MCMC chain to stdout, which is directed to

a file by

$ car4ams > c.txt

Page 14: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Check run and summarize results

Start R, the free environment for statistical computing.

In R, run the analysis script

> source(’cAnalyze.R’)

Check convergence from the trace plots

If trace plots ok, use the outputs. (If not, run car4ams

again.)

No convergence Convergence OK

Page 15: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Output

Numerical results in a speadsheet file

Plots

Page 16: Using car4ams, the Bayesian AMS data-analysis code V. Palonen, P. Tikkanen, and J. Keinonen Department of Physics, Division of Materials Physics.

Thank you for the attention

The program is at

beam.acclab.helsinki.fi/~vpalonen/car4ams/ Future plans:

Include automatic convergence analysis and outlier

detection to the code.

Improve the user interface.