Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

1manly_b_f_j_statistics_for_environmental_science_and_managem

.pdf
Скачиваний:
11
Добавлен:
19.11.2019
Размер:
5 Мб
Скачать
☆

266 Statistics for Environmental Science and Management, Second Edition

assumptions but use the data more efficiently. As to whether or not it is reasonable to assume a normal distribution, this depends very much on the circumstances. Some types of data are almost always normal or nearly normal. For example, measurements of lengths of body parts for animals and plants fall in this category. In other cases, a simple data transformation, such as taking logarithms, will change a nonnormal distribution into a normal one.

The following is a brief summary of some of the most commonly used tests of significance. The book by Kanji (1999) covers just about any test that is likely to be used, with example calculations. However, in practice, the easiest way to do these things is by using one of the standard statistical computer packages.

A1.4.1  The One-Sample t-Test

The purpose of this test is to see whether the mean of a random sample of n values from a population is significantly different from some hypothetical value μ. The sample mean and standard deviation (x and s) are used to calculate the statistic

t = (x − μ)/(s/√n)

As noted in Section A1.3, if the population mean is really μ, then this follows the t-distribution with n − 1 df. Hence the significance of the sample result can be tested by seeing whether the observed statistic is a reasonable value from this distribution. This test requires the assumption that the population being sampled is normally distributed.

A1.4.2  The One-Sample Chi-Squared Test

This test is used to see whether a set of sample counts is in reasonable agreement with the frequencies expected on the basis of some hypothesis. The test statistic is

χ2 =∑(O −E)2/E

where O is an observed frequency, E is an expected frequency, and the summation is over all such frequencies. If the differences between the observed and expected frequencies are merely due to sampling errors, then the test statistic will be approximately a random value from the chi-squared distribution with n − 1 df. A significantly large value for the test statistic in comparison with the chi-squared distribution is evidence that the basis for calculating the expected frequencies is not correct. It is important to remember that the chi-squared test is only valid with count data. It is, for example, quite wrong to use this test with percentages. Also, the use of the chi-squared distribution requires that the expected frequencies are not too small, with most being at least five. For more details about this test, see Kanji (1999, test 37).

Some Basic Statistical Methods

267

A1.4.3  The Contingency-Table Chi-Squared Test

A contingency table is obtained when N observations are classified on the basis of two different criteria, and a count is made of the number of observations Oij that fall into the ith class for the first criterion of classification (row i of the table) and the jth class for the second criterion of classification (column j of the table). This is done for all values of i and j. For example, a 2 × 3 contingency table is produced if 100 streams are classified as being either in the north or the south of a region (the two row categories) and as having low, medium, or high pollution (the three column categories).

The contingency-table chi-squared test is designed to see whether there is any evidence that the two classifications are related, i.e., whether the probability of a sample unit being in class i for the first classification varies according to which of the classes the unit is in for the second classification. On the null hypothesis that the classifications are unrelated, it can be shown that the expected count for the cell in row i and column j of the table is Eij = RiCj/N, where Ri is the total observed count in row i and Cj is the total observed count in column j. The test statistic is then

χ2 =∑i ∑j (Oij −Eij )2/Eij

where the double summation means adding over all the rows and columns in the table. If the null hypothesis of independent classifications is true, then this statistic will be approximately a random value from the chi-squared distribution with (r − 1)(c − 1) df, where r is the number of rows and c is the number of columns in the table. A significantly large value for the test statistic in comparison with the chi-squared distribution is evidence against the null hypothesis. As for the one-sample chi-squared test, the expected frequencies should not be too small when this test is used. Preferably, they should all be five or more. For more details about this test, see Kanji (1999, test 44).

A1.4.4  The Paired t-Test

This is used when the data are naturally paired. The null hypothesis being tested is that the differences between paired values have a particular mean value μd, which is often zero. The test statistic is

t = (d − μd)/(sd/√n)

where d is the mean, and sd is the standard deviation of the sample differences. This statistic is compared with the t-distribution with n − 1 df. The test requires the assumption that the paired differences are normally distributed. Essentially, it is just the one-sample t-test calculated on differences, with a null hypothesis mean of zero.

268 Statistics for Environmental Science and Management, Second Edition

A1.4.5  The Two-Sample t-Test

This is designed to test whether the difference between the means of two independent samples are significantly different. The test statistic is

t = (x1 − x2)/[sp√(1/n1 + 1/n2)]

