TFQA: Tools for Quantitative Archaeology - Statistical Analysis Software for Archaeology TFQA
TFQA Logo

TFQA: Tools for Quantitative Archaeology
     kintigh@tfqa.com   +1 (505) 395-7979

TFQA Home
TFQA Documentation
TFQA Orders
Kintigh (ASU Directory)


DIVERS: Monte Carlo Diversity/Sample Size Analysis

      Program DIVERS allows analyses of diversity to control for the influence of sample size. Two dimensions of diversity are used: richness, the number of different categories present; and evenness, the evenness of the distribution of counts across the categories. A companion program, DIVPLT, graphically displays the results of produced by DIVERS.


      The measure of evenness used is H/Hmax, also known as a J-score. If the number of categories is k, then H is the sum, over the all categories with counts or proportions in the assemblage greater than 0, of pi*log10(pi), where pi is the proportion of items in the assemblage belonging to category i. Hmax is simply log10(k), where k is the number of categories used. (If desired, any number of categories with no representation can be included.) This measure varies from 0 (only one category present), to 1.0, all categories present in equal numbers or proportions. In this implementation, Hmax is held constant for all assemblages, actual and simulated, rather than having it vary with the number of categories present. Thus, the H/Hmax values given are simply scaled values of H, so H values can be obtained by simply multiplying all H/Hmax values by Hmax.

      See Kintigh (1984, 1989) for more information concerning the use of and rationale behind this procedure.

RUNNING DIVERS

 To run the program type: DIVERS<Enter>

      Program parameters are read interactively, while the data are read from a file (not in Antana format) prepared using any text editor that creates plain ASCII files. See "Program Conventions" section at the beginning of this documentation for information on ASCII files. Because DIVERS relies on Monte Carlo methods, it can be time consuming on a microcomputer. For this reason, after the parameters have been read, but before diversity computations begin, it provides an estimate of the time that will be needed, so that the parameters can be readjusted or the program canceled.

      It is possible to cancel execution once the program has begun by typing Ctrl-Break when the program is waiting for a response to a prompt. Once all parameters have been read, and the "OK to Proceed" prompt has been answered in the affirmative, many machines will not recognize a Ctrl-Break, and those that do, will not do so until the next time the program tries to write output. To exit more quickly, you can do a soft reset (Ctrl-Alt-Del), without causing any damage.

DIVERS PROGRAM PROMPTS

      Although the many prompts listed in the next section are useful for tailoring the program more closely to one's needs, an understanding of each parameter is not necessary to run the program. In fact the only mandatory prompt is for the input and file name. The program will run in a reasonable way if <Enter> is hit for each prompt except that one.

      The program has certain built in limits on the size of the data sets that can be accommodated. To run the program on data that exceed these bounds requires that the program be re-compiled, and a new .EXE file be produced. If an inappropriate or invalid response is given, a message will be displayed. For numeric prompts, the message will indicate the range of possible values. Don't worry about it unless this happens to you. But for reference the current limits are:

    maxnint=500; { maximum number of increments }
    maxelmts=1000; { max number of different elements }
    maxpoints=2000; { maximum number of point data points }
    titlelen=60; { maximum run title length in characters}
    maxtrials=10001; { maximum number of trials }
    maxhistint=100; { maximum number of j score hist intervals}


EXPLANATION OF DIVERS PROGRAM PROMPTS

Data Input File ?

      The path name of the file which contains the input data. If the file does not exist, it will display a message and prompt again. See INPUT DATA below.


