Accendo Reliability

Your Reliability Engineering Professional Development Site

  • Home
  • About
    • Contributors
  • Reliability.fm
    • Speaking Of Reliability
    • Rooted in Reliability: The Plant Performance Podcast
    • Quality during Design
    • Way of the Quality Warrior
    • Critical Talks
    • Dare to Know
    • Maintenance Disrupted
    • Metal Conversations
    • The Leadership Connection
    • Practical Reliability Podcast
    • Reliability Matters
    • Reliability it Matters
    • Maintenance Mavericks Podcast
    • Women in Maintenance
    • Accendo Reliability Webinar Series
  • Articles
    • CRE Preparation Notes
    • on Leadership & Career
      • Advanced Engineering Culture
      • Engineering Leadership
      • Managing in the 2000s
      • Product Development and Process Improvement
    • on Maintenance Reliability
      • Aasan Asset Management
      • AI & Predictive Maintenance
      • Asset Management in the Mining Industry
      • CMMS and Reliability
      • Conscious Asset
      • EAM & CMMS
      • Everyday RCM
      • History of Maintenance Management
      • Life Cycle Asset Management
      • Maintenance and Reliability
      • Maintenance Management
      • Plant Maintenance
      • Process Plant Reliability Engineering
      • ReliabilityXperience
      • RCM Blitz®
      • Rob’s Reliability Project
      • The Intelligent Transformer Blog
      • The People Side of Maintenance
      • The Reliability Mindset
    • on Product Reliability
      • Accelerated Reliability
      • Achieving the Benefits of Reliability
      • Apex Ridge
      • Metals Engineering and Product Reliability
      • Musings on Reliability and Maintenance Topics
      • Product Validation
      • Reliability Engineering Insights
      • Reliability in Emerging Technology
    • on Risk & Safety
      • CERM® Risk Insights
      • Equipment Risk and Reliability in Downhole Applications
      • Operational Risk Process Safety
    • on Systems Thinking
      • Communicating with FINESSE
      • The RCA
    • on Tools & Techniques
      • Big Data & Analytics
      • Experimental Design for NPD
      • Innovative Thinking in Reliability and Durability
      • Inside and Beyond HALT
      • Inside FMEA
      • Integral Concepts
      • Learning from Failures
      • Progress in Field Reliability?
      • R for Engineering
      • Reliability Engineering Using Python
      • Reliability Reflections
      • Testing 1 2 3
      • The Manufacturing Academy
  • eBooks
  • Resources
    • Accendo Authors
    • FMEA Resources
    • Feed Forward Publications
    • Openings
    • Books
    • Webinars
    • Journals
    • Higher Education
    • Podcasts
  • Courses
    • 14 Ways to Acquire Reliability Engineering Knowledge
    • Reliability Analysis Methods online course
    • Measurement System Assessment
    • SPC-Process Capability Course
    • Design of Experiments
    • Foundations of RCM online course
    • Quality during Design Journey
    • Reliability Engineering Statistics
    • Quality Engineering Statistics
    • An Introduction to Reliability Engineering
    • Reliability Engineering for Heavy Industry
    • An Introduction to Quality Engineering
    • Process Capability Analysis course
    • Root Cause Analysis and the 8D Corrective Action Process course
    • Return on Investment online course
    • CRE Preparation Online Course
    • Quondam Courses
  • Webinars
    • Upcoming Live Events
  • Calendar
    • Call for Papers Listing
    • Upcoming Webinars
    • Webinar Calendar
  • Login
    • Member Home

by Fred Schenkelberg Leave a Comment

Sample Size for Hypothesis Testing of μ

Sample Size for Hypothesis Testing of μ

A common question when setting up a hypothesis test is concerning sample size. An example, might be: How many samples do we need to measure to determine the new process is better than the old one on average?

While this seems like a simple question, we need a bit of information before we can do the calculations. I’ve also found that the initial calculation is nearly always initiated a conversation concerning the balance of sample risks, the ability to detect a change of a certain size and the constraints concerning the number of samples.

Given Values

To do the sample size calculation for a hypothesis test for the population mean, $-\mu-$, we need the following set of values:

The population variance, $-\sigma^{2}-$. For this type of hypothesis test, we have this value based on prior measurements.

The Type I and Type II errors represented by $-\alpha-$ and $-\beta-$, respectively. These allow us to quantify the desired sampling risk for this particular test.

Finally, we also need to know the difference we desire to detect, $-\Delta-$. This is the amount of shift or change in the mean, $-\mu-$ that we would like to detect if it has indeed occurred. This is similar to the difference we use in the calculation of the z-value in the hypothesis test calculations and for the calculation of the power of the sample or test.

Sample Size Formulas

If you noticed, n is part of the calculation of the z-value for the test statistic. In that calculation, we use the measured values to estimate the new population mean and compare that to an old, or specification, mean, the null value. Rearranging the formula for the test statistic and including the Type II error, $-\beta-$ we have the formula to calculate the sample size, n, for a single-sided test:

$$ \displaystyle n=\frac{\sigma^{2}\left(z_{\alpha}+z_{\beta}\right)^{2}}{\Delta^{2}} $$

If conducting a two-sided test, the formula accounts for the Type I error that may occur on the upper or lower tail, thus we divide the $-\alpha-$ by 2, resulting in:

$$ \displaystyle n=\frac{\sigma^{2}\left(z_{\alpha/2}+z_{\beta}\right)^{2}}{\Delta^{2}}$$

When We Don’t Know the Population Variance

Often, we don’t know the variance and instead would use a t-test to accommodate having to estimate the variance term from the data. If n is 30 or more, the t-distribution, used in a t-test, is for intent and purpose the same as a normal distribution. This ability to estimate the variance is only an issue when there are less than 30 samples.

If we do not know the variance term and need to estimate the sample size, use the above formulas using a sample variance, s$-s^{2}-$, instead of the population variance. The implies the need to take measurements prior to conducting the hypothesis test in order to estimate how many samples are necessary for the test. A good practice is to measure at least 30 items, if possible, to reduce the expected difference between the sample and population variance values.

Filed Under: Articles, CRE Preparation Notes, Probability and Statistics for Reliability

About Fred Schenkelberg

I am the reliability expert at FMS Reliability, a reliability engineering and management consulting firm I founded in 2004. I left Hewlett Packard (HP)’s Reliability Team, where I helped create a culture of reliability across the corporation, to assist other organizations.

« ‘De-Flate Gate’ & RCA
How Gargoyles Helped Expose a Big Misconception about What Failure Modes to Include in an RCM Analysis »

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

CRE Preparation Notes

Article by Fred Schenkelberg

Join Accendo

Join our members-only community for full access to exclusive eBooks, webinars, training, and more.

It’s free and only takes a minute.

Get Full Site Access

Not ready to join?
Stay current on new articles, podcasts, webinars, courses and more added to the Accendo Reliability website each week.
No membership required to subscribe.

[popup type="" link_text="Get Weekly Email Updates" link_class="button" ]

[/popup]

  • CRE Preparation Notes
  • CRE Prep
  • Reliability Management
  • Probability and Statistics for Reliability
  • Reliability in Design and Development
  • Reliability Modeling and Predictions
  • Reliability Testing
  • Maintainability and Availability
  • Data Collection and Use

© 2025 FMS Reliability · Privacy Policy · Terms of Service · Cookies Policy