where sample 1, of size n1, has a of mean x1, and sample 2, of size n2, has a mean x2. Also,

sp2 = [(n1 − 1)s12 + (n2 − 1)s22]/(n1 + n2 − 2)

is an estimate of variance based on pooling the variances, s12 and s22, for the two samples. To assess the significance of the sample mean difference, the calculated t-value is compared with the critical values in the t-table with n1 + n2 − 2 df. This test assumes that the two distributions being sampled are normal with the same standard deviation. For more details, see Kanji (1999, test 8). Test 9 in the same book also contains a variation on this test for situations where the distributions do not have the same standard deviation.

A1.4.6  The Wilcoxon Signed-Ranks Test

This is a nonparametric alternative to the paired t-test. It is based on ranking the differences between two measurements and using sums of positive and negative ranks as test statistics. This test does not require a normal distribution for the differences. For more details see Kanji (1999, test 48).

A1.4.7  The Mann-Whitney U-Test

This is a nonparametric alternative to the two-sample independent t-test, which tests whether the two samples come from distributions with the same mean on the assumption that the distributions have the same shape. To use this test, it is only necessary to be able to rank the data in order for the two samples combined, and no assumption of normality is required. For more details see Kanji (1999, test 52).

Example A1.1:  Testing the Mean Level of TcCB at a Site

As an example of a test of significance, consider the data in Table A1.1 on measurements of 1,2,3,4-tetrachlorobenzene (TcCB) from n = 47 different locations at a particular site. Suppose that a mean level of 0.5 is considered to be acceptable, and the question is whether the mean at this site is significantly higher than 0.5. A one-sample t-test is used to answer this question.

Following the framework of steps 1–6 defined in Section A1.4, the following results are obtained:

Some Basic Statistical Methods

269

1.The null hypothesis to be tested is that μ = 0.5, where μ is the mean level of TcCB over the entire site.

2.The alternative of interest to the null hypothesis that needs to be detected is that μ exceeds 0.5.

3.The test statistic used is t = (x − 0.5)/(s/√n) from equation (A1.4) because the data appear to follow a distribution that is reasonably close to normal (Figure A1.2), and this statistic measures the difference between the sample mean and the hypothetical mean of 0.5.

4.The distribution of the test statistic is a t-distribution with 46 df if the null hypothesis is true.

5.For the observed data, the mean is x = 0.599 and the standard deviation is s = 0.284. The test statistic is therefore

t = (0.599 − 0.5)/(0.284/√47) = 2.39

6.The presence of only positive values for the test statistic indicates that the mean of the site is higher than 0.5. Hence it is necessary to find the probability, p, of obtaining a mean as large as, or larger than, 2.39 for the t-distribution with 46 df. To this end, Table A2.2 in Appendix 2 can be consulted. This does not have a row for 46 df, but it does show that, with 40 df, the probability of a value as large as or larger than 2.39 is between 0.025 and 0.01, and that with 60 df the probability is 0.01. It follows that the probability of a value as large as or larger than 2.39, with 46 df, is about p = 0.02.

7.As the p-value is less than 0.05, it is significant at the 5% level, giving some evidence against the null hypothesis. It appears that the mean for the site is higher than 0.5.

These days, probabilities for the t-distribution are provided in spreadsheet programs. It is therefore easy enough to determine the p-value accurately for a test like this, although that is not really necessary. The exact probability of a value from the t-distribution with 46 df equaling or exceeding 2.39 is, in fact, p = 0.0105.

A1.5  Confidence Intervals

Confidence limits for a parameter of a distribution give a range within which the parameter is expected to lie. For example, a 90% confidence limit for a distribution mean defines a range, which is called a confidence interval, within which the mean is expected to lie 90% of the time, in the sense that if many such intervals are calculated, then about 90% of them will contain the true value of the parameter.

As an example of what this means, suppose that a random sample of size 20 is taken from a normal distribution with an unknown mean μ. Then it is known that

270 Statistics for Environmental Science and Management, Second Edition

t = (x − μ)/(s/√n)

will be a random value from the t-distribution with 19 df. For this distribution, Table A2.2 in Appendix 2 shows that

Prob(t > 1.729) = 0.05

and, as the distribution is symmetrical about zero, it is also true that

Prob(t < −1.729) = 0.05.

Hence, if it is asserted that

−1.729 < (x − μ)/(s/√n) < 1.729

(A1.7)

then this statement will be true with probability 1 − 2(0.05) = 0.9. Rearranging the left-hand side of this equation shows that

