Accendo Reliability

Your Reliability Engineering Professional Development Site

  • Home
  • About
    • Contributors
    • About Us
    • Colophon
    • Survey
  • Reliability.fm
  • Articles
    • CRE Preparation Notes
    • NoMTBF
    • on Leadership & Career
      • Advanced Engineering Culture
      • ASQR&R
      • 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 Maintenance Management
      • 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
      • RCM Blitz®
      • ReliabilityXperience
      • 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
      • Field Reliability Data Analysis
      • Metals Engineering and Product Reliability
      • Musings on Reliability and Maintenance Topics
      • Product Validation
      • Reliability by Design
      • Reliability Competence
      • Reliability Engineering Insights
      • Reliability in Emerging Technology
      • Reliability Knowledge
    • 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
      • Institute of Quality & Reliability
      • Integral Concepts
      • Learning from Failures
      • Progress in Field Reliability?
      • R for Engineering
      • Reliability Engineering Using Python
      • Reliability Reflections
      • Statistical Methods for Failure-Time Data
      • Testing 1 2 3
      • The Manufacturing Academy
  • eBooks
  • Resources
    • Accendo Authors
    • FMEA Resources
    • Glossary
    • Feed Forward Publications
    • Openings
    • Books
    • Webinar Sources
    • Podcasts
  • Courses
    • Your Courses
    • Live Courses
      • Introduction to Reliability Engineering & Accelerated Testings Course Landing Page
      • Advanced Accelerated Testing Course Landing Page
    • Integral Concepts Courses
      • Reliability Analysis Methods Course Landing Page
      • Applied Reliability Analysis Course Landing Page
      • Statistics, Hypothesis Testing, & Regression Modeling Course Landing Page
      • Measurement System Assessment Course Landing Page
      • SPC & Process Capability Course Landing Page
      • Design of Experiments Course Landing Page
    • The Manufacturing Academy Courses
      • An Introduction to Reliability Engineering
      • Reliability Engineering Statistics
      • An Introduction to Quality Engineering
      • Quality Engineering Statistics
      • FMEA in Practice
      • Process Capability Analysis course
      • Root Cause Analysis and the 8D Corrective Action Process course
      • Return on Investment online course
    • Industrial Metallurgist Courses
    • FMEA courses Powered by The Luminous Group
    • Foundations of RCM online course
    • Reliability Engineering for Heavy Industry
    • How to be an Online Student
    • Quondam Courses
  • Calendar
    • Call for Papers Listing
    • Upcoming Webinars
    • Webinar Calendar
  • Login
    • Member Home
  • Barringer Process Reliability Introduction Course Landing Page
  • Upcoming Live Events
You are here: Home / Articles / Single Sample Z-test Hypothesis Testing for Mean with Known Variance

by Fred Schenkelberg 2 Comments

Single Sample Z-test Hypothesis Testing for Mean with Known Variance

Single Sample Z-test Hypothesis Testing for Mean with Known Variance

In the situation where you have a sample and would like to know if the population represented by the sample has a mean different than some specification, then this is the test for you. Oh, you also know, which is actually rather rare in practice, the actual variance of the population you drew the sample.

This test is often the first in the textbook that describes hypothesis testing. It is straight forward and provides a good foundation to apply other hypotheses tests with different circumstances.

Assumptions

A good practice when applying any statistical application is to consider the related assumptions. For this test there are two assumptions involved:

The sample is randomly selected from the population under investigation
The population distribution is a normal distribution. Note as the sample size goes up this becomes less on a concern due to the central limit theorem.
If either assumption is not true the results of the z-test statistic may not be informative.

Test Setup

The null hypothesis for the z-test is

$$ H_{0}:\mu=\mu_{0} $$

where $-\mu_{0} -$ is specified

Next specify the alternative hypothesis. There are three choices depending if you want to check if the mean has changed from an expected value either higher or lower (two-sided). Or, if the test is to detect a shift higher or lower (one-sided)

The alternative hypothesis for a z-test may be

