Home > Articles > Home & Office Computing > Microsoft Applications

Exploring Excel's Functions, Part 6: TTEST() Function

  • PrintPrint
  • Share ThisShare This
  • DiscussDiscuss
Close Window

Peter Aitken

Learn more…

Debugging 101 for Visual Studio
Sep 15, 2006
Fun with Fractals in Visual Studio .NET
Aug 11, 2006
Exploring Excel Functions, Part 9: Analyzing Frequency Distributions
Aug 4, 2006
File Management in .NET
Jul 7, 2006
Exploring Excel Functions 8: Predicting the Future
Jun 30, 2006
Exploring Excel's Functions, Part 7: Rounding with Excel
Jun 23, 2006
Binary File Access in the .NET Framework
Jun 16, 2006
Text File Access in the .NET Framework
Jun 2, 2006
Using Geometric Transforms for Text Effects in .NET
May 26, 2006
Understanding MDI Applications in .NET
May 12, 2006
A .NET Framework Text and Font Primer
Apr 21, 2006
Exploring Excel's Functions, Part 6: TTEST() Function
Apr 14, 2006
Troubleshooting Excel PivotTables
Apr 7, 2006
Troubleshooting Word Tables
Mar 31, 2006
Exploring Excel's Functions, Part 5: The Power of Choice
Mar 24, 2006
Seven Things I Hate About Word Printing
Mar 10, 2006
Exploring Excel's Functions, Part 4: Database Functions
Feb 24, 2006
Exploring Excel's Functions Part 3: CELL() Shocked
Feb 3, 2006
Exploring Excel's Functions Part 2: ADDRESS() and INDIRECT()
Dec 30, 2005
Exploring Excel's Functions: IF() Only!
Dec 9, 2005
Advanced Find-and-Replace Tools in Word
Oct 28, 2005
Going Beyond Basic Spaces and Hyphens in Word
Sep 16, 2005
Get Organized with Word's Outline Tools
Aug 19, 2005
Managing Your Money in Microsoft Excel: Basic Financial Calculations
Jul 29, 2005
Structured Exception Handling in Visual Studio .NET
Oct 8, 2004
Multithreading with the .NET Framework
Jun 11, 2004
.NET Tools for Working with XML
May 21, 2004
Storing Information: Variables and Constants in C
Mar 28, 2003
Introducing Web Programming with .NET
Mar 1, 2002
Using Web Forms
Mar 1, 2002
Introducing Web Services
Feb 15, 2002
XML and the .NET Framework
Feb 8, 2002
ASP.NET Programming: Using Web Forms
Jan 25, 2002
Understanding the Common Features of Web Controls
Aug 20, 2001

Sorry, this author hasn't posted any blogs.

Are you intimidated by the very mention of statistics? There's no need to be. In this sixth in a series of articles that take a detailed look at some of Excel's advanced functions, Peter Aitken tells you why statistics are nothing to fear when you use the TTEST() function in your own work.

If you have taken a statistics course, you probably already know all about the Student’s T-Test calculation. As an historical note, the test is so named not because it is designed for students but because it was invented by a fellow named William Sealey Gosset—which makes no sense at all until you realize that Gosset wrote under the name Student, so the statistical test he invented bears that name. The T-Test was initially used to handle small samples for quality control at the Guinness brewery in Ireland.

Even if you have not studied statistics, you can still use the T-Test. But what’s it for? An example will help illustrate.

How Does It Work?

Suppose that you are watching a chess match and you notice that the five members of the Swedish Woman’s Team are all taller than the five members of the Australian Woman’s Team. You wonder: Are Swedes on average taller than Australians? The most direct approach is to measure the height of all women in Sweden and Australian and figure out the averages. You would have a definitive answer and would not need any statistical tests.

Of course, it isn’t feasible—you cannot measure the entire populations of all women in the two countries! Instead, you must rely on a sample, a randomly selected group from each country. In this example, the samples are the five women on each of the teams. Given that the average height of the five Swedish women is greater then the average height of the five Australian women, there are two possibilities:

  • Overall, Swedish and Australian women do not differ in height. Only by chance did the Swedish team end up with taller members.
  • Overall, Swedish women are taller than Australian women. This fact is reflected in the heights of the team members.

Here’s where the T-Test comes in. You can plug in the individual heights of the 10 people in the two samples, and the TTEST() function will tell you the probability that the difference between the two samples arose purely by chance. If that probability is small enough, it is safe to conclude that there is a real difference between the populations—in other words, that the difference is significant. Generally, a probability of 0.05 (5%) is considered the cutoff, but in some applications a smaller value might be required.

Valid use of the T-Test is based on the assumption that the population data are normally distributed, which means that the data, when plotted, would form the standard bell curve. This assumption is valid for the vast majority of data.

The TTEST() function takes four arguments:

TTEST(range1, range2, tails, type)
  • Range1 and range2 are the two worksheet ranges in which the data from the two samples are located. They can (but do not have to) have the same number of data points.
  • Tails should be the value 2 for a two-tailed test. You can also use the value 1 for a one-tailed test but that is a specialized use that I will not cover here.
  • Type should usually be the value 2. I’ll explain the Type argument in more detail in the text.
  • Share ThisShare This
  • Your Account

Discussions

Make a New Comment

You must log in in order to post a comment.

Related Resources

Jennifer  BortelWin FREE iPhone Developer Books and Videos- Introducing @InformIT Giveaways
By Jennifer Bortel on February 5, 2010 No Comments

Apples’s recent iPad announcement made our hearts flutter so we couldn’t resist making an announcement of our own!

Today marks the first ever @InformIT Giveaway!

We’ll regularly post a video like this one profiling spectacular prizes we’re giving away—from books and videos to T-shirts and other exciting stuff. Check out the video below to see the giveaways for today, and then scroll down for more prize details and instructions on how to win them!

Win 7, something to talk about.
By John Traenkenschuh on January 31, 2010 No Comments

How well does Win 7 accomodate truly junktacular gear?

Sharing Information Can Bring a Share of Problems
By John Traenkenschuh on December 10, 2009 No Comments

Do you really want coworkers to drag you into their own plans, thanks to social networking?

See All Related Blogs

Informit Network