Presentation is loading. Please wait.

Presentation is loading. Please wait.

Joint Probability Distributions and Random Samples

Similar presentations


Presentation on theme: "Joint Probability Distributions and Random Samples"— Presentation transcript:

1 Joint Probability Distributions and Random Samples
5 Copyright © Cengage Learning. All rights reserved.

2 5.3 Statistics and Their Distributions
Copyright © Cengage Learning. All rights reserved.

3 Statistics and Their Distributions
Consider selecting two different samples of size n from the same population distribution. The xi’s in the second sample will virtually always differ at least a bit from those in the first sample. For example, a first sample of n = 3 cars of a particular type might result in fuel efficiencies x1 = 30.7, x2 = 29.4, x3 = 31.1, whereas a second sample may give x1 = 28.8, x2 = 30.0, and x3 = 32.5. Before we obtain data, there is uncertainty about the value of each xi.

4 Statistics and Their Distributions
Because of this uncertainty, before the data becomes available we view each observation as a random variable and denote the sample by X1, X2, , Xn (uppercase letters for random variables). This variation in observed values in turn implies that the value of any function of the sample observations—such as the sample mean, sample standard deviation, or sample fourth spread—also varies from sample to sample. That is, prior to obtaining x1, , xn, there is uncertainty as to the value of , the value of s, and so on.

5 Example 5.20 Suppose that material strength for a randomly selected specimen of a particular type has a Weibull distribution with parameter values  = 2 (shape) and  = 5 (scale). The corresponding density curve is shown in Figure 5.7. The Weibull density curve for Example 19 Figure 5.7

6 Example 5.20 Formulas from Section 4.5 give, and where and
cont’d Formulas from Section 4.5 give, and where and  = E (x) = =  2 = V(X) =  = 2.316 The mean exceeds the median because of the distribution’s positive skew. We used statistical software to generate six different samples, each with n = 10, from this distribution (material strengths for six different groups of ten specimens each).

7 Example 5.20 The results appear in Table 5.1. cont’d
Samples from the Weibull Distribution of Example 19 Table 5.1

8 Example 5.20 cont’d Followed by the values of the sample mean, sample median, and sample standard deviation for each sample. Notice first that the ten observations in any particular sample are all different from those in any other sample. Second, the six values of the sample mean are all different from one another, as are the six values of the sample median and the six values of the sample standard deviation. The same is true of the sample 10% trimmed means, sample fourth spreads, and so on.

9 Example 5.20 cont’d Furthermore, the value of the sample mean from any particular sample can be regarded as a point estimate (“point” because it is a single number, corresponding to a single point on the number line) of the population mean , whose value is known to be None of the estimates from these six samples is identical to what is being estimated. The estimates from the second and sixth samples are much too large, whereas the fifth sample gives a substantial underestimate.

10 Example 5.20 cont’d Similarly, the sample standard deviation gives a point estimate of the population standard deviation. All six of the resulting estimates are in error by at least a small amount. In summary, the values of the individual sample observations vary from sample to sample, so will in general the value of any quantity computed from sample data, and the value of a sample characteristic used as an estimate of the corresponding population characteristic will virtually never coincide with what is being estimated.

11 Statistics and Their Distributions
Definition

12 Statistics and Their Distributions
Thus the sample mean, regarded as a statistic (before a sample has been selected or an experiment carried out), is denoted by ; the calculated value of this statistic is . Similarly, S represents the sample standard deviation thought of as a statistic, and its computed value is s. If samples of two different types of bricks are selected and the individual compressive strengths are denoted by X1, , Xm and Y1, , Yn, respectively, then the statistic , the difference between the two sample mean compressive strengths, is often of great interest.

