When the means of two groups are to be compared (where each group consists of subjects that are not related) then the excel two-sample t-test procedure.

Slides:



Advertisements
Similar presentations
Chapter 12: Testing hypotheses about single means (z and t) Example: Suppose you have the hypothesis that UW undergrads have higher than the average IQ.
Advertisements

Independent t -test Features: One Independent Variable Two Groups, or Levels of the Independent Variable Independent Samples (Between-Groups): the two.
Statistics 101 Class 8. Overview Hypothesis Testing Hypothesis Testing Stating the Research Question Stating the Research Question –Null Hypothesis –Alternative.
5/15/2015Slide 1 SOLVING THE PROBLEM The one sample t-test compares two values for the population mean of a single variable. The two-sample test of a population.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Chapter 10 Two-Sample Tests
Single Sample t-test Purpose: Compare a sample mean to a hypothesized population mean. Design: One group.
1 Matched Samples The paired t test. 2 Sometimes in a statistical setting we will have information about the same person at different points in time.
MARE 250 Dr. Jason Turner Hypothesis Testing II. To ASSUME is to make an… Four assumptions for t-test hypothesis testing:
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
BCOR 1020 Business Statistics
Test statistic: Group Comparison Jobayer Hossain Larry Holmes, Jr Research Statistics, Lecture 5 October 30,2008.
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
11 Comparison of Two Means Tests involving two samples – comparing variances, F distribution TOH - x A = x B ? Step 1 - F-test  s A 2 = s B 2 ? Step.
T-Tests Lecture: Nov. 6, 2002.
Two Population Means Hypothesis Testing and Confidence Intervals With Unknown Standard Deviations.
S519: Evaluation of Information Systems
 What is t test  Types of t test  TTEST function  T-test ToolPak 2.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two Sample Tests Statistics for Managers Using Microsoft.