−1.729 < (x − μ)/(s/√n)

is equivalent to

μ < x + 1.729(s/√n).

Similarly, rearranging the right-hand side shows that it is equivalent to

x − 1.729(s/√n) < μ.

Thus equation (A1.7) is exactly equivalent to

x − 1.729(s/√n) < μ < x + 1.729(s/√n).

(A1.8)

Since equation (A1.7) is true with probability 0.9, equation (A1.8) must be true with the same probability. In this sense, equation (A1.8) gives a 90% confidence interval for the true population mean.

This argument can easily be generalized for a random sample of size n from a normal distribution to give a 100(1 − α)% confidence interval for the mean of the distribution of the form

x − tα/2,n−1(s/√n) < μ < x + tα/2,n−1(s/√n)

(A1.9)

where tα/2,n−1 is the value that is exceeded with probability α/2 by a random value from the t-distribution with n − 1 df.

The confidence interval in equation (A1.9) is one of many that can be derived for a parameter of a distribution, using a similar type of argument.

Some Basic Statistical Methods

271

A confidence interval is a range within which a parameter will lie with a certain defined probability.

Example A1.2:  A Confidence Interval for the Mean TcCB at a Site

Considering again the data in Table A1.1, suppose that there is interest in determining a 95% confidence interval for the mean level of 1,2,3,4-tetra- chlorobenzene at the site in question. The mean and standard deviation for the sample of size n = 47 are x = 0.599 and s = 0.284, respectively, and the critical value of the t-distribution with 46 df that is exceeded with

probability α/2 = 0.025 is t0.025,46 = 2.01 from Table A2.2 in Appendix 2. Hence the 95% confidence interval given by equation (A1.9) is

0.599 − 2.01(0.284/√47) < μ < 0.599 + 2.01(0.284/√47)

i.e.,

0.516 < μ < 0.682

A1.6  Covariance and Correlation

Suppose that a random sample of size n from a large population of items is taken, and two variables X and Y are measured on each of the sampled items. Let the values of X and Y on the ith sampled item be xi and yi, respectively.

One sample statistic that is used to measure the relationship between X and Y is the covariance

n

 

cxy =∑(xi −x)(yi −y)/(n −1)

(A1.10)

i=1

where x and y are the sample means for X and Y, respectively. If large values of X tend to occur with large values of Y, then cxy will be positive. Conversely, if large values of X tend to occur with small values of Y, then cxy will be negative.

Covariances as defined by equation (A1.10) are used in many statistical procedures, but they have a disadvantage in that there is no simple way to judge whether a particular value for cxy indicates that X and Y are closely related. Therefore, for many purposes, the covariance is adjusted so that it becomes the covariance between X and Y after both variables have been scaled to have sample standard deviations of exactly 1. The resulting statistic is then referred to as the sample correlation, or sometimes as Pearson’s correlation coefficient, which can be shown to be the same as

rxy = cxy/(sx sy)

(A1.11)

272 Statistics for Environmental Science and Management, Second Edition

Correlation = –0.9

2

1

 

 

 

 

 

Y 0

 

 

 

 

 

–1

 

 

 

 

 

–2

–2

–1

0

1

2

–3

Correlation = 0.0

3

2

Y

1

0

–1

–2

–3 –2 –1 0 1 2

Correlation = 0.9

3

2

1

Y–01 –2 –3 –4

–3 –2 –1 0 1 2 X

Correlation = –0.5

 

3

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

–1

 

 

 

 

 

 

3

–2–3

–2

–1

0

1

2

3

Correlation = 0.5

 

3

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

–1

 

 

 

 

 

 

 

–2

 

 

 

 

 

 

3

–3

–2

–1

0

1

2

3

–3

X

3

Figure A1.7

Examples of samples of size n = 25 with different levels of correlation between variables X and Y.

where sx and sy are the sample standard deviations for X and Y, as defined by equation (A1.2).

Values of rxy range from −1 (a perfect negative linear relationship between X and Y), through 0 (no linear relationship), to +1 (a perfect positive linear relationship). Figure A1.7 shows plots of Y values against X values for samples of size n = 25 giving various levels for the correlation.

Appendix 2

Statistical Tables

Table A2.1

Standard Normal Distribution

z

0.00

0.01

0.02

0.03

0.04

0.05

0.06

0.07

0.08

0.09

 

 

 

 

 

 

 

 

 

 

 

0.0

