Presentation is loading. Please wait.

Presentation is loading. Please wait.

Basic concept Measures of central tendency Measures of central tendency Measures of dispersion & variability.

Similar presentations


Presentation on theme: "Basic concept Measures of central tendency Measures of central tendency Measures of dispersion & variability."— Presentation transcript:

1 Basic concept Measures of central tendency Measures of central tendency Measures of dispersion & variability

2 Measures of tendency central Arithmetic mean (= simple average ) summation measurement in population index of measurement Best estimate of population mean is the sample mean, X sample size

3 Measures of variability All describe how “spread out” the data are. All describe how “spread out” the data are. 1.Sum of squares, sum of squared deviations from the mean For a sample,

4 2. Average or mean sum of squares = variance, s 2 : For a sample, Why?

5 n – 1 represents the degrees of freedom,, or number of independent quantities in the estimate s 2. n – 1 represents the degrees of freedom,, or number of independent quantities in the estimate s 2. therefore, once n – 1 of all deviations are specified, the last deviation is already determined. Greek letter “nu”

6 3.Standard deviation, s For a sample, Variance has squared measurement units – to regain original units, take the square root …

7 4.Standard error of the mean For a sample, Standard error of the mean is a measure of variability among the means of repeated samples from a population. Standard error of the mean is a measure of variability among the means of repeated samples from a population.

8 Means of repeated random samples, each with sample size, n = 5 values … 14 15 14 12 13 16 12 14 15 A Population of Values

9 For a large enough number of large samples, the frequency distribution of the sample means (= sampling distribution), approaches a normal distribution. For a large enough number of large samples, the frequency distribution of the sample means (= sampling distribution), approaches a normal distribution.

10 Normal distribution: bell-shaped curve

11 Testing statistical hypotheses between 2 means Testing statistical hypotheses between 2 means 1.State the research question in terms of statistical hypotheses. We always start with a statement that hypothesizes “no difference”, called the null hypothesis = H 0.  E.g., H 0 : Mean bill length of female hummingbirds is equal to mean bill length of male hummingbirds, µ  =µ .

12 Then we formulate a statement that must be true if the null hypothesis is false, called the alternate hypothesis = H A. Then we formulate a statement that must be true if the null hypothesis is false, called the alternate hypothesis = H A.  E.g., H A : Mean bill length of female hummingbirds is not equal to mean bill length of male hummingbirds, µ   µ . If we reject H 0 as a result of sample evidence, then we conclude that H A is true.

13 2.Choose an appropriate statistical test that would allow you to reject H 0 if H 0 were false.

14 E.g., Student’s t test for hypotheses about means William Sealey Gosset (a.k.a. “Student”)

15 Is the difference between sample means bigger than we would expect, given the variability in the sampled populations?

16 Standard error of the difference between the sample means To estimate s (X 1 —X 2 ), we must first know the relation between both populations. Mean of sample 2 Mean of sample 1 t Statistic,

17 Relation between populations Dependent population Dependent population Independent population Independent population 1.Identical (homogenous ) variance 2.Not identical (heterogeneous) variance

18 Pooled variance: Pooled variance: Then, Independent Population with homogenous variances

19 3.Select the level of significance for the statistical test. Level of significance = alpha value =  = the probability of incorrectly rejecting the null hypothesis when it is, in fact, true.

20 Traditionally, researchers choose  = 0.05. Traditionally, researchers choose  = 0.05. 5 percent of the time, or 1 time out of 20, the statistical test will reject H 0 when it is true. Note: the choice of 0.05 is arbitrary!

21 4.Determine the critical value the test statistic must attain to be declared significant. Most test statistics have a frequency distribution …

22 When sample sizes are small, the sampling distribution is described better by the t distribution than by the standard normal (Z) distribution. When sample sizes are small, the sampling distribution is described better by the t distribution than by the standard normal (Z) distribution. Shape of t distribution depends on degrees of freedom, = n – 1.

23 Z = t ( =  ) t ( =25) t ( =1) t ( =5) t

