The Anderson-Darling test statistic is defined as:

A^2 = -N -S

where

\[S = \sum_{i=1}^{N} \frac{2i-1}{N}[lnF(Y_i) + ln(1-F(Y_N_+_1_-_i))] \]

where F is the cumulative distribution function of the probability model, i is the rank of the data, and N is the number of data points. 

  • Copy the sheet titled Data and name the new sheet A-D Test.
  • Compute the cumulative frequency denoted by F(y_i).
  • Compute the cumulative frequency denoted by F(y_N_+_1_-_i)

Use the Excel function VLOOKUP to determine the CDF value at discharge index N + 1 - i, F(Y_N_+_1_-_i). The complete formula is shown below.

Computation of A-D test statistic


Question: What is the computed Anderson-Darling test statistic, A^2?

First, calculate S_i for each discharge value.  Next, compute the sum of the S_i column.  Finally, compute the Anderson-Darling test statistic, A^2.

The computed Anderson-Darling test statistic is 0.706. This matches the value from Distribution Fitting Test 20 in the HEC-SSP Examples.

If time allows, continue to Task 5. Bayesian Information Criterion