$$ H_{a}:\:\mu\neq\mu_{0} $$

$$ H_{a}:\:\mu>\mu_{0} $$

$$ H_{a}:\:\mu<\mu_{0} $$

The test statistic is the calculated number of z values the sample mean $- \bar{y} -$ indicates the population has shifted. The test statistic is

$$ z=\frac{\bar{y}-\mu_{0}}{\sigma_{\bar{y}}} $$

Recall that

$$ \sigma_{\bar{y}}=\frac{\sigma}{\sqrt{n}} $$

Since we know the population standard deviation we can calculate the test statistic with the given standard deviation and the sample size, n, as so

$$ z=\frac{\bar{y}-\mu_{0}}{{\sigma}/{\sqrt{n}}} $$

The last step for the setup is to determine the rejection region. This is the value of z that indicates the alternative hypothesis has sufficient evidence to suggest the population mean value has indeed changed.

To do this we need to specify the value $-\alpha -$ which corresponds to the risk we are willing to take that the sample indicates a shift of the mean when in fact is has not changed. We call this a Type 1 error. If we are willing to accept the risk of 1 in 40 times a random sample will result in a sample mean falling in the rejection region, we would establish $-\alpha=\dfrac{1}{40}=0.025 -$, for example.

We determine the critical value of $-r_{\alpha}-$ corresponding to rejection region or area corresponding to the probability of a type 1 error occurring using the area under the tail of a normal distribution we can determine the critical value thus defining the rejection region.

For a two-tailed test we divided the probability of a type 1 error by two as the rejection region is divided equally between the two tails of the distribution.

Sometimes we approach setting the probability of a type 1 error by setting a confidence. This is the probability stated as a percentage that the sample would not lead to a type 1 error. The relationship is

$$ C=\left(1-\alpha\right)100\% $$

Example

Let’s say we have a long standing process creating the top tube for a bicycle and we want to know if a change in the process has indeed lowered the mean weight. We know the standard deviation has not changed based on prior work and is 0.0057. We start by setting up the hypothesis test.

The null hypothesis is that the process results in the same mean value, $-\mu-$ of the former process of 3.127, $-\mu_{0}-$.

$$H_{0}:\mu=\mu_{0}=3.127 $$

The alternative hypothesis is the new process results in a lower mean value.

$$H_{a}:\:\mu<\mu_{0} $$

$$H_{a}:\:\mu<3.127 $$

The test statistic is calculated based on the data collected in a sample of readings. The data is in the following table.

Sample New Process
1 3.110
2 3.095
3 3.115
4 3.120
5 3.125

The mean of the new process sample values, $-\bar{y}-$ is 3.113. Therefore, we can calculate the test statistic, z.

$$z=\frac{\bar{y}-\mu_{0}}{{\sigma}/{\sqrt{n}}} =\frac{3.113-3.127}{{0.0057}/{\sqrt{5}}}=-5.49 $$

Given the desire for a confidence value of 95% or an $-\alpha=0.025-$ we can determine the critical value from the rejection region corresponding to the probability of a type 1 error under the lower tail of a normal distribution. In this case, $-r_{0.05}=-1.96-$ keeping in mind the normal curve is symmetrical and we are interesting in the lower tail region.

Thus, since the sample mean results in a z value of -5.49 which is well below the critical z value of -1.96, we can conclude the test provides evidence that the top tube process change results in a lower weight with a 95% confidence.

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.

« Reliability Questions and Decisions
What is Inherent Reliability? »

Comments

  1. christineleakey96@gmail.com says

    August 19, 2022 at 4:24 AM

    how do we derive hypothesis for testing variance when mean is known and variance is unknown

    Reply
    • Fred Schenkelberg says

      August 19, 2022 at 10:50 AM

      Hi Christine,

      Take a look at this list of articles – https://fred-schenkelberg-project.prev01.rmkr.net/tag/variance/ there are a number of different ways to conduct a hypothesis test on variance – one of these may fit your situation.

      cheers,

      Fred

      Reply

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" ][display_form id=266][/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