13 Statistics and Their Distributions
Any statistic, being a random variable, has a probability distribution. In particular, the sample mean has a probability distribution. Suppose, for example, that n = 2 components are randomly selected and the number of breakdowns while under warranty is determined for each one. Possible values for the sample mean number of breakdowns are 0 (if X1 = X2 = 0), .5 (if either X1 = 0 and X2 = 1 or X1 = 1 and X2 = 0), 1, 1.5,

14 Statistics and Their Distributions
The probability distribution of specifies P( = 0), P( = .5), and so on, from which other probabilities such as P(1   3) and P(  2.5) can be calculated. Similarly, if for a sample of size n = 2, the only possible values of the sample variance are 0, 12.5, and 50 (which is the case if X1 and X2 can each take on only the values 40, 45, or 50), then the probability distribution of S2 gives P(S2 = 0), P(S2 = 12.5), and P(S2 = 50).

15 Statistics and Their Distributions
The probability distribution of a statistic is sometimes referred to as its sampling distribution to emphasize that it describes how the statistic varies in value across all samples that might be selected.

16 Random Samples

17 Random Samples The probability distribution of any particular statistic depends not only on the population distribution (normal, uniform, etc.) and the sample size n but also on the method of sampling. Consider selecting a sample of size n = 2 from a population consisting of just the three values 1, 5, and 10, and suppose that the statistic of interest is the sample variance. If sampling is done “with replacement,” then S2 = 0 will result if X1 = X2.

18 Random Samples However, S2 cannot equal 0 if sampling is “without replacement.” So P(S2 = 0) = 0 for one sampling method, and this probability is positive for the other method. Our next definition describes a sampling method often encountered (at least approximately) in practice.

19 Random Samples Definition

20 Random Samples Conditions 1 and 2 can be paraphrased by saying that the Xi’s are independent and identically distributed (iid). If sampling is either with replacement or from an infinite (conceptual) population, Conditions 1 and 2 are satisfied exactly. These conditions will be approximately satisfied if sampling is without replacement, yet the sample size n is much smaller than the population size N.

21 Random Samples In practice, if n/N  .05 (at most 5% of the population is sampled), we can proceed as if the Xi’s form a random sample. The virtue of this sampling method is that the probability distribution of any statistic can be more easily obtained than for any other sampling method. There are two general methods for obtaining information about a statistic’s sampling distribution. One method involves calculations based on probability rules, and the other involves carrying out a simulation experiment.

22 Deriving a Sampling Distribution

23 Deriving a Sampling Distribution
Probability rules can be used to obtain the distribution of a statistic provided that it is a “fairly simple” function of the Xi’s and either there are relatively few different X values in the population or else the population distribution has a “nice” form. Our next example illustrate such situation.

24 Example 5.21 A certain brand of MP3 player comes in three configurations: a model with 2 GB of memory, costing $80, a 4 GB model priced at $100, and an 8 GB version with a price tag of $120. If 20% of all purchasers choose the 2 GB model, 30% choose the 4 GB model, and 50% choose the 8 GB model, then the probability distribution of the cost X of a single randomly selected MP3 player purchase is given by with  = 106,  2 = 244 (5.2)

25 Example 5.21 cont’d Suppose on a particular day only two MP3 players are sold. Let X1 = the revenue from the first sale and X2 the revenue from the second. Suppose that X1 and X2 are independent, each with the probability distribution shown in (5.2) [so that X1 and X2 constitute a random sample from the distribution (5.2)].

26 Example 5.21 cont’d Table 5.2 lists possible (x1, x2) pairs, the probability of each [computed using (5.2) and the assumption of independence], and the resulting and s2 values. [Note that when n = 2, s2(x1 – )2(x2 – )2.] Outcomes, Probabilities, and Values of x and s2 for Example 20 Table 5.2

27 Example 5.21 cont’d Now to obtain the probability distribution of , the sample average revenue per sale, we must consider each possible value and compute its probability. For example, = 100 occurs three times in the table with probabilities .10, .09, and .10, so Px (100) = P( = 100) = = .29 Similarly, pS2(800) = P(S2 = 800) = P(X1 = 80, X2 = 120 or X1 = 120, X2 = 80) = = .20