Reading Input Data...

  Model Distribution Read
  Number of Elements Read: 57
  Number of Non-0 Elements: 44
  Number of Points Read: 5

      This display informs you of the progress of the program in reading your input. If any errors are found in reading the input, error messages will be displayed at this time. If a model distribution separate from the one that might be obtained from the raw data associated with input points is found, the "Model Distribution Read" message is displayed. The "Number of Elements Read" is the number of values in the frequency distribution (either a separate model distribution, or a distribution built from the point raw data. The "Number of Non-0 Elements" is the number of elements that have a value greater than 0 in the model distribution (see Number of Different Categories to Use in Computing H/Hmax, below). The "Number of Points" is the number of separate data points that were read.


Output Listing File {DIVERS3A.LST} ?

      A valid pathname to which program output will be written. If the file already exists, you will be asked if the file may be deleted.


Listing Line Length in Characters {80} ?
Listing Left Margin Spaces {0} ?
Number of Lines to Print on a Listing Page {60} ?
Number of Blank Lines to Print at Top of Page {0} ?

      These prompts define the output format. The listing line length is the number of characters that will be printed, exclusive of any left margin. The line length should be at least 60. These program print options, once entered are written to a file called DIVERS.DEF on the current directory. The program does NOT prompt to erase this file, so do not have another file with this name on the current directory.


Default Output Options:
  Linelen=80 Left Margin=0 Pagelen=60 Top Margin=0
  Default Output Options OK {Y} ?

      This two line display and prompt indicates that a DIVERS.DEF file has been found on the current directory and the output options contained (which may be different than those listed), have been read. To simply accept these values, hit <enter>. Replying N or NO, will allow you to enter these values again, and a new DIVERS.DEF file will be written.


Print Histograms for Sample Sizes Run {Y} ?

      By default, the program produces a histogram of richness and evenness (along with summary statistics) for each sample size run. These histograms are useful for understanding the program operation and for getting a visual feeling for whether a sufficient number of trials was run (in which case the histogram will show a relatively smooth bell shape, with skewing or truncation at large and small sample sizes). However, in many cases the summary statistics, which are always printed, may be all that are necessary. If the histograms are not needed, the output can be greatly shortened by replying No to this prompt. (Note: a negative response only slightly reduces program run time.)


Produce an Output Plot File {Y} ?
Plot File Name {DIVERS3A.PLT} ?

      Reply Yes or accept the default to the first prompt if you want the program to produce a file that can be read by DIVPLT to graphically display the results of the analysis. If a plot file is requested, the file name is requested.


Produce an Output File of Tabulated Results {N} ?
Output File Name {DIVERS3A.OUT} ?

      If you wish to manipulate or otherwise display the summary data produced by the program (perhaps using a Microsoft Chart or Lotus 1-2-3), an output file like the summary listing output is produced, missing of course the headings and forms control. If an output file is requested, the file name is requested.


Run Title ?

      An optional title that will be printed at the top of each output page. The title will be truncated to fit the available space so titles 40 characters or shorter are to be preferred. If no title is desired, simply hit <enter>.


Specify Random Number Seed Value {N} ?

      The first prompt asks if you want to explicitly set the seed on the random number generator. In general, this need not be done. And, if the reply is <Enter> or negative, then the program will set the seed with an arbitrary value (that is printed in the listing file) and continue without issuing the subsequent prompts. It is useful to be able to set the seed only if you want to be able to exactly reproduce a run, which requires the same sequence of random numbers. In order to reproduce a run, look at the parameter listing of the run you want to reproduce, and enter the same seed values (as well as the same values for the other parameters that affect the amount of computation, such as number of trials and the sample size range).


Number of Trials is [C]omputed from Sample Size or [F]ixed {C} ?
Number of Random Trials to Run for Sample Sizes < 10 {200} ?

      If you wish, the program will adjust the number of trials for sample size (hit enter, c, or C); otherwise it will use the same number of trials for each sample size (hit f or F). Computing the number of trials reduces the amount of computer time used without seriously affecting the reliability of the results, since the stability of the results increases with sample size. The number of trials at a given sample size is based on the number of trials run for sample sizes of 1 to 9, which is specified in the next prompt. Then, for each increase in order of magnitude of sample size, the number of trials is halved.  That is, if the number of trials for sample size less than 10 is 200, then 100 trials are run for samples sizes of 10-99, 50 for 100-999, etc.  For guidance in picking the number of trials, see the information provided with the description of the next prompt.


Number of Random Trials to Run {100} ?

      If the Fixed option is chosen, then this is the next prompt received. Enter here the number of random trials to be run for each simulated sample (both interval and point samples, as described below). No simple rule can be given to guide the user in determining how many trials are necessary. However, for smaller sample sizes, larger numbers of categories, and less even model distributions, more trials will be needed. Bell-shaped curves in evenness and richness histograms produced by the program tend to indicate that an adequate number of trials have been run. However, note that with small sample sizes the possible values of evenness are limited, and the histogram will never become smooth. In this case, if the program is run several times at the same sample sizes on the same data and similar results are obtained (as judged by the means and standard deviations of richness and evenness), this suggests that an adequate number of trials have been run for those sample sizes.


Run Trials for a Range of Sample Sizes {Y} ?

      Answer yes to compute expected diversity for a range of possible sample sizes. This option is used to build a diversity curve like those presented in the references, above. The computation of expected diversity for the sample sizes associated with any point data entered is carried out independent of this prompt (see "Run Random Trials with Sample Sizes of Points Read").


Note: Data Set Sample Sizes Range from 23 to 152
Smallest Sample Size to Run {20} ?
Largest Sample Size to Run {200} ?

      These two prompts determine the range over which the random trials are run, the range over which the expected diversity curve is computed. If point data have been entered, the default values associated with these prompts are "round" numbers the include the range of sample sizes of the actual data.


Sample Size Increment is [W]ide, [N]arrow, or [F]ixed {W} ?

      If "Run Trials for One or a Range of Sample Sizes" was answered yes, then expected diversity is computed at the minimum sample size, and at additional sample sizes up to the maximum. If one chooses the Wide or Narrow options, the program will choose an approximately logarithmic spread of sample sizes to run. If the Fixed option is chosen answer is no, the "Sample Size Increment" prompt, below, is issued.

      With the Wide option the program computes a relatively wide sample size increment which produces a rough curve. The Narrow option will produce a smoother curve but take quite a bit more time. In either case, the program will adjust the minimum and maximum sample sizes to "round" numbers. The Wide increment uses sample sizes at the following values within the range of the minimum and the maximum sample sizes specified: 0, 10, 20, 50, 100, 200, 500, 1000, 2000.... Thus, if the minimum is 20 and the maximum is 200, the following sample sizes are used: 20, 50, 100, 200. The Narrow increment at a given sample size is about on fifth that of the rough increment. As a result, the curve is smoother, but it takes about 5 times as long to compute. The sequence of sample sizes for the smooth interval goes as follows 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 16, 18, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100, 120, 140, 160, 180, 200, 250, 300, 350, 400, 450, 500, 600, 700, 800, 900, 1000, 1200....


Sample Size Increment {45} ?

      If the computed interval (Wide or Narrow) is not used, the user may specify an even increment to be used. The program default is to increment is calculated to provide 4 or 5 sample sizes spread over the range. A smaller number here increases the resolution of the diversity curve, at the expense of additional computation. If the increments do not divide evenly into the range between the maximum and minimum, then the largest sample size computed will be the largest one that does not exceed the maximum. If the minimum and maximum sample sizes are the same, then random trials are run for that sample size alone, and this prompt is not displayed.

Estimated Run Time in Minutes for Sample Size Range
   PC: 3.7 AT: 1.0
 > PC w/ 8087: 0.6 AT w/ 80287: 0.3
   Selections: 22000 Element-Trial Iterations: 13200

      Ths display indicates the approximate time that will be required to do the computation for the range of sample sizes with the specified increment for old IBM microcomputers configured in different ways. Newer machines will run the program very much faster. The numbers following "Selections" and "Element-Trial Iterations" indicate the amount of computing to be done in the two most time-consuming parts of the program. These two numbers are described below in the section on Program Operation.


Run Random Trials with Sample Sizes of the Points Read {Y} ?

      If data are read that describe actual data points, this option allows the computation of expected diversity for those exact sample sizes. In addition, the program will compute the percentile values of richness and evenness of the actual data with respect to the expected curve.

Estimated Run Time in Minutes for Point Sample Sizes
   PC: 5.4 AT: 1.5
 > PC w/ 8087: 0.8 AT w/ 80287: 0.4
   Selections: 25600 Element-Trial Iterations: 19800

      This message provides a time estimate for the computation of expected diversity for the sample sizes of the input points. See the information provided with the similar display, above.


Number of Different Categories to Use in Computing Hmax {44} ?

      The number of categories used in computing Hmax. Usually, this will be the number of non-zero categories in the model distribution (the program default, which is data dependent), but there are situations in which a larger number may be desired.


Confidence Interval Width (0.0<=interval<=1.0) {0.9} ?

      The interval centered on the median richness and evenness of the trial samples that is marked on the output and may be plotted as a reference line. A value of 0.9 indicates that 90% of all trials will fall within the range, a value of 0.5 indicates that 50% will fall within the range. Since richness and evenness values often cluster, the actual percentage in any interval may be MORE than the specified proportion, but never less than that value.


OK to Proceed {Y} ?

      This prompt gives you a chance to go back and reenter program parameters. It is especially useful, if the time estimate appears too long, and you want to adjust the number of trials, the increment, or the minimum and maximum sample sizes to cut down the time. Answering yes starts basic computation. Answering no takes you back to the output format prompt.

Program Running; Please Be Patient
  200
Compute Time: 0.22
   23

Total Compute Time: 0.67 Minutes

End DIVERS

      This display indicates that the program is running, and indicates the sample size most recently completed. The first number and Compute Time value are associated with the trials for the sample size interval, the second set of numbers are associated with the trials for the sample sizes of the points read. The number printed near the left side of the screen is the sample size last COMPLETED, in the first case 200, in the second, 23. The first two compute time values are printed only when the respective parts of the program have finished execution. The last two lines will be displayed at the termination of the program run. Until the run on the first sample size is complete, only the first line of this display will show. If you need to interrupt the program, see RUNNING DIVERS above.


DIVERS INPUT DATA

      Input data is stored in a standard ASCII file produced using Notepad or another editor. If a word processing editor is used, make sure that the data set is saved as an ASCII file, that is that no additional codes are stored with it.

      The input data file consists of two parts, Model Data and Point Data.  Model Data compose the distribution that is used to generate the expected diversity. Point Data are used to examine the relationship between actual data values and the expected diversity produced from the model data. No point data are required for program operation if Model Data are explicitly provided. Whenever a terminating "*" is used, it must be preceded by one or more blanks.


Model Data

      The model data may be entered as a sequence of real numbers, followed by a "*". Any number of values may be on a line, separated by one or more spaces (NOT commas). The program will continue reading numbers until a "*" or other non-numeric character is read. Note, a blank must appear before the * or other non-numeric character. No more than the program limit of maxelmt values may be entered (see above). The values read may be counts, percentages, or proportions that make up the model distribution.

      Alternately, the model distribution may be build by summing the values given with the Point Data. In this case, the absence of explicit model data must be indicated by a single initial line with a "*" on it.


Point Data

      Point data consists of two parts for each point (assemblage), label information and diversity data. Label information is read from the first line following the Model Data or the last line of the previous entry of Point Data. The diversity data is read starting on the next line, until a "*" or other non-numeric character is found.

      Label Information. The label line may have three types of information on it. First a single character that indicates the plot symbol to be used by DIVPLT, for example, a '+' or an 'A'. Any standard character may be used.

       Next, a label of up to titlelen characters for the point. This label may be separated from the plot symbol by any number of blanks, but must be on the same line. The label may include any characters, including blanks.  All characters up to the first "/" (if any) will be plotted as a label on the plot. The entire string (with the "/" changed to a blank) will be plotted in a legend.

      Diversity Data.  Starting on the line following the label information line record diversity information for the point is read. Diversity information may be of two types.

      If a model distribution was explicitly provided, diversity data may consist of three values for the point, sample size, richness, and evenness, on one or more lines, terminated with a "*". Sample size and richness are read as integers (no decimal point), and evenness as a real number. Sample size is the number of items observed. Richness is the number of different categories (as defined by the model distribution) observed. Evenness is the H/Hmax value of the observed distribution, accurate to at least four decimal places (the program rounds to three decimal places when computing percentiles).  Base 10 logs are used.

      Alternately, a list of counts (percentages, or proportions) representing the categories for the data point will be read. The program will compute each point's sample size, richness, and evenness. This data list has the same form as the model distribution list, including the terminating "*". If no model distribution was provided, the number of values expected for each point value will be determined by the number associated with the first point. Thus, the same number of values must be entered for each point, and the model distribution, if any. If no explicit model distribution is provided, the values for the first, second, third, etc. categories for all points are summed to provide a composite distribution. In this case counts would ordinarily be used, however percentages or proportions may be used if the composite distribution should weight each point (assemblage) equally (but the sample size will not be available).

      The choice of the input format is a matter of convenience. Usually, either the model distribution will be provided along with computed richness and evenness values for the points (Sample Dataset 1), or no model distribution will be given, but full data will be given for each point (Sample Dataset 2). Use of a model distribution and raw data is useful only if a model distribution other than the composite distribution is desired (Sample Dataset 3). The user need not specify the input form used, the program will figure it out. Three sample datasets are included below. All three of these sample datasets will produce the same results. (Here, the model distribution of Sample Dataset 3 is redundant, since it is simply the sum of the point assemblages.)


Sample Dataset 1

3 41 12 4 1 3 12 38 9 21 2 2 25 11 7 11 3 4 12 6 5 4 7 1 8 1 2   
  4 2 2 1 1 0 7 2 1 1 0 3 0 1 0 6 0 0 0 3 9 0 0 0 17 10 0 7 0 0 *
  * Alta/ALTAMIRA
  152 38 0.8639 *
  * Mina/CUETO DE LA MINA
   69 27 0.7810 *
  * Cier/EL CIERRO
   35 15 0.6568 *
  * Juyo/EL JUYO
   53 19 0.6584 *
  * Palo/LA PALOMA
   23 12 0.6155 *

Sample Dataset 2

3 41 12 4 1 3 12 38 9 21 2 2 25 11 7 11 3 4 12 6 5 4 7 1 8 1 2   
  4 2 2 1 1 0 7 2 1 1 0 3 0 1 0 6 0 0 0 3 9 0 0 0 17 10 0 7 0 0 *
  * Alta/ALTAMIRA
  152 38 0.8639 *
  * Mina/CUETO DE LA MINA
   69 27 0.7810 *
  * Cier/EL CIERRO
   35 15 0.6568 *
  * Juyo/EL JUYO
   53 19 0.6584 *
  * Palo/LA PALOMA
   23 12 0.6155 *

Sample Dataset 3

3 41 12 4 1 3 12 38 9 21 2 2 25 11 7 11 3 4 12 6 5 4 7 1 8 1 2
  4 2 2 1 1 0 7 2 1 1 0 3 0 1 0 6 0 0 0 3 9 0 0 0 17 10 0 7 0 0 *
O Alta/ALTAMIRA
    2 12  7  1  0  3 12 15  0  3  1  1 12  7  3 11
    3  1  7  2  4  3  3  1  5  1  1  1  0  2  0  1
    0  0  1  1  1  0  3  0  0  0  2  0  0  0  1  4
    0  0  0  5  4  0  5  0  0  *
O Mina/CUETO DE LA MINA
    1 12  2  0  1  0  0  3  1  5  0  1  4  3  1  0
    0  1  2  4  0  1  1  0  1  0  0  2  2  0  1  0
    0  7  0  0  0  0  0  0  1  0  1  0  0  0  2  2
    0  0  0  6  1  0  0  0  0  *
O Cier/EL CIERRO
    0  5  1  2  0  0  0  7  3  2  1  0  4  0  2  0
    0  0  2  0  0  0  1  0  0  0  0  0  0  0  0  0
    0  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0
    0  0  0  2  1  0  0  0  0  *
O Juyo/EL JUYO
    0  8  2  1  0  0  0 12  3  9  0  0  2  1  1  0
    0  1  1  0  1  0  2  0  1  0  1  1  0  0  0  0
    0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  2
    0  0  0  0  3  0  0  0  0  *
O Palo/LA PALOMA
    0  4  0  0  0  0  0  1  2  2  0  0  3  0  0  0
    0  1  0  0  0  0  0  0  1  0  0  0  0  0  0  0
    0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  1
    0  0  0  4  1  0  2  0  0  *


DIVERSITY PROGRAM OUTPUT

      The program output should, in general be self explanatory.  Program prompts allow the user to limit the output, for example, but not including histograms of the results of every random sample run.  An abbreviated set of output is provided below.  Comments are provided for clarification.


            
DIVERS 5.1 12-07-23: <parameters> Test Run

Diversity Analysis Program - Keith Kintigh

Parameter Description   Parameter  Value  Maximum

Number of Elements      (elements)   57     1000
Minimum Size Sample     (min)        20
Maximum Size Sample     (max)       200
Sample Size Increment   (inc)         1
  (increment computed)
Number of Intervals     (nint)       16      500
  (computed from min, max, and inc)
Number of Random Trials (trials) 8  1000    10000
  (trials computed)
Random Number Generator Seed     1527093243
Confidence Interval     (level)   0.900    1.000
H/Hmax Histogram Incr   (histincr)0.025    0.010
Elements in Hmax        (evenelmt)   44
Number of Points        (npoints)     5     2000
Line Length (chars):    (linelen)    80
Page Length (lines):    (pagelen)    60
Title: Test Run
 

DIVERS 5.1 12-07-23: <input> TestRun Relative Proportions of Categories Element Input Value Proportion Cumulative 1 3.0000 0.0090 0.0090 2 41.0000 0.1235 0.1325 3 12.0000 0.0361 0.1687 .... 57 0.0000 0.0000 1.0000 Total 332.0000 Number of Input Categories: 57 Maximum Number of Different Categories: 44 Number of Empty Categories: 13 H/Hmax (evenness) of Distribution: 0.8690
DIVERS 5.1 12-07-23: <analysis> Test Run Sample Size: 20 - Richness Histogram Num of Pct of Cum Trials: 500 Richness Trials Trials Pct Histogram (*= 7 trials) 9 11 2.2 2.2 ** > 10 19 3.8 6.0 > *** 11 56 11.2 17.2 ******** 12 82 16.4 33.6 ************ + 13 105 21.0 54.6 + *************** 14 114 22.8 77.4 ***************** 15 76 15.2 92.6 *********** > 16 27 5.4 98.0 > **** 17 8 1.6 99.6 ** 18 2 0.4 100.0 * Mean Richness: 13.19 Std: 1.72 96 Pct of Trials w/i 0.90 Probability Interval Sample Size: 20 - Evenness Histogram Num of Pct of Cum Trials: 500 Evenness Trials Trials Pct Histogram (*= 7 trials) 0.475 1 0.2 0.2 * 0.500 3 0.6 0.8 * 0.525 12 2.4 3.2 ** >0.550 28 5.6 8.8 > **** 0.575 43 8.6 17.4 ******* 0.600 71 14.2 31.6 *********** +0.625 105 21.0 52.6 + *************** 0.650 120 24.0 76.6 ****************** 0.675 64 12.8 89.4 ********** >0.700 44 8.8 98.2 > ******* 0.725 7 1.4 99.6 * 0.750 2 0.4 100.0 * Mean H/Hmax: 0.6440 Std: 0.0468 Interval-Lower: 0.5580 Upper: 0.7115 Sample Size: 25 - Richness Histogram Num of Pct of Cum Trials: 500 Richness Trials Trials Pct Histogram (*= 7 trials) 10 4 0.8 0.8 * 11 8 1.6 2.4 ** > 12 23 4.6 7.0 > **** 13 43 8.6 15.6 ******* 14 85 17.0 32.6 ************* + 15 103 20.6 53.2 + *************** 16 94 18.8 72.0 ************** 17 75 15.0 87.0 *********** > 18 40 8.0 95.0 > ****** 19 20 4.0 99.0 *** 20 3 0.6 99.6 * 21 2 0.4 100.0 * Mean Richness: 15.36 Std: 1.92 93 Pct of Trials w/i 0.90 Probability Interval Sample Size: 25 - Evenness Histogram Num of Pct of Cum Trials: 500 Evenness Trials Trials Pct Histogram (*= 7 trials) 0.525 5 1.0 1.0 * 0.550 8 1.6 2.6 ** 0.575 12 2.4 5.0 ** >0.600 33 6.6 11.6 > ***** 0.625 62 12.4 24.0 ********* 0.650 99 19.8 43.8 *************** +0.675 117 23.4 67.2 + ***************** 0.700 92 18.4 85.6 ************** >0.725 55 11.0 96.6 > ******** 0.750 14 2.8 99.4 ** 0.775 3 0.6 100.0 * Mean H/Hmax: 0.6786 Std: 0.0442 Interval-Lower: 0.6017 Upper: 0.7425 ... Sample Size: 200 - Richness Histogram Num of Pct of Cum Trials: 250 Richness Trials Trials Pct Histogram (*= 4 trials) 32 3 1.2 1.2 * > 33 13 5.2 6.4 > **** 34 24 9.6 16.0 ****** 35 30 12.0 28.0 ******** 36 55 22.0 50.0 ************** + 37 54 21.6 71.6 + ************** 38 34 13.6 85.2 ********* 39 15 6.0 91.2 **** > 40 14 5.6 96.8 > **** 41 3 1.2 98.0 * 42 4 1.6 99.6 * 43 1 0.4 100.0 * Mean Richness: 36.56 Std: 2.03 96 Pct of Trials w/i 0.90 Probability Interval Sample Size: 200 - Evenness Histogram Num of Pct of Cum Trials: 250 Evenness Trials Trials Pct Histogram (*= 4 trials) 0.750 1 0.4 0.4 * 0.775 5 2.0 2.4 ** >0.800 58 23.2 25.6 > *************** +0.825 119 47.6 73.2 + ****************************** >0.850 61 24.4 97.6 > **************** 0.875 6 2.4 100.0 ** Mean H/Hmax: 0.8378 Std: 0.0196 Interval-Lower: 0.8049 Upper: 0.8683 DIVERS 5.1 12-07-23: <analysis> Test Run

... Mina/CUETO DE LA MINA Sample Size: 69 Richness: 27 Percentile: 66 ( 57% - 74% ) Num of Pct of Cum Trials: 500 Richness Trials Trials Pct Histogram (*= 7 trials) 20 1 0.2 0.2 * 21 5 1.0 1.2 * 22 17 3.4 4.6 *** > 23 37 7.4 12.0 > ****** 24 57 11.4 23.4 ********* 25 79 15.8 39.2 ************ + 26 89 17.8 57.0 + ************* 27 88 17.6 74.6 ************* 28 57 11.4 86.0 ********* 29 37 7.4 93.4 ****** > 30 19 3.8 97.2 > *** 31 11 2.2 99.4 ** 32 1 0.2 99.6 * 33 2 0.4 100.0 * Mean Richness: 26.12 Std: 2.21 93 Pct of Trials w/i 0.90 Probability Interval Mina/CUETO DE LA MINA Sample Size: 69 Evenness: 0.7810 Percentile: 46 ( 46% - 47% ) Num of Pct of Cum Trials: 500 Evenness Trials Trials Pct Histogram (*= 7 trials) 0.675 2 0.4 0.4 * 0.700 11 2.2 2.6 ** >0.725 60 12.0 14.6 > ********* 0.750 124 24.8 39.4 ****************** +0.775 138 27.6 67.0 + ******************** 0.800 120 24.0 91.0 ****************** >0.825 42 8.4 99.4 > ****** 0.850 3 0.6 100.0 * Mean H/Hmax: 0.7837 Std: 0.0302 Interval-Lower: 0.7330 Upper: 0.8306

...

 DIVERS 5.1 12-07-23: <interval summary> Test Run Richness ------ ------ ------------------------------------------ N Trials Mean StdDev Lower Upper Min Max 20 500 13.19 1.72 10 16 9 18 25 500 15.36 1.92 12 18 10 21 30 500 17.30 2.03 14 20 11 23 35 500 18.78 2.19 15 22 11 26 40 500 20.29 2.37 17 24 13 27 45 500 21.30 2.31 17 25 14 28 50 500 22.70 2.19 19 26 16 30 60 500 24.71 2.29 21 28 18 31 70 500 26.49 2.36 23 30 20 34 80 500 27.91 2.34 24 31 21 34 90 500 28.94 2.33 25 33 20 35 100 250 30.24 2.18 27 34 24 35 120 250 31.76 2.05 28 35 25 37 140 250 33.38 2.36 29 37 26 39 160 250 34.96 2.09 32 38 29 41 180 250 35.57 2.07 32 39 31 40 200 250 36.56 2.03 33 40 32 43 DIVERS 5.1 12-07-23: <interval summary> Test Run Evenness ------ ------ ------------------------------------------ N Trials Mean StdDev Lower Upper Min Max 20 500 0.6440 0.0468 0.5580 0.7115 0.4874 0.7550 25 500 0.6786 0.0442 0.6017 0.7425 0.5311 0.7920 30 500 0.7052 0.0408 0.6379 0.7675 0.5553 0.8133 35 500 0.7211 0.0396 0.6562 0.7846 0.5869 0.8309 40 500 0.7364 0.0414 0.6616 0.8030 0.5874 0.8323 45 500 0.7448 0.0372 0.6809 0.8044 0.6049 0.8258 50 500 0.7591 0.0326 0.7024 0.8099 0.6706 0.8441 60 500 0.7761 0.0301 0.7247 0.8224 0.6729 0.8662 70 500 0.7889 0.0309 0.7358 0.8380 0.7104 0.8783 80 500 0.7976 0.0288 0.7521 0.8451 0.7092 0.8716 90 500 0.8027 0.0265 0.7587 0.8441 0.7210 0.8850 100 250 0.8094 0.0233 0.7700 0.8492 0.7516 0.8802 120 250 0.8182 0.0231 0.7834 0.8531 0.7389 0.8808 140 250 0.8262 0.0239 0.7871 0.8647 0.7359 0.8882 160 250 0.8332 0.0193 0.7995 0.8664 0.7787 0.8832 180 250 0.8346 0.0184 0.8020 0.8636 0.7796 0.8786 200 250 0.8378 0.0196 0.8049 0.8683 0.7732 0.8903 DIVERS 5.1 12-07-23: <point summary> Test Run Sample Trials Richness/% Evenness/% Label ------ ------ ----------- ----------- ------------------------------ 152 250 38 0.8639 Alta/ALTAMIRA 93 95 97 93 94 94 69 500 27 0.7810 Mina/CUETO DE LA MINA 57 66 74 46 46 47 35 500 15 0.6568 Cier/EL CIERRO 3 5 8 7 7 7 53 500 19 0.6584 Juyo/EL JUYO 2 3 4 0 0 0 23 500 12 0.6155 Palo/LA PALOMA 6 10 14 14 14 14 Total Compute Time: 0.00 Minutes End DIVERS

      One part of the final section of the output needs some comment. In addition to random samples computed at intervals to generate curves for the expected values of richness and evenness, and confidence intervals around the expected values, the program will optionally generate random samples at the exact sample sizes of the actual data points. In that case, both histograms (if requested) and summary information are provided. Looking at the Point Summary information immediately above, for each data point the program lists the observed sample size, richness and evenness. On the next line, it lists percentiles for richness and evenness.  Percentile is generally defined as the proportion of cases with values below the observed. However, when there are large numbers of tied values in a distributions, percentile values can be a bit misleading.  Taking the case of Cueto de la Mina, the observed richness is 27.  Looking at the histogram of the random trials (shown above the preceding the sample size summaries) you can see that 57.0% (285) of the 500 random trials have a richness less than the observed 27, i.e., 26 of fewer.  This 57% is the first of the three numbers listed in the second line of each point's summary.  However you also see that 88, or 17.6% of the random trials have a richness equal to the observed 27. If we take any one of the 88 random samples richness of 27 to the be case on which percentiles are computed, 87 other samples have an equal richness of 27, so 87+285 = 372 of the 500  or 74.4% random samples have a value less than or equal to our selected single case.  Rounded, this 74% is this third value provided. One might most accurately say the percentile is 57 to 74. However if one wanted a single number for percentile, one might split the 88 ties and that is the second number provided, 66. The same logic is applied to the three numbers for evenness.

      In the latest version of the program, the output is clarified.  For example:


            
Sample  Trials    Richness     Evenness/%   Label
------  ------  ------------  ------------  ------------------------------
...
  69     500            27        0.7810    Mina/CUETO DE LA MINA
Percentiles      66 ( 57- 74)  46 ( 46- 47)
...
            

DESCRIPTION OF DIVERS PROGRAM OPERATION

      For each sample size, from the minimum to the maximum, a number samples (determined by the Number of Random Trials prompt) chosen from the frequency distribution of data, and the distribution of the number of elements of different categories (the richness) is plotted in a histogram.  Next, the distribution of the evenness (H/Hmax) values of the trials samples is summarized and plotted in a histogram.  Finally, this information is summarized by tables and plots in which the mean and a confidence interval around the richness and evenness values is plotted against the sample size.  The point data (if any) are superimposed on this plot.  All output goes to the output file and the plots to a plotter. (The plot option is not now implemented.)

      CPU Time Required.  The execution time of the program is basically a function of the number of random selections made and the product of the number of random trials and the number of elements, summed over each sample size that is run.  Thus, a single run of 500 trials for a sample size of 100 with 50 different categories, results in 50,000 selections and 5000 element-trial iterations.  With the time estimates, the program provides the number of selections that will be performed and the number of element-trial iterations required by the run.  In general, with a constant increment and number of trials, the number of selections increases with the square of the maximum sample size requested, as given by:

SELECTIONS=0.5*TRIALS*(MAX**2/INC+MAX). 

      If a computed interval (INC=0) is used, the increase in selections with increasing MAX is essentially linear, estimated by:

SELECTIONS=1.8*MAX*TRIALS (for rough intervals) SELECTIONS=7.8*MAX*TRIALS (for smooth intervals)

      If computed trials and intervals (TRIALS<0 and INC=0) are used then the number of selections increases much more slowly.  The relationship is estimated closely (at a MAX of 50 or more) by:

SELECTIONS=4*TRIALS*MAX*0.81**(3.32*log10(MAX)) (for rough)

SELECTIONS=16*TRIALS*MAX*0.81**(3.32*log10(MAX)) (for smooth)


COMPOSITION OF .PLT FILES PRODUCED BY DIVERS

      If you look at the .PLT file produced by Divers (not the .HPG file produced by DivPlt that actually contains the plot) you will see that it contains all the data needed to create the plots. You can read that data into a statistics or graphing program and use it to create plots. For Divers, the composition of the .plt file is as follows. You won' need all of this information:

title date no of elements, min ss, max ss, increment, no of intervals, no of points, conf.level, iproginc, ipointtrial, iinctrial, disteven,hmax,avlevpct (you don't need these)

for each element, the element proportion

for each sample size interval: ss, mean richness, std of richness, richness conf. interval low, richness conf. interval high, minimum richness, maximum richness, mean evenness, std of evenness, evenness conf. interval low, evenness conf. interval high, minimum evenness, maximum evenness.

for each data point: symbol, label sample size, number of trials, richness evenness, (and depending on the computations, richness lower percentile, richness percentile, richness upper percentile, evenness lower percentile, evenness percentile, evenness upper percentile

Page Last Updated: 17 October 2020

Home Top Overview Ordering Documentation