PDF download Download Article PDF download Download Article

A confidence interval is an indicator of your measurement's precision. [1] It is also an indicator of how stable your estimate is, which is the measure of how close your measurement will be to the original estimate if you repeat your experiment. Follow the steps below to calculate the confidence interval for your data.

  1. Let's say you're working with the following situation: The average weight of a male student in ABC University is 180 lbs. You'll be testing how accurately you will be able to predict the weight of male students in ABC university within a given confidence interval. [2]
  2. This is what you will use to gather data for testing your hypothesis. [3] Let's say you've randomly selected 1,000 male students.
    Advertisement
  3. Choose a sample statistic (e.g., sample mean, sample standard deviation) that you want to use to estimate your chosen population parameter. A population parameter is a value that represents a particular population characteristic. Here's how you can find your sample mean and sample standard deviation:
    • To calculate the sample mean of the data, just add up all of the weights of the 1,000 men you selected and divide the result by 1000, the number of men. This should have given you the average weight of 180 lbs. [4]
    • To calculate the sample standard deviation, you will have to find the mean, or the average of the data. Next, you'll have to find the variance of the data, or the average of the squared differences from the mean. Once you find this number, just take its square root. [5] Let's say the standard deviation here is 30 lbs. (Note that this information can sometimes be provided for you during a statistics problem.)
  4. The most commonly used confidence levels are 90 percent, 95 percent and 99 percent. [6] This may also be provided for you in the course of a problem. Let's say you've chosen 95%.
  5. You can find the margin of error by using the following formula: Z a/2 * σ/√(n). Z a/2 = the confidence coefficient, where a = confidence level, σ = standard deviation, and n = sample size. This is another way of saying that you should multiply the critical value by the standard error. [7] Here's how you can solve this formula by breaking it into parts:
    • To find the critical value, or Z a/2 : Here, the confidence level is 95%. Convert the percentage to a decimal, .95, and divide it by 2 to get .475. Then, check out the z table to find the corresponding value that goes with .475. You'll see that the closest value is 1.96, at the intersection of row 1.9 and the column of .06.
    • To find the standard error, take the standard deviation, 30, and divide it by the square root of the sample size, 1,000. You get 30/31.6, or .95 lbs.
    • Multiply 1.96 by .95 (your critical value by your standard error) to get 1.86, your margin of error.
  6. To state the confidence interval, you just have to take the mean, or the average (180), and write it next to ± and the margin of error. The answer is: 180 ± 1.86. You can find the upper and lower bounds of the confidence interval by adding and subtracting the margin of error from the mean. [8] So, your lower bound is 180 - 1.86, or 178.14, and your upper bound is 180 + 1.86, or 181.86.
    • You can also use this handy formula in finding the confidence interval: x̅ ± Z a/2 * σ/√(n). Here, x̅ represents the mean.
  7. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    What is a confidence interval?
    Mario Banuelos, PhD
    Associate Professor of Mathematics
    Mario Banuelos is an Associate Professor of Mathematics at California State University, Fresno. With over eight years of teaching experience, Mario specializes in mathematical biology, optimization, statistical models for genome evolution, and data science. Mario holds a BA in Mathematics from California State University, Fresno, and a Ph.D. in Applied Mathematics from the University of California, Merced. Mario has taught at both the high school and collegiate levels.
    Associate Professor of Mathematics
    Expert Answer
    You can think of a confidence interval as a kind of a net that captures the potential region where a parameter lies. For example, you might want to calculate the average number of hours students spend online. To do that, you might ask a sample of 100 students how many average hours they spend online, then add or subtract the margin of error.
  • Question
    How can I find the z value of 95% on the table?
    Community Answer
    On your table, look to the larger (inner) box, find the closest to .9500 (it will probably be .9495, or .9505). These translate to 1.64 and 1.65 respectively.
  • Question
    Given a sample of 100 projector bulbs from a company has a mean length of life of 20.5 hours with a standard deviation of 1.6 hours, how do I find a 95% confidence interval for the average length of life of those bulbs and then interpret the results?
    Community Answer
    20.6 is the upper limit and 20.4 is the lower limit. There is 95% confidence that the constructed interval includes the population mean.
See more answers
Ask a Question
      Advertisement

      Tips

      • Both t scores and z scores can be calculated manually, as well as by using a graphing calculator or statistical tables, which are frequently found in statistical textbooks. Z scores can also be found using the Normal Distribution Calculator, while t scores can be found using the t Distribution Calculator. Online tools are available as well.
      • Your sample population must be normal for your confidence interval to be valid.
      • The critical value used to calculate the margin of error is a constant that is expressed as either a t score or a z score. T scores are typically preferred with the population's standard deviation is unknown or when a small sample is used.
      Show More Tips
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!
      Advertisement

      Things You'll Need

      • Sample population
      • Computer
      • Internet access
      • Statistics textbook
      • Graphing calculator

      About This Article

      Article Summary X

      You can determine a confidence interval by calculating a chosen statistic, such as the average, of a population sample, as well as the standard deviation. Choose a confidence level that best fits your hypothesis, like 90%, 95%, or 99%, and calculate your margin of error by using the corresponding equation. Finally, you can state your confidence interval by calculating its upper and lower bounds. Simply add the margin of error to your chosen statistic to get the upper bound, and subtract the margin of error to get the lower bound. If you want to learn how to calculate any margins of error, keep reading the article!

      Did this summary help you?
      Thanks to all authors for creating a page that has been read 1,910,741 times.

      Reader Success Stories

      • John Mosby

        Feb 16, 2018

        "For me, calculation of the CI is complex. This article helps explain some of the components, and thus the process, ..." more
      Share your story

      Did this article help you?

      Advertisement