0.000

0.004

0.008

0.012

0.016

0.020

0.024

0.028

0.032

0.036

0.1

0.040

0.044

0.048

0.052

0.056

0.060

0.064

0.068

0.071

0.075

0.2

0.079

0.083

0.087

0.091

0.095

0.099

0.103

0.106

0.110

0.114

0.3

0.118

0.122

0.126

0.129

0.133

0.137

0.141

0.144

0.148

0.152

0.4

0.155

0.159

0.163

0.166

0.170

0.174

0.177

0.181

0.184

0.188

0.5

0.192

0.195

0.199

0.202

0.205

0.209

0.212

0.216

0.219

0.222

0.6

0.226

0.229

0.232

0.236

0.239

0.242

0.245

0.249

0.252

0.255

0.7

0.258

0.261

0.264

0.267

0.270

0.273

0.276

0.279

0.282

0.285

0.8

0.288

0.291

0.294

0.297

0.300

0.302

0.305

0.308

0.311

0.313

0.9

0.316

0.319

0.321

0.324

0.326

0.329

0.332

0.334

0.337

0.339

1.0

0.341

0.344

0.346

0.349

0.351

0.353

0.355

0.358

0.360

0.362

1.1

0.364

0.367

0.369

0.371

0.373

0.375

0.377

0.379

0.381

0.383

1.2

0.385

0.387

0.389

0.391

0.393

0.394

0.396

0.398

0.400

0.402

1.3

0.403

0.405

0.407

0.408

0.410

0.412

0.413

0.415

0.416

0.418

1.4

0.419

0.421

0.422

0.424

0.425

0.427

0.428

0.429

0.431

0.432

1.5

0.433

0.435

0.436

0.437

0.438

0.439

0.441

0.442

0.443

0.444

1.6

0.445

0.446

0.447

0.448

0.450

0.451

0.452

0.453

0.454

0.455

1.7

0.455

0.456

0.457

0.458

0.459

0.460

0.461

0.462

0.463

0.463

1.8

0.464

0.465

0.466

0.466

0.467

0.468

0.469

0.469

0.470

0.471

1.9

0.471

0.472

0.473

0.473

0.474

0.474

0.475

0.476

0.476

0.477

2.0

0.477

0.478

0.478

0.479

0.479

0.480

0.480

0.481

0.481

0.482

2.1

0.482

0.483

0.483

0.483

0.484

0.484

0.485

0.485

0.485

0.486

2.2

0.486

0.486

0.487

0.487

0.488

0.488

0.488

0.488

0.489

0.489

2.3

0.489

0.490

0.490

0.490

0.490

0.491

0.491

0.491

0.491

0.492

2.4

0.492

0.492

0.492

0.493

0.493

0.493

0.493

0.493

0.493

0.494

2.5

0.494

0.494

0.494

0.494

0.495

0.495

0.495

0.495

0.495

0.495

2.6

0.495

0.496

0.496

0.496

0.496

0.496

0.496

0.496

0.496

0.496

2.7

0.497

0.497

0.497

0.497

0.497

0.497

0.497

0.497

0.497

0.497

2.8

0.497

0.498

0.498

0.498

0.498

0.498

0.498

0.498

0.498

0.498

2.9

0.498

0.498

0.498

0.498

0.498

0.498

0.499

0.499

0.499

0.499

3.0

0.499

0.499

0.499

0.499

0.499

0.499

0.499

0.499

0.499

0.499

Note: The entries in the table give the probability of a standard normal variable Z having a value between zero and z. The rows of the table are for the first decimal place of z, and the columns are for the second decimal place. For example, Prob(0 < Z < 1.56) = 0.441, using the row for 1.5 and the column for 0.06.

273

274 Statistics for Environmental Science and Management, Second Edition

Table A2.2

Critical Values for the t-Distribution

 

 

Upper Tail Probability

 

df

0.050

0.025

0.010

0.005

 

 

 

 

 

    1

6.314

12.706

31.821

63.657

    2

2.920

4.303

6.965

9.925

    3

2.353

3.182

4.541

5.841

    4

2.132

2.776

3.747

4.604

    5

2.015

2.571

3.365

4.032

    6

1.943

2.447

3.143

3.708

    7

1.895

2.365

2.998

3.500

    8

1.860

2.306

2.897

3.355

    9

1.833

2.262

2.821

3.250

  10

1.812

2.228

2.764

3.169

  11

1.796

2.201

2.718

