[Back] [Forward] [Contents] [Journal Homepage]

2 Bwigg software usage

Bwigg is an interface to the general purpose Bayesian calibration software mexcal. After formatting the input data, Bwigg collects the output from mexcal and calls the graphics software gnuplot to create the figures. Bwigg then creates an HTML document with an outline of the results, with links for output file retrieval.

An interface for mexcal, including several features for Bayesian calibration (not including wiggle matching, however), may be found in BCal. Other software for radiocarbon calibration includes OxCal, Cal25 and CalPal. Access Bwigg at http://www.cimat.mx/Bwigg (this will open in the frame below. Alternatively, select this link to open the site in a new window). Reading all the text in the introductory page is strongly recommended.

It is assumed that the set of radiocarbon determinations to be calibrated form a floating chronology. First, the determinations should be sorted starting with the latest (youngest) sample in the calendar scale. For tree-rings, this would be the outer-most sample in the sequence. Second, the event of interest should be established. For example, suppose the bark was not radiocarbon dated (say, 30 tree-rings until the border of the log), but the event to be dated is when the tree was felled. In this case the age for the first sample, θ1, is 30 years before the event to be dated. Therefore, using years Before Present (BP; taking as the 'present' the year AD 1950), should be

θ1 = θ0 + 30

In such a case α1 = 30 should be set. The same should be done for the rest of the determinations, to complete a list such as the one presented in Table 1 (although for the data set in Table 1, θ0 = θ1, i.e. α1 = 0).

jαjr.c det: yj ± σjLab. Number
1 02180 ± 254084
220 2187 ± 204083
340 2210 ± 254082
460 2225 ± 254081
580 2217 ± 204080
6100 2247 ± 254079
7120 2280 ± 254078
8140 2317 ± 254077
9160 2335 ± 204076
10180 2358 ± 254075
11200 2387 ± 304074
12220 2405 ± 254073
13240 2432 ± 304072
14260 2447 ± 204071
15280 2468 ± 254070
16300 2493 ± 204069
17320 2528 ± 304068

Table 1: Radiocarbon determinations for the Ulandryk 4 kurgan, Altai Mountains, southern Siberia, dendrosample 19116 (see Slusarenko et al. 2001). In this case θ0 = θ11 = 0). The laboratory is the Radiocarbon Laboratory of the Institute of Geology, Siberian Branch of the Russian Academy of Sciences in Novosibirsk (standard liquid scintillation counting).

Table 1 is taken from Slusarenko et al. (2001). A log found in a burial place in southern Siberia, belonging to the Pazyryk culture, was analysed. The tree rings were sub-divided into groups of 20 rings each, and seventeen samples (340 rings counted from the centre), were selected for dating, as shown in Table 1 (see details in Slusarenko et al. 2001).

The next step is to access the data input page of Bwigg. A name for the project (task) for Bwigg should be selected. It is recommended that a name characteristic of the dating study is selected. For example, for the data in Table 1 'Ulandryk' was chosen. Next, the data should be entered. The first line, and only the first line, is available (and should be used) for a comment. This line may be used for a short description of the data. Exceeding the width of the input window is not recommended. The data come next. Each line corresponds to one radiocarbon determination. The format for each line is as follows:

αj    yj ± σj LabNumber

The data may first be typed in a plain text editor (e.g. Notepad in Windows, for example, but not Word), and then copied and pasted into the input window. The data from Table 1, ready to be pasted into the input window look like this:

Ulandryk 4 kurgan, Altai Mountains, southern Siberia, dendrosample 19116.
  0	2180 ± 25	4084
 20	2187 ± 20	4083
 40	2210 ± 25	4082
 60	2225 ± 25	4081
 80	2217 ± 20	4080
100	2247 ± 25	4079
120	2280 ± 25	4078
140	2317 ± 25	4077
160	2335 ± 20	4076
180	2358 ± 25	4075
200	2387 ± 30	4074
220	2405 ± 25	4073
240	2432 ± 30	4072
260	2447 ± 20	4071
280	2468 ± 25	4070
300	2493 ± 20	4069
320	2528 ± 30	4068

The last step is to provide a period of time (early and late boundaries) for calibration. This constitutes the a priori distribution for θ0 (see Bayesian wiggle-matching), which is uniform within the early and late boundaries. Although a very wide range may be used, it is strongly recommended that all available knowledge is incorporated, not including the current radiocarbon determinations, to give an educated guess for this period, thus making the range as short as possible (remember that Bwigg only uses years BP). The data are now sent with the send button. Note that a 5% a priori probability is used for each determination being an outlier; see Outliers for details.

After a short processing time, the output report page shows up in your browser. First of all, go to section 4 of the report (Outlier analysis) and write down or copy some or all of the posterior probabilities given. Go back to the input page and re-send the data. The posterior probabilities in the refreshed calculations should be roughly equal to the first calculations. These probabilities are numerically approximated using a simulation method (called MCMC; see technical section). Problems may arise if the time span (early and late boundaries) given to Bwigg is far greater than the span of the posterior distributions (Figures 1 and 2). After some assurance that the approximations are correct, you may turn to analyse the results (note that the posterior distributions, Figures 1 and 2 in the Bwigg report, are calculated exactly).

The results are given in the output page. Here the posterior distributions are reproduced in Figures 1 and 2, not considering and considering the errors in the calibration curve respectively. Also, Figure 3 presents an illustration of the best match obtained. Moreover, the shift-outlier probabilities are presented in Table 2. Of course, the posterior distributions and graphs in Figures 1, 2 and 3 need to be correctly interpreted, together with the posterior probabilities in Table 2. The reader is referred to the intuitive section for a more general explanation and to the technical section for greater detail.

'Dot plot' distribution chart
Figure 1: Posterior distribution for θ0, for data in Table 1, not considering the errors in the calibration curve

Dot plot' distribution chart
Figure 2: Posterior distribution for θ0, for data in Table 1, considering the errors in the calibration curve

The output explained here is the only output produced by Bwigg. In section 5 of the output page the files produced by Bwigg may be downloaded. These include the figures in png format, which is compatible with nearly all popular word processing packages and may be directly included in your papers. Also, in the compressed (.zip) file there are lots of configuration files, the data file (.dets) and tables in ASCII format defining Figures 1, 2 (.hist files) and 3 (combining .ccur and .dets files). These files may be useful if you want to create your own figures; otherwise downloading the compressed file is not recommended. (For example, the ASCII tables may be imported into Excel to produce customised versions of the figures produced by Bwigg; see Figure 5.)

jLab. No.Post. ProbBayes Fac.
140840.04670.934000
240830.06611.322000
340820.03530.706000
440810.03130.626000
540800.04350.870000
640790.06351.270000
740780.05291.058000
840770.04660.932000
940760.10572.114000
1040750.09881.976000
1140740.04320.864000
1240730.03500.700000
1340720.02920.584000
1440710.03410.682000
1540700.03230.646000
1640690.03600.720000
1740680.03840.768000

Table 2: Approximations obtained for the posterior probabilities and Bayes factors for each determination being an outlier.

Dot plot' distribution chart
Figure 3: Data in Table 1, fixing θ0 = 2191 BP; the best match according to Figure 2. Also the relevant part of the calibration curve is presented, with the estimated standard errors in the curve, to appreciate the wiggle match.


[Back] [Forward] [Contents] [Journal Homepage]

© Internet Archaeology URL: http://intarch.ac.uk/journal/issue13/2/2usage.html
Last updated: Wed Jan 22 2003