Student’s t statistic Use Test for equality of two means
5-3 Inference on the Means of Two Populations, Variances Unknown
Hypothesis Testing Using The One-Sample t-Test
Hypothesis Testing: Two Sample Test for Means and Proportions
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
Statistics 11 Hypothesis Testing Discover the relationships that exist between events/things Accomplished by: Asking questions Getting answers In accord.
Intermediate Statistical Analysis Professor K. Leppel.
Statistical Analysis Statistical Analysis
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Single-Sample T-Test Quantitative Methods in HPELS 440:210.
Education 793 Class Notes T-tests 29 October 2003.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
Comparing Two Population Means
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Hypothesis Testing CSCE 587.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Learning Objectives In this chapter you will learn about the t-test and its distribution t-test for related samples t-test for independent samples hypothesis.
S519: Evaluation of Information Systems Social Statistics Inferential Statistics Chapter 10: t test.
ANOVA (Analysis of Variance) by Aziza Munir
Copyright © Cengage Learning. All rights reserved. 14 Elements of Nonparametric Statistics.
6/4/2016Slide 1 The one sample t-test compares two values for the population mean of a single variable. The two-sample t-test of population means (aka.
Essential Question:  How do scientists use statistical analyses to draw meaningful conclusions from experimental results?
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two-Sample Tests Statistics for Managers Using Microsoft.
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use.
Chapter 8 Parameter Estimates and Hypothesis Testing.
Welcome to MM570 Psychological Statistics
Chapter 10 The t Test for Two Independent Samples
Inferences Concerning Variances
Sec 8.5 Test for a Variance or a Standard Deviation Bluman, Chapter 81.
Other Types of t-tests Recapitulation Recapitulation 1. Still dealing with random samples. 2. However, they are partitioned into two subsamples. 3. Interest.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Testing Differences in Means (t-tests) Dr. Richard Jackson © Mercer University 2005 All Rights Reserved.
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
Hypothesis Tests u Structure of hypothesis tests 1. choose the appropriate test »based on: data characteristics, study objectives »parametric or nonparametric.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Educational Research Inferential Statistics Chapter th Chapter 12- 8th Gay and Airasian.
S519: Evaluation of Information Systems Social Statistics Inferential Statistics Chapter 9: t test.
Copyright © 2009 Pearson Education, Inc t LEARNING GOAL Understand when it is appropriate to use the Student t distribution rather than the normal.
Statistical hypothesis Statistical hypothesis is a method for testing a claim or hypothesis about a parameter in a papulation The statement H 0 is called.
T-tests Comparing the means of 2 independent similar populations.
Dependent-Samples t-Test
Lecture Nine - Twelve Tests of Significance.
Hypothesis Testing: The Difference Between Two Population Means
Presentation transcript:

When the means of two groups are to be compared (where each group consists of subjects that are not related) then the excel two-sample t-test procedure is used to perform these calculations. NOTE: If your observations are related across “group” as paired or repeated measurements, this in an INCORRECT version of the t-test. For that case, see the tutorial on the Paired t-test.

Subjects are randomly assigned to one of two groups. The distribution of the means by group is normal with equal variances. Sample sizes between groups do not have to be equal. Assumptions:

The hypotheses for the comparison of means from two independent groups are: The test statistic is a student’s t-test with N ‑ 2 degrees of freedom, where N is the total number of subjects. A low p ‑ value indicates evidence to reject the null hypothesis in favor of the alternative. In other words, there is evidence that the means are not equal. Test: Ho: m1 = m2 (means of the two groups are equal) Ha: m1 ¹ m2 (means are not equal)

For example, suppose we are interested in comparing SCORES across GROUPS, where there are two groups. The purpose is to determine if the mean SCORE on a test is different for the two groups tested (i.e., control and treatment groups). In the example, GROUP contains two values, 1 or 2, indicating which group each subject was in. The t-test will be performed on the values in the variable (column) named SCORE. GroupScores

Decide if the variances are equal in both groups, which determines the type of t-test to perform (one that assumes equal variances or one that doesn’t make that assumption.) A conservative approach suggested in some texts is to always assume unequal variances. Another approach is to do a statistical test to determine equality. Step 1 An independent group t-test is done in two steps:

Depending on your decision about the equality of variances you either perform the version of the t-test that assumes equality of variances or other one that doesn’t make that assumption. Step 2

If you take the conservative approach, skip this test and proceed to the version of the t-test that does not assume equality of variance. The test for equality of variances is an F-test. Determine Equality of Variance

To do a statistical test to determine equality of variance, follow these instructions: In Excel, Select Tools Data Analysis F-Test Two Sample for Variance

2. 2. In the F-Test Two Sample for Variance dialog box:

This dialog box is shown below. Click OK.

3 3. The following results are produced by Excel: Notice the highlighted probability p= This is a one-tail p-value associated with the test for equality of variance. Generally, if this value is less than 0.05 you assume that the variances are NOT equal. F-Test Two-Sample for Variances Variable 1Variable 2 Mean Variance Observations78 df67 F P(F<=f) one-tail F Critical one-tail

a. If the variances are assumed to NOT be equal, proceed with the t-test that assumes non-equal variances. b. If the variances are assumed to be equal, proceed with the t-test that assumes equal variances.

The process of doing the t-test in Excel is similar for both the equal and unequal variances case – the main difference is which version you select from the menu. Suppose you select the unequal version of the two-sample t-test – this is how you proceed: Select Tools Data Analysis t-Test: Two Sample assuming Unequal Variances Determine Equality of Variance 1.

2. 2. In the t-Test Two Sample assuming Unequal Variances dialog box:

This dialog box is shown below. Click OK.

3 3. The following output is created: Notice that the two sample mean values (variance) are 25.64(15.23) and 43.81(96.42). The two tailed calculated t-statistic is 4.82 and the highlighted p-value for this test is p=0.001 ( ). Since the p-value is less than 0.05, this provides evidence to reject the null hypothesis of equal means. t-Test: Two-Sample Assuming Unequal Variances Variable 1Variable 2 Mean Variance Observations78 Hypothesized Mean Difference 0 Df9 t Stat P(T<=t) one-tail t Critical one-tail P(T<=t) two-tail t Critical two-tail

Methods: A preliminary test for the equality of variances indicates that the variances of the two groups were significantly different F=.157, p=.02. Therefore, a two-sample t-test was performed that does not assume equal variances. As an example of how this might be reported in a journal article:

Results: The mean score for group 1 (M=25.64, SD= , N=7) was significantly smaller than the scores for group 2 (M=42.81, SD=9.82, N= 8.) using the two- sample t-test for unequal variances, t(9) = -4.82, p <= (Technically, the degrees of freedom for this unequal variances t-test should be 9.4 instead of 9, but Excel unfortunately rounds off the DF, so it is reported incorrectly. Years ago, it used to be conventional to round down if you were constructing a table for a probability level, but most statistical programs now calculate the correct p- value using a fractional DF through interpolation.)

Notice that the variance is reported rather than the standard deviation, as shown in the Excel results table. You can calculate the standard deviation using : When the variances are assumed equal, the analysis is similar: Tools Data Analysis Descriptive Statistics Tools Data Analysis t-Test: Two Sample assuming Equal Variances

Because Excel doesn’t have a function for one sample t-Tests, you can manipulate the program by creating the second sample which would be the population mean that you are testing. A one sample t-Tests looks to see if the sample mean is equal to the population mean. You are only given one sample, and then the send second data set would be the population mean that you chose. One Sample t-Test

Two-tailed test allots half of your alpha to testing the statistical significance in one direction and half of your alpha to testing statistical significance in the other direction. This means that.025 is in each tail of the distribution of your test statistic. Two Tail Test

When using a two-tailed test, regardless of the direction of the relationship you hypothesize, you are testing for the possibility of the relationship in both directions. For example, we may wish to compare the mean of a sample to a given value x using a t-test. Our null hypothesis is that the mean is equal to x. A two-tailed test will test both if the mean is significantly greater than x and if the mean significantly less than x. The mean is considered significantly different from x if the test statistic is in the top 2.5% or bottom 2.5% of its probability distribution, resulting in a p-value less than 0.05.

If you are using a significance level of.05, a one- tailed test allots all of your alpha to testing the statistical significance in the one direction of interest. This means that.05 is in one tail of the distribution of your test statistic. When using a one-tailed test, you are testing for the possibility of the relationship in one direction and completely disregarding the possibility of a relationship in the other direction. One-Tailed Tests

Let's return to our example comparing the mean of a sample to a given value x using a t-test. Our null hypothesis is that the mean is equal to x. A one-tailed test will test either if the mean is significantly greater than x or if the mean is significantly less than x, but not both. Then, depending on the chosen tail, the mean is significantly greater than or less than x if the test statistic is in the top 5% of its probability distribution or bottom 5% of its probability distribution, resulting in a p-value less than The one-tailed test provides more power to detect an effect in one direction by not testing the effect in the other direction.

References: