Professional Documents
Culture Documents
Abstract
A Visual Basic macro entitled BACKGROUND calculates geochemical background values of chemical para-
meters and estimates threshold values separating background data from anomalies. The macro uses two statistical
methods, the iterative 2-r technique and the calculated distribution function, and integrates these model-based
objective methods into a widely accessible platform (i.e., MS Excel). The macro offers the possibility for auto-
mated processing of geochemical data and enables an automated generation of background range and threshold
values for chemical parameters.
Prepare Prepare
Calculate Median
Calculate Mean and
Standard Deviation (σ)
Iteration loop
Yes
Calculate bin, freq., Calculate Mean±2σ
cumul., cumul. (%) range
End
Hypothesis testing
(normal cumul. distrib.;
Figure 1. Macro structure for the iterative 2-r technique. Lilliefors test)
Chart
An algorithm based on the calculated distribution
function concept shares the first computational step with
End
the previously described algorithm (‘‘Prepare’’ in Figure 2).
After the data preparation, the macro calculates the
median value for the data set and all values greater than Figure 2. Macro structure for the calculated distribution
function.
the median are then cleared. In the next step, the macro
mirrors all remaining values against the calculated
median value in the following manner: mirrored value ¼ background concentrations of nitrate in shallow ground
median 2 data set value 1 median. The macro then cal- water of an alluvial aquifer in the area of Zagreb, the cap-
culates mean and standard deviation from the prepared ital of Croatia, calculated by the VB macro (Figures 3
data set and the mean 6 2r range. After calculating the and 4) show that both methods give similar values of
mean 6 2r range, all values that lie outside the calculated background levels and threshold limits.
range are cleared (‘‘Clear all values outside range Mean 6 As a way of assessing the results, the Lielliefors test
2r’’ in Figure 2). Following the computational steps, is used. The test statistic T in both examples is less than
from entering the calculated background levels, threshold the critical value of the Lilliefors test statistic Tcrit. The
limit and data not considered to be background values in identified background values distribution fits the normal
the spreadsheet are shared with the previously described distribution well, indicating that the results of both meth-
algorithm. The macro runs on Windows operating sys- ods under present circumstances are satisfactory.
tems and accompanied versions of Microsoft Excel.
Conclusions
Use of Methods To distinguish between natural and anthropogeni-
To illustrate the use of the iterative 2-r technique cally contaminated concentrations in ground water,
and the calculated distribution function method through geochemical background needs to be calculated. With
an example, the VB macro is used with field data that the VB macro BACKGROUND, it is possible to integrate
were sampled to include a higher percentage of data un- the model-based objective approach into an automated
affected by human impact. Ambient or present-day calculation of geochemical background values of chemical
Z. Nakić et al. GROUND WATER 45, no. 5: 642–647 645
Background values Original values
Background values - cumulative (%) Original values - cumulative (%)
Normal cumulative probability distribution
12 100
8
60
6 %
40
4
20
2
0 0
0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10. 11. 12.
Concentration class [mg/L]
Figure 3. Background concentrations of nitrate calculated using the iterative 2-r technique (background levels: 0/4.8; thresh-
old limit: 4.8; Lilliefors test statistic [a ¼ 0.5]: Tcrit. ¼ 0.119, T ¼ 0.064).
parameters and to estimate threshold values dividing The user-friendly VB macro BACKGROUND pro-
background data from anomalies. BACKGROUND uses vides information on the normal background concentra-
algorithms that incorporate two statistical methods, the tions with little effort using a widely accessible platform
iterative 2-r technique and the calculated distribution (i.e., MS Excel), which also allows data to be plotted and
function. The iterative 2-r technique is particularly suited visualized easily in the same Excel environment that
for the calculation of the threshold value as the outer limit researchers often use to organize and evaluate data.
of background variation and has the ability to determine Additionally, it offers the possibility for automated data
the outliers below the lower limit of normal background processing contained in a chemical database, which en-
fluctuation for some chemical parameter. The calculated ables an automated generation of background range and
distribution function is convenient for use if anthropo- threshold values for chemical parameters.
genic activities tend to lead to enrichments in natural sys-
tems, causing the distribution function of the original data
set to be skewed toward higher values. If data unaffected Software Availability
by human impacts dominate in a sampled data set, the The Excel spreadsheet with its open access VB
calculated distribution function method could even be macro may be requested charge-free via e-mail from the
applied to a polymodal distribution. contributing author of this article (kposavec@rgn.hr).
12 100
Frequency per width of class
10
80
8
60
6 %
40
4
20
2
0 0
0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10. 11. 12.
Concentration class [mg/L]
Figure 4. Background concentrations of nitrate calculated using the calculated distribution function (background levels:
0–5.9; threshold limit: 5.9; Lilliefors test statistic [a ¼ 0.5]: Tcrit. ¼ 0.103, T ¼ 0.049).