24 The distribution of a test statistic is divided into an area of acceptance and an area of rejection. The distribution of a test statistic is divided into an area of acceptance and an area of rejection.

25 t Area of Rejection Area of Acceptance Area of Rejection Lower critical value Upper critical value 0 0.950.025 For  = 0.05

26 5.Perform the statistical test.  E.g., Mean bill length from a sample of 5 female hummingbirds, X 1 = 15.75;  Mean bill length from a sample of 5 male hummingbirds, X 2 = 14.25; 

27 6.Draw and state the conclusions. Compare the calculated test statistic with the critical test statistic at the chosen . Obtain the P-value = probability for the test statistic. Reject or fail to reject H 0.

28 Critical t for a test about equality = t  (2),

29  E.g., to test H 0 : µ  = µ , H A : µ   µ  at  = 0.05 using n  = 5, n  = 5, , if |t|  2.306, reject H 0. t  (2), = t 0.05(2),8 = 2.306.

30  Since calculated t > t 0.05(2),8 (because 3.000 > 2.306), reject H 0.  Conclude that hummingbird bill length is sexually size-dimorphic.

31  What is the probability, P, of observing by chance a difference as large as we saw between female and male hummingbird bill lengths?  0.01 < P < 0.02

32 Analysis of Variance Analysis of Variance(ANOVA)

33 What is ANOVA? ANOVA (Analysis of Variance) is a procedure designed to determine if the manipulation of one or more independent variables in an experiment has a statistically significant influence on the value of the dependent variable. ANOVA (Analysis of Variance) is a procedure designed to determine if the manipulation of one or more independent variables in an experiment has a statistically significant influence on the value of the dependent variable. It is assumed It is assumed Each independent variable is categorical (nominal scale). Independent variables are called Factors and their values are called levels.Each independent variable is categorical (nominal scale). Independent variables are called Factors and their values are called levels. The dependent variable is numerical (ratio scale)The dependent variable is numerical (ratio scale) The basic idea is that the “variance” of the dependent variable given the influence of one or more independent variables {Expected Sum of Squares for a Factor} is checked to see if it is significantly greater than the “variance” of the dependent variable (assuming no influence of the independent variables) {also known as the Mean-Square- Error(MSE)}. The basic idea is that the “variance” of the dependent variable given the influence of one or more independent variables {Expected Sum of Squares for a Factor} is checked to see if it is significantly greater than the “variance” of the dependent variable (assuming no influence of the independent variables) {also known as the Mean-Square- Error(MSE)}.

34 Analysis of Variance (ANOVA) can be used to test for the equality of three or more population means using data obtained from observational or experimental studies. Analysis of Variance (ANOVA) can be used to test for the equality of three or more population means using data obtained from observational or experimental studies. We want to use the sample results to test the following hypotheses. We want to use the sample results to test the following hypotheses. H 0 :  1 = 2 = 3 =... =  k  H a : Not all population means are equal If H 0 is rejected, we cannot conclude that all population means are different. If H 0 is rejected, we cannot conclude that all population means are different. Rejecting H 0 means that at least two population means have different values. Rejecting H 0 means that at least two population means have different values. Analysis of Variance

35 Assumptions for Analysis of Variance For each population, the response variable is normally distributed. For each population, the response variable is normally distributed. The variance of the response variable, denoted  2, is the same for all of the populations. The variance of the response variable, denoted  2, is the same for all of the populations. The effect of independent variable is additive The effect of independent variable is additive The observations must be independent. The observations must be independent.

36 Analysis of Variance: Testing for the Equality of K Population Means Between-Treatments Estimate of Population Variance Between-Treatments Estimate of Population Variance Within-Treatments Estimate of Population Variance Within-Treatments Estimate of Population Variance Comparing the Variance Estimates: The F Test Comparing the Variance Estimates: The F Test ANOVA Table ANOVA Table