28 Example 5.21 cont’d The complete sampling distributions of and S2 appear in (5.3) and (5.4). (5.3) (5.4)

29 Example 5.21 cont’d Figure 5.8 pictures a probability histogram for both the original distribution (5.2) and the distribution (5.3). The figure suggests first that the mean (expected value) of the distribution is equal to the mean 106 of the original distribution, since both histograms appear to be centered at the same place. Probability histograms for the underlying distribution and x distribution in Example 20 Figure 5.8

30 Example 5.21 From (5.3), = (80)(.04) + . . . + (120)(.25) = 106 = 
cont’d From (5.3), = (80)(.04) (120)(.25) = 106 =  Second, it appears that the distribution has smaller spread (variability) than the original distribution, since probability mass has moved in toward the mean. Again from (5.3), = (802)(.04) +    + (1202)(.25) – (106)2

31 Example 5.21 cont’d The variance of is precisely half that of the original variance (because n = 2). Using (5.4), the mean value of S2 is S2 = E(S2) =  S2  pS2(s2) = (0)(.38) + (200)(.42) + (800)(.20) =  2 That is, the sampling distribution is centered at the population mean , and the S2 sampling distribution is centered at the population variance  2.

32 Example 5.21 cont’d If there had been four purchases on the day of interest, the sample average revenue would be based on a random sample of four Xi’s, each having the distribution (5.2). More calculation eventually yields the pmf of for n = 4 as

33 Example 5.21 cont’d From this, x = 106 =  and = 61 =  2/4. Figure 5.8 is a probability histogram of this pmf. Probability histogram for based on n = 4 in Example 20 Figure 5.9

34 Example 5.21 cont’d Example 5.21 should suggest first of all that the computation of and can be tedious. If the original distribution (5.2) had allowed for more than three possible values, then even for n = 2 the computations would have been more involved. The example should also suggest, however, that there are some general relationships between E( ), V( ), E(S2), and the mean  and variance  2 of the original distribution.

35 Simulation Experiments

36 Simulation Experiments
The second method of obtaining information about a statistic’s sampling distribution is to perform a simulation experiment. This method is usually used when a derivation via probability rules is too difficult or complicated to be carried out. Such an experiment is virtually always done with the aid of a computer.

37 Simulation Experiments
The following characteristics of an experiment must be specified: 1. The statistic of interest ( , S, a particular trimmed mean, etc.) 2. The population distribution (normal with  = 100 and  = 15, uniform with lower limit A = 5 and upper limit B = 10,etc.) 3. The sample size n (e.g., n = 10 or n = 50) 4. The number of replications k (number of samples to be obtained)

38 Simulation Experiments
Then use appropriate software to obtain k different random samples, each of size n, from the designated population distribution. For each sample, calculate the value of the statistic and construct a histogram of the k values. This histogram gives the approximate sampling distribution of the statistic. The larger the value of k, the better the approximation will tend to be (the actual sampling distribution emerges as k  ). In practice, k = 500 or 1000 is usually sufficient if the statistic is “fairly simple.”

39 Simulation Experiments
The final aspect of the histograms to note is their spread relative to one another. The larger the value of n, the more concentrated is the sampling distribution about the mean value. This is why the histograms for n = 20 and n = 30 are based on narrower class intervals than those for the two smaller sample sizes. For the larger sample sizes, most of the values are quite close to This is the effect of averaging. When n is small, a single unusual x value can result in an value far from the center.

40 Simulation Experiments
With a larger sample size, any unusual x values, when averaged in with the other sample values, still tend to yield an value close to . Combining these insights yields a result that should appeal to your intuition: based on a large n tends to be closer to  than does based on a small n.


Download ppt "Joint Probability Distributions and Random Samples"

Similar presentations


Ads by Google