Docsity

Statistics: Sampling and Probability Distributions, Study Guides, Projects, Research of Experimental Design

Partial preview of the text

Download Statistics: Sampling and Probability Distributions and more Study Guides, Projects, Research Experimental Design in PDF only on Docsity!

Experimental Design and Data

Interpretation: The Use of

Statistics

ENVE 569

Environmental Risk Assessment

Data are not merely numbers but

numbers with a context or

meaning

Introduction to Statistics and Data Analysis

  • “One important use of statistics is in the interpretation of

experimental results.

  • The first step in such an examination is the study of the

experiment on which the conclusions were based.

  • By understanding and applying the principles of

experimental design, a decision can be made regarding

the validity of the study under question.

  • The problem of design deals with how to plan the

experiment to answer specific questions.”

Introduction to Statistics and Data Analysis

  • Units of measurement must be chosen with care. THIS

TEXT uses the following units:

  • Solution concentrations are reported as g/m 3 or g/L (where a liter is 0.001 m 3 or approximately 1 qt).
  • Toxicological doses will be cited as g/kg.
  • Air concentrations are routinely reported on a mol/mol basis. This cancels the effect of declining air density with altitude. Conversion equation between g/m 3 and mol/mol:
  • Pressure is the force exerted per unit area fo surface where force equals mass (kg) times acceleration (m/s 2 ).

22.4x 10 m /mol

[air concentration(mol/mol)][molwt(g/mol)]

m

g

Introduction to Statistics and Data Analysis

  • Simple random sample – any sample of a specified number of units from a population has the same chance of being selected as any other sample of the same size. - Problem of biased sampling.
  • Experimental design often involves the invocation of treatments or treatment combinations. - These treatments become the populations to be studied. - Completely randomized design is one method of ensuring adequate sample design (e.g., drug testing), but has complexities to be addressed. Medicine working or not working may depend on uncontrolled factors.
  • Variability will camouflage scientific results.
  • Sample Mean (centroid of the data – balance of weights on either side)
  • Sample Median (central tendency of the sample – not as influenced by extreme values or outliers) - If n is an odd number: If n is an even number:

−

n

i

i

n

x

x

1

( 1 )/ 2

x = xn +

~ x (^) = xn / 2 + xn / 2 + 1

Introduction to Statistics and Data Analysis

  • Sample means and medians used to draw inferences about the underlying population.
  • Measures of location and especially of central tendency do not provide a proper summary of the data set.
  • Sample range Range = Xmax – Xmin
  • Sample Variance (units of measurement squared)
  • Sample Standard Deviation (units of measurement)
  • Frequency Distribution: groups the data into different classes.
  • Symmetry
    • Symmetric distributions can be folded along a vertical axis so that the two sides coincide.
    • Otherwise, the distribution is said to be skewed.

n

i

i

n

x x

s

1

2 2

2

s = s

Definitions

  • Observation – any recording of information, whether it be numerical or categorical
  • Experiment – any process that generates a set of data
  • We are particularly interested in the observations obtained by repeating the experiment several times.
  • Sample Space – set of all possible outcomes of a statistical experiment
  • [denoted: S (of a coin toss) = {H,T}]
  • Sample Point, Element, Member – each outcome in the sample space
  • Inside the {} are all elements of a sample space or a description of them
  • More than one sample space can be used to describe the outcomes of an experiment.
  • Event – subset of sample space
  • Null Set – set that contains no elements [denoted by the symbol Ø].