37 A between-treatments estimate of σ 2 is called the mean square due to treatments (MSTR). A between-treatments estimate of σ 2 is called the mean square due to treatments (MSTR).  The numerator of MSTR is called the sum of squares due to treatments (SSTR). The denominator of MSTR represents the degrees of freedom associated with SSTR. The denominator of MSTR represents the degrees of freedom associated with SSTR. Between-Treatments Estimate of Population Variance

38 The estimate of  2 based on the variation of the sample observations within each treatment is called the mean square due to error (MSE). The estimate of  2 based on the variation of the sample observations within each treatment is called the mean square due to error (MSE).  The numerator of MSE is called the sum of squares due to error (SSE). The denominator of MSE represents the degrees of freedom associated with SSE. The denominator of MSE represents the degrees of freedom associated with SSE. Within-Treatments Estimate of Population Variance

39 Comparing the Variance Estimates: The F Test If the null hypothesis is true and the ANOVA assumptions are valid, the sampling distribution of MSTR/MSE is an F distribution with MSTR d.f. equal to k - 1 and MSE d.f. equal to n T - k. If the null hypothesis is true and the ANOVA assumptions are valid, the sampling distribution of MSTR/MSE is an F distribution with MSTR d.f. equal to k - 1 and MSE d.f. equal to n T - k. If the means of the k populations are not equal, the value of MSTR/MSE will be inflated because MSTR overestimates σ  2. If the means of the k populations are not equal, the value of MSTR/MSE will be inflated because MSTR overestimates σ  2. Hence, we will reject H 0 if the resulting value of MSTR/MSE appears to be too large to have been selected at random from the appropriate F distribution. Hence, we will reject H 0 if the resulting value of MSTR/MSE appears to be too large to have been selected at random from the appropriate F distribution.

40 Test for the Equality of k Population Means Hypotheses Hypotheses H 0 :  1 = 2 = 3 =... =  k  H 0 :  1 = 2 = 3 =... =  k  H a : Not all population means are equal Test Statistic Test Statistic F = MSTR/MSE

41 Test for the Equality of k Population Means Rejection Rule Rejection Rule Using test statistic: Reject H 0 if F > F a Using test statistic: Reject H 0 if F > F a Using p-value: Reject H 0 if p-value < a where the value of F a is based on an F distribution with k - 1 numerator degrees of freedom and n T - k denominator degrees of freedom

42 The figure below shows the rejection region associated with a level of significance equal to  where F  denotes the critical value. The figure below shows the rejection region associated with a level of significance equal to  where F  denotes the critical value. Sampling Distribution of MSTR/MSE Do Not Reject H 0 Reject H 0 MSTR/MSE Critical Value FF FF

43 ANOVA Table Source of Sum of Degrees of Mean Variation Squares Freedom Squares F TreatmentSSTR k - 1 MSTR MSTR/MSE Error SSE n T - k MSE Total SST n T - 1 SST divided by its degrees of freedom n T - 1 is simply the overall sample variance that would be obtained if we treated the entire n T observations as one data set.

44 Example: Reed Manufacturing Analysis of Variance Analysis of Variance J. R. Reed would like to know if the mean number of hours worked per week is the same for the department managers at her three manufacturing plants (Buffalo, Pittsburgh, and Detroit). A simple random sample of 5 managers from each of the three plants was taken and the number of hours worked by each manager for the previous week is shown on the next slide.

45 Sample Data Sample Data Plant 1Plant 2Plant 3 ObservationBuffalo Pittsburgh Detroit ObservationBuffalo Pittsburgh Detroit 1 48 73 51 1 48 73 51 2 54 63 63 2 54 63 63 3 57 66 61 3 57 66 61 4 54 64 54 4 54 64 54 5 62 74 56 5 62 74 56 Sample Mean 55 68 57 Sample Mean 55 68 57 Sample Variance 26.0 26.5 24.5 Sample Variance 26.0 26.5 24.5 Example: Reed Manufacturing

46 Hypotheses Hypotheses H 0 :  1 = 2 = 3  H a : Not all the means are equal where: where:  1 = mean number of hours worked per week by the managers at Plant 1  2 = mean number of hours worked per week by the managers at Plant 2  2 = mean number of hours worked per week by the managers at Plant 2  3 = mean number of hours worked per week by the managers at Plant 3 Example: Reed Manufacturing