3.106

  12

1.782

2.179

2.681

3.055

  13

1.771

2.160

2.650

3.012

  14

1.761

2.145

2.625

2.977

  15

1.753

2.132

2.603

2.947

  16

1.746

2.120

2.584

2.921

  17

1.740

2.110

2.567

2.898

  18

1.734

2.101

2.552

2.878

  19

1.729

2.093

2.540

2.861

  20

1.725

2.086

2.528

2.845

  21

1.721

2.080

2.518

2.831

  22

1.717

2.074

2.508

2.819

  23

1.714

2.069

2.500

2.807

  24

1.711

2.064

2.492

2.797

  25

1.708

2.060

2.485

2.787

  26

1.706

2.056

2.479

2.779

  27

1.703

2.052

2.473

2.771

  28

1.701

2.048

2.467

2.763

  29

1.699

2.045

2.462

2.756

  30

1.697

2.042

2.457

2.750

  40

1.684

2.021

2.423

2.705

  60

1.671

2.000

2.390

2.660

120

1.658

1.980

2.358

2.617

Inf

1.645

1.960

2.326

2.576

Note: The entries in the table give the critical values that are exceeded with probabilities of 0.05, 0.025, 0.01, and 0.005 by random values from t-distributions with different numbers of degrees of freedom (df). For example, if T has a t-distribution with 12 df, then Prob(T > 2.179) = 0.025.

Statistical Tables

275

Table A2.3

Critical Values for the Chi-Squared Distribution

 

 

 

Upper Tail Probability

 

 

df

0.1

0.05

0.025

0.01

0.005

0.001

 

 

 

 

 

 

 

    1

2.71

3.84

5.02

6.64

7.88

10.83

    2

4.61

5.99

7.38

9.21

10.60

13.82

    3

6.25

7.82

9.35

11.35

12.84

16.27

    4

7.78

9.49

11.14

13.28

14.86

18.47

    5

9.24

11.07

12.83

15.09

16.75

20.52

    6

10.65

12.59

14.45

16.81

18.55

22.46

    7

12.02

14.07

16.01

18.48

20.28

24.32

    8

13.36

15.51

17.54

20.09

21.96

26.13

    9

14.68

16.92

19.02

21.67

23.59

27.88

  10

15.99

18.31

20.48

23.21

25.19

29.59

  11

17.28

19.68

21.92

24.73

26.76

31.26

  12

18.55

21.03

23.34

26.22

28.30

32.91

  13

19.81

22.36

24.74

27.69

29.82

34.53

  14

21.06

23.69

26.12

29.14

31.32

36.12

  15

22.31

25.00

27.49

30.58

32.80

37.70

  16

23.54

26.30

28.85

32.00

34.27

39.25

  17

24.77

27.59

30.19

33.41

35.72

40.79

  18

25.99

28.87

31.53

34.81

37.16

42.31

  19

27.20

30.14

32.85

36.19

38.58

43.82

  20

28.41

31.41

34.17

37.57

40.00

45.32

  21

29.62

32.67

35.48

38.93

41.40

46.80

  22

30.81

33.92

36.78

40.29

42.80

48.27

  23

32.01

35.17

38.08

41.64

44.18

49.73

  24

33.20

36.42

39.36

42.98

45.56

51.18

  25

34.38

37.65

40.65

44.31

46.93

52.62

  26

35.56

38.89

41.92

45.64

48.29

54.05

  27

36.74

40.11

43.20

46.96

49.65

55.48

  28

37.92

41.34

44.46

48.28

50.99

56.89

  29

39.09

42.56

45.72

49.59

52.34

58.30

  30

40.26

43.77

46.98

50.89

53.67

59.70

  40

51.81

55.76

59.34

63.69

66.77

73.41

  50

63.17

67.51

71.42

76.15

79.49

86.66

  60

74.40

79.08

83.30

88.38

91.96

99.62

  70

85.53

90.53

95.02

100.42

104.21

112.31

  80

96.58

101.88

106.63

112.33

116.32

124.84

  90

107.57

113.15

118.14

124.12

128.30

137.19

100

118.50

124.34

129.56

135.81

140.18

149.48

Note: The entries in the table give the critical values that are exceeded with probabilities of 0.1, 0.05, 0.025, 0.01, 0.005, and 0.001 by random values from chi-squared distributions with different numbers of degrees of freedom (df). For example, if χ² has 4 df, then Prob(χ² > 9.49) = 0.05.