Definitions

  • Complement (of an event) – subset of all elements in sample space that are not part of the event (denoted by apostrophe after event name)
  • Intersection – event that contains the elements that are common to two or more sample spaces - [denoted: Event = (A ∩ B)]
  • Mutually Exclusive Sample Spaces – occurs when the intersection of the sample paces is the null set (A ∩ B = Ø) - Also called disjoint.
  • Union – event that contains all elements that are in at least one sample space (belong to either A or B or to both) - [denoted: Event = (A U B)
  • Generalized Multiplication Rule:
    • If an operation can be performed in n 1 ways, and if for each of these a second operation can be performed in n 2 ways, and for each of the first two a third operation can be performed in n 3 ways, and so forth, then the sequence of k operations can be performed in n 1 n 2 …nk ways.
  • Permutation – an arrangement of all or part of a set of objects.
    • Number of Permutations of n distinct objects = n!

Continuous Probability Distributions

Areas Under the Normal Curve

  • The area under the curve bounded by the two ordinates x = x 1 and x = x 2 equals the probability that the random variable X assumes a value between x = x 1 and x = x 2.
  • The function is very difficult to solve by integration. Therefore, tables are available to aid in the calculation.
  • Transform all the observations of any normal random variable X to a new set of observations of a normal random variable Z with mean zero and variance 1. The transformation is:
  • Standard normal distribution – distribution of a random variable with mean zero and variance 1.
  • Now have 1 table which indicates areas under the standard normal curve corresponding to P(Z < z) for values of z ranging from -3.49 to 3.49.

σ

X

Z

Continuous Probability Distributions

Example:

  • Given a random variable X having a normal distribution with μ = 50 and σ = 10, find the probability that X assumes a value between 45 and 62.
  • The z-values corresponding to x 1 = 45 and x 2 = 62 are:

P(45 < X < 62) = P(-0.5 < Z < 1.2) = P(Z < 1.2) – P(Z < -0.5) = 0.8849 – 0.3085 = 0.

Example:

  • Given that X has a normal distribution with μ = 300 and σ = 50, find the probability that X assumes a value greater than 362.
  • Need to evaluate the area under the normal curve for x = 362. The transform is:

P(X > 362) = P(Z > 1.24) = 1 – P(Z < 1.24) = 1 – 0.8925 = 0.

  1. 2 10

62 50

  1. 5 10

45 50

2

1

=

−

=− − = − =

z

x z σ

μ

  1. 24 50

362 300

− z =

Continuous Distributions: Student’s t-Distribution

  • It has been assumed that the population standard deviation is known. However, neither μ or σ^2 may be known (may have to be approximated by the sample mean and sample variance s 2.
  • An estimate of σ may have to be supplied by the same sample information that produced the sample average. As a result, the statistic to consider to deal with inferences on μ is:
  • The exact statistic has a t-distribution with υ = n – 1 degrees of freedom.
  • This distribution is often called the Student’s t-distribution.
  • The distribution of T is similar to the distribution of Z in that they are both symmetric around a mean of zero. Both distributions are bell-shaped, but the t-distribution is more variable, owing to the fact that the T-values depend on the fluctuations of the two quantities, and S 2 ..

n

S

X

T

X

x

Continuous Distributions: Student’s t-Distribution

Example:

  • A drug manufacturer claims that the population mean yield of a certain batch process is 500 grams per milliliter of raw material. To check this claim he samples 25 batches each month. If the computed t-value falls between –t0.05 and t0.05, he is satisfied with his claim. What conclusion should he draw from a sample that has a mean of = 518 grams per milliliter and a sample standard deviation s = 40 grams?
  • Assume the distribution of yields to be approximately normal.
  • From the table, t0.05 = 1.711 for 24 degrees of freedom.
  • Therefore, the manufacturer is satisfied with his claim if a sample of 25 batches yields a t-value between –1.711 and 1.711. If μ = 500, then
  • This value is well above 1.711. The probability of obtaining a t-value with υ = 24, equal to or greater than 2.25 is approximately 0.02. If μ > 500, the value of t computed from the sample is likely to be more reasonable. Hence the manufacturer is likely to conclude that the process produces a better product that he thought.

S n

X

T

One and Two-Sample Estimation

Interpretation of Interval Estimates

  • From the sampling distribution of , we can determine such that

P( ) is equal to any positive fractional value that we care to specify. If, for instance, we find such that:

P( ) = 1 – α

  • For 0 < α < 1, then we have a probability of 1 – α of selecting a random sample that will produce an interval containing θ.
  • The interval , computed from the selected sample is then called a ( - α)100% confidence interval , the fraction 1 – α is called the confidence coefficient or the degree of confidence , and the endpoints, , are called the lower and upper confidence limits.
  • The wider the confidence interval is, the more confident we can be that the given interval contains the unknown parameter. Ideally, prefer a short interval with a high degree of confidence.
  • NOTE: Point and interval estimation represent different approaches to gain information regarding a parameter.

^ ^ θ L <θ< θ U

^ ^

θ L <θ< θ U

^

^ ^

θ L and θ U

^ ^ θ L <θ< θ U

Single Sample: Estimating the Mean

  • If is the mean of a random sample of size n from a population with known variance σ^2 , a (1 – α)100% confidence interval for μ is given by:
  • For small samples selected from nonnormal populations, we cannot expect our degree of confidence to be accurate.
  • However, for samples of size n ≥ 30, regardless of the shape of most populations, sampling theory guarantees good results.

n

x z

n

x z

σ μ

σ

x

Single Sample: Estimating the Mean

• If is the mean of a random sample of size n from a

population with known variance σ^2 , a

(1 – α)100% confidence interval for μ is given by:

• For small samples selected from nonnormal

populations, the degree of confidence may not be

accurate. However, for samples of size n ≥ 30,

regardless of the shape of most populations,

sampling theory guarantees good results.

n

x z

n

x z

Single Sample: Estimating the Mean

  • If is used as an estimate of μ, we can then be (1 – α)100%

confident that the error will not exceed:

  • If is used as an estimate of μ, we can be (1 – α)100%

confident that the error will not exceed a specified amount e

when the sample size is:

  • When solving for the sample size, n, all fractional values are

rounded up to the next whole number. By adhering to this

principle, we can be sure that our degree of confidence

never falls below (1 – α)100%.

x

n

z α / 2 σ

x

2 / 2

e

z

n

α^ σ

Single Sample: Estimating the Mean

Example:

  • The contents of 7 similar containers of sulfuric acid are 9.8, 10.2, 10.4, 9.8, 10.0, 10.2 and 9.6 liters. Find a 95% confidence limit for the mean of all such containers, assuming an approximate normal distribution.
  • The sample mean and standard deviation for the given data are:
  • Using Table A.4, we find t (^) 0.025 = 2.447 for υ = 6 degrees of freedom.
  • Hence the 95% confidence interval for μ is:
  1. 283

  2. 0

=

=

s

x

/ 2 / 2

μ

μ

α μ^ α n

s x t n

s x t

Single Sample: Estimating the Mean

  • A rather sharp distinction exists between the goals of

point estimates and confidence interval estimates.

  • The former supplies a single number extracted from a

set of experimental data, and the latter provides an

interval given the experimental data that is reasonable

for the parameter; that is, 100(1 – α)% of such computed

intervals “cover” the parameter.

  • These two approaches to estimation are related to each

other. The “common thread” is the sampling distribution

of the point estimator.

Single Sample: Estimating the Mean

  • The standard deviation of or standard error of is

Simply put, the standard error of an estimator is its standard

deviation. For the case of , the computed confidence limit

for μ with σ known is:

  • The confidence interval for μ with σ unknown is:
  • The confidence interval is no better (in terms of width) than

the quality of the point estimate, in this case through its

estimated standard error. Computer packages often refer to

estimated standard errors merely as “standard errors.”

X X^ σ^ n

X

/ 2 x z / 2 s. e .( x^ ) n

x z α α

σ ± = ±

/ 2 x t / 2 s. e .( x^ )

n

s

x ± t α = ± α

Single Sample: Estimating the Mean

Prediction Interval

  • Sometimes, other than the population mean, the experimenter may be interested in predicting the possible value of a future observation. Thus, the confidence interval on the mean does not capture the requirement. The customer requires a statement regarding the uncertainty of one single observation.
  • This type of requirement is nicely fulfilled by the construction of a prediction interval.
  • Assume that the random sample comes from a normal population with unknown mean μ and known variance σ^2. A natural point estimator of a new observation is.
  • The variance of is σ^2 /n. However, to predict a new observation, not only do we need to account for the variation due to estimating the mean, but also we should account for the variation of the future observations.

X

X

Single Sample: Estimating the Mean

Outlier Detection

  • One methodology for outlier detection involves the rule that an

observation is an outlier if it falls outside the prediction interval

computed without inclusion of the questionable observation in the

sample.

Distinction Among Confidence Intervals, Prediction Intervals,

and Tolerance Intervals

  • In real life applications, these intervals are NOT interchangeable

because their interpretations are quite distinct.

  • Confidence Interval – attentive to population means by

themselves. Interested in population mean.

  • Tolerance Limits – confidence interval on the middle 1 – α % of

the corresponding normal distribution. Interested in the location of

the majority of the population.

  • Prediction Limits – important when determining the bounds on a

single value. The mean is not the issue and neither is the location

of the majority of the population.

Two Samples: Estimating Difference Between Two

Means

  • Two populations with means μ 1 and μ 2 and variances σ 12 and σ 22 , respectively, the point estimator of the difference between μ 1 and μ 2 is given by the statistic . Therefore, to obtain a point estimate of μ 1 – μ 2 , we shall select two independent random samples, one from each population, of size n 1 and n 2 , and compute the difference , of the sample means.
  • Confidence Interval for μ 1 – μ 2 ; σ 12 and σ 22 Known
  • If and are means of independent random samples of size n 1 and n 2 from populations with known variances σ 12 and σ 22 , respectively, a (1 – α)100% confidence interval for μ 1 – μ 2 is given by:
  • where zα/2 is the z-value leaving an area of α/2 to the right.

X (^) 1 − X 2

x 1 (^) − x 2

x 1 x 2

( ) ( ) 2

2 2 1

2 1 1 2 1 2 / 2 2

2 2 1

2 1 1 2 / 2 n n

x x z n n

x x z

σ σ μ μ

σ σ − − α + < − < − + α +

Two Samples: Estimating Difference Between Two

Means

  • The Experimental Conditions and the Experimental Unit
  • It is assumed that we have two independent random

samples from distributions with means μ 1 and μ 2 ,

respectively. It is important that experimental conditions

emulate this “ideal” described the assumptions as closely as

possible.

  • If the “ideal” conditions are emulated as much as possible,

the experimenter will have a degree of insurance that

experimental units will not bias results if the conditions that

define the two populations are randomly assigned to the

experimental units.

Two Samples: Estimating Difference Between Two

Means

Interpretation of the Confidence Interval

  • For the case of a single parameter, the confidence interval simply produces error bounds on the parameter.
  • Values contained in the interval should be viewed as reasonable values given the experimental data.
  • In the case of a difference between two means, the interpretation can be extended to one of comparing the two means. - For example, if we have a high confidence that a difference μ 1 – μ 2 is positive, we would certainly infer that μ 1 > μ 2.
  • Equal Sample Sizes
  • The procedure for constructing confidence intervals for μ 1 – μ 2 with σ 1 = σ 2 = σ unknown requires the assumption that the populations are normal.
  • Slight departures from either the equal variance or normality assumption do not seriously alter the degree of confidence for our interval.
  • If the population variances are considerably different, we still obtain reasonable results when the populations are normal, provided that n 1 = n 2.
  • Therefore, in a planned experiment, one should make every effort to equalize the size of the samples.

One- and Two-Sample Tests of Hypotheses

The Null and Alternative Hypotheses

  • The structure of hypothesis testing will be formulated with

the use of the term null hypothesis. This refers to any

hypothesis we wish to test and is denoted by H 0. The

rejection of H 0 leads to the acceptance of an alternative

hypothesis, denoted by H 1.

  • A null hypothesis concerning a population parameter will

always be stated so as to specify an exact value of the

parameter, whereas the alternative hypothesis allows for the

possibility of several values. Hence, if H 0 is the null

hypothesis p = 0.05 for a discrete population, the alternative

hypothesis H 1 would be one of the following:

p < 0.5 p > 0.5 p ≠ 0.

One- and Two-Sample Tests of Hypotheses

Error Types

  • Type I Error – rejection of the null hypothesis when it is true
  • Type II Error – acceptance of the null hypothesis when it is false

Correct

Decision

Reject H 0 Type I Error

Correct Type II Error

Decision

Accept H 0

H 0 is true H 0 is false

One- and Two-Sample Tests of Hypotheses

Error Types

  • The probability of committing a Type I Error, also

called the Level of Significance, is denoted by the Greek letter α. Sometimes the Level of Significance is called the Size of the Test.

  • The probability of committing a Type II Error,

denoted by β, is impossible to compute unless we have a specific alternative hypothesis (the alternative hypothesis must set the test value against a specific value).

  • Ideally, we like to use a test procedure for which the

Type I and Type II Error probabilities are both small.

One- and Two-Sample Tests of Hypotheses

  • Relationship to Sample Size
  • For a fixed sample size, a decrease in the probability of one

error will usually result in an increase in the probability of the

other error.

  • Fortunately, the probability of committing both types of error can be reduced by increasing the sample size.
  • After the null and alternative hypotheses are stated, it is

important to consider the sensitivity of the test procedure.

  • By this, we mean that there should be a determination, for a

fixed α, of a reasonable value for the probability of wrongly

accepting H 0 (i.e., the value of β) when the true situation

represents some important deviation from H 0.

  • The value of the sample size can usually be determined for

which there is a reasonable balance between α and the

value β computed in this fashion.