47 Mean Square Due to Treatments Mean Square Due to Treatments Since the sample sizes are all equal Since the sample sizes are all equal μ= (55 + 68 + 57)/3 = 60 μ= (55 + 68 + 57)/3 = 60 SSTR = 5(55 - 60) 2 + 5(68 - 60) 2 + 5(57 - 60) 2 = 490 SSTR = 5(55 - 60) 2 + 5(68 - 60) 2 + 5(57 - 60) 2 = 490 MSTR = 490/(3 - 1) = 245 MSTR = 490/(3 - 1) = 245 Mean Square Due to Error Mean Square Due to Error SSE = 4(26.0) + 4(26.5) + 4(24.5) = 308 MSE = 308/(15 - 3) = 25.667 = = Example: Reed Manufacturing

48 F - Test F - Test If H 0 is true, the ratio MSTR/MSE should be near 1 because both MSTR and MSE are estimating  2. If H a is true, the ratio should be significantly larger than 1 because MSTR tends to overestimate  2. Example: Reed Manufacturing

49 Rejection Rule Rejection Rule Using test statistic: Reject H 0 if F > 3.89 Using p-value: Reject H 0 if p-value <.05 where F.05 = 3.89 is based on an F distribution with 2 numerator degrees of freedom and 12 denominator degrees of freedom

50 Example: Reed Manufacturing Test Statistic Test Statistic F = MSTR/MSE = 245/25.667 = 9.55 Conclusion Conclusion F = 9.55 > F.05 = 3.89, so we reject H 0. The mean number of hours worked per week by department managers is not the same at each plant.

51 ANOVA Table ANOVA Table Source of Sum of Degrees of Mean Source of Sum of Degrees of Mean Variation Squares Freedom Square F Variation Squares Freedom Square F Treatments 490 2 245 9.55 Treatments 490 2 245 9.55 Error 308 12 25.667 Error 308 12 25.667 Total 798 14 Total 798 14 Example: Reed Manufacturing

52 Step 1 Select the Tools pull-down menu Step 1 Select the Tools pull-down menu Step 2 Choose the Data Analysis option Step 2 Choose the Data Analysis option Step 3 Choose Anova: Single Factor Step 3 Choose Anova: Single Factor from the list of Analysis Tools … continued Using Excel’s Anova: Single Factor Tool

53 Step 4 When the Anova: Single Factor dialog Step 4 When the Anova: Single Factor dialog box appears: box appears: Enter B1:D6 in the Input Range box Enter B1:D6 in the Input Range box Select Grouped By Columns Select Grouped By Columns Select Labels in First Row Select Labels in First Row Enter.05 in the Alpha box Enter.05 in the Alpha box Select Output Range Select Output Range Enter A8 (your choice) in the Output Range box Enter A8 (your choice) in the Output Range box Click OK Click OK Using Excel’s Anova: Single Factor Tool

54 Value Worksheet (top portion) Value Worksheet (top portion) Using Excel’s Anova: Single Factor Tool

55 Value Worksheet (bottom portion) Value Worksheet (bottom portion) Using Excel’s Anova: Single Factor Tool

56 Using the p-Value Using the p-Value The value worksheet shows that the p-value is.00331The value worksheet shows that the p-value is.00331 The rejection rule is “Reject H 0 if p-value <.05”The rejection rule is “Reject H 0 if p-value <.05” Thus, we reject H 0 because the p-value =.00331 <  =.05Thus, we reject H 0 because the p-value =.00331 <  =.05 We conclude that the mean number of hours worked per week by the managers differ among the three plantsWe conclude that the mean number of hours worked per week by the managers differ among the three plants Using Excel’s Anova: Single Factor Tool


Download ppt "Basic concept Measures of central tendency Measures of central tendency Measures of dispersion & variability."

Similar presentations


Ads by Google