Statistics for Beginners in Excel – Tolerance Interval using Real Statistics

(Basic Statistics for Citizen Data Scientist)

Tolerance Interval

As described in Confidence Intervals, a confidence interval provides a way of estimating a population parameter by a corresponding sample statistic to a given level of confidence. We show how to estimate the population mean (the parameter) by the sample mean (the statistic). In particular, if the experiment is repeated a sufficiently large number of times, then the true population parameter will lie in the 1–α confidence interval in 100(1–α) percent of the samples.

The tolerance interval, on the other hand, is an interval pertaining to the entire population and not just to a specific parameter. In particular, we expect that 100(1–α) percent of the entire population will lie in the 1–α tolerance interval.

We now show how to calculate a tolerance interval based on sample data taken from a normal distributed population. In particular, we want to find an interval of the form

Tolerance interval

that contains p% of the population with 100(1–α)% confidence, where  is the sample mean and s is the sample standard deviation

Tolerance interval

We provide the following estimate for k (due to Howe):

Estimate of k

where n is the sample size, χ2crit is the critical value of the chi-square distribution at α with df = n–1 degrees of freedom and zcrit is the critical value of the standard normal distribution at the value where the cdf is (p+1)/2. Thus

Chi-square stat

z-criticalGuenther recommends using wk instead of k, especially for smaller samples, where

w formula

There are also one sided tolerance intervals. In particular, we want to find the value of k such p% of the population falls in the interval (–ks, ∞) with 100(1–α)% confidence. The same value of k will ensure that p% of the population falls in the interval (-∞, +ks) with 100(1–α)% confidence.

We provide the following estimate for k (due to Natrella)

k-statistic (Natrella)

wherea and b

and

zp = NORM.S.INV(p)            zα = NORM.S.INV(α)

There is also an alternative estimate based on the noncentral t distribution, namely


k statistic

where tcrit is the critical value at α of the noncentral t distribution T(n–1, zpn). This can be calculated via the Real Statistics formula

tcrit = NT_INV(α, n–1, NORM.S.INV(p)*SQRT(n))

You can also estimate the sample size required to obtain a particular tolerance interval by using Excel’s Goal Seek capability.

Real Statistics Function: The Real Statistics Resource Pack contains the following function:

TOLERANCE_NORM(n, p, α, type) = k value of the tolerance interval for a normal distribution (actually k′ for the two-sided interval)

n = sample size, p = tolerance (default .9), α = significance level (default .05)

type = 2 (default) for two-sided interval, type = 1 for a one-side interval using a non-central t distribution and type = 0 for a one-sided interval using the Natrella approach.

 

Statistics for Beginners in Excel – Confidence Intervals for Sampling Distributions

 

Statistics for Beginners in Excel – Tolerance Interval using Real Statistics

Personal Career & Learning Guide for Data Analyst, Data Engineer and Data Scientist

Applied Machine Learning & Data Science Projects and Coding Recipes for Beginners

A list of FREE programming examples together with eTutorials & eBooks @ SETScholars

95% Discount on “Projects & Recipes, tutorials, ebooks”

Projects and Coding Recipes, eTutorials and eBooks: The best All-in-One resources for Data Analyst, Data Scientist, Machine Learning Engineer and Software Developer

Topics included: Classification, Clustering, Regression, Forecasting, Algorithms, Data Structures, Data Analytics & Data Science, Deep Learning, Machine Learning, Programming Languages and Software Tools & Packages.
(Discount is valid for limited time only)

Disclaimer: The information and code presented within this recipe/tutorial is only for educational and coaching purposes for beginners and developers. Anyone can practice and apply the recipe/tutorial presented here, but the reader is taking full responsibility for his/her actions. The author (content curator) of this recipe (code / program) has made every effort to ensure the accuracy of the information was correct at time of publication. The author (content curator) does not assume and hereby disclaims any liability to any party for any loss, damage, or disruption caused by errors or omissions, whether such errors or omissions result from accident, negligence, or any other cause. The information presented here could also be found in public knowledge domains.

Learn by Coding: v-Tutorials on Applied Machine Learning and Data Science for Beginners

Please do not waste your valuable time by watching videos, rather use end-to-end (Python and R) recipes from Professional Data Scientists to practice coding, and land the most demandable jobs in the fields of Predictive analytics & AI (Machine Learning and Data Science).

The objective is to guide the developers & analysts to “Learn how to Code” for Applied AI using end-to-end coding solutions, and unlock the world of opportunities!