Skip to main content

t-Tests

  • Chapter
  • First Online:
  • 8634 Accesses

Part of the book series: Use R ((USE R))

Abstract

The t-test is used for the mean of a normal distribution with estimated standard deviation s, or for comparing the means of two normal distributions.

We will look at several datasets, graphically and numerically, and focus on two types of questions.

Testing:   We have null (H 0) and alternative (H 1) hypotheses about the true value μ of the mean of the population from which the data was drawn. We wish to test whether there is enough evidence to reject the null hypothesis. The possible answers to the test are “reject the null hypothesis” or “do not reject the null hypothesis.” The possible answers do not contain any numbers.

The null hypothesis is a statement about the world. It might be a true statement. It might be a false statement. The phrase “reject the null hypothesis” means the evidence from the data suggests that the null hypothesis is a false statement.

Estimation:   We have some data, and we wish to estimate the location of the population mean μ. We estimate the location with a confidence interval with a specified confidence level. Frequently, the level is 95%. The answer is an interval, a set of two numbers. The interval is written in the form

$$95\%{\rm CI}(\mu)=(L,U)$$
((6.1))

where the numbers L and U stand for “lower bound” and “upper bound,” respectively. The interval is written as a set of parentheses with the smaller number on the left, the larger number on the right, and a comma separating them.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   59.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Richard M. Heiberger .

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Springer Science+Business Media, LLC

About this chapter

Cite this chapter

Heiberger, R.M., Neuwirth, E. (2009). t-Tests. In: R Through Excel. Use R. Springer, New York, NY. https://doi.org/10.1007/978-1-4419-0052-4_6

Download citation

Publish with us

Policies and ethics