ToleranceFactor
ToleranceFactor computes the exact tolerance factor for the two-sided tolerance interval
Author: Viktor Witkovsky

@Pete: The presented result of ToleranceFactorGK(30,.95,.95) = 2.5549 (2.554892813277693) is in good agreement with the factor K = 2.555 from Table B2 in Krishnamoorthy & Mathew (2009, p. 368), as well as with the numerical output of R package tolerance:
K.factor(30, P = 0.95, side = 2, method = "EXACT", m = 50) = 2.554893.

The problem with many other sources is that they are based either on approximations or on not well documented method/algorithm.

@Pete: The presented result of ToleranceFactorGK(30,.95,.95) = 2.5549 (2.554892813277693) is in good agreement with the factor K = 2.555 from Table B2 in Krishnamoorthy & Mathew (2009, p. 368), as well as with the numerical output of R package tolerance:
K.factor(30, P = 0.95, side = 2, method = "EXACT", m = 50) = 2.554893.

The problem with many other sources is that they are based either on approximations or on not well documented method/algorithm.

14 Mar 2014

ToleranceFactor
ToleranceFactor computes the exact tolerance factor for the two-sided tolerance interval
Author: Viktor Witkovsky

Prima facie, this looks well written and well documented. It seems to give results that are highly correlated with, but slightly from, various websites (all of which agree with each other). For example:

>> ToleranceFactorGK(30,.95,.95)
ans = 2.5549

Whereas the following all give it as 2.549
- http://statpages.org/tolintvl.html
- http://www.astm.org/standardization-news/data-points/statistical-intervals-part-3-nd11.html
- http://www.webapps.cee.vt.edu/ewr/environmental/teach/smprimer/intervals/interval.html

The difference is small though, particularly at large N, and any fault may lie with the websites rather than this function (unsure). Any explanation for this difference would be much appreciated.

@Pete: The presented result of ToleranceFactorGK(30,.95,.95) = 2.5549 (2.554892813277693) is in good agreement with the factor K = 2.555 from Table B2 in Krishnamoorthy & Mathew (2009, p. 368), as well as with the numerical output of R package tolerance:
K.factor(30, P = 0.95, side = 2, method = "EXACT", m = 50) = 2.554893.
The problem with many other sources is that they are based either on approximations or on not well documented method/algorithm.

Comment only

14 Mar 2014

ToleranceFactor
ToleranceFactor computes the exact tolerance factor for the two-sided tolerance interval

Prima facie, this looks well written and well documented. It seems to give results that are highly correlated with, but slightly from, various websites (all of which agree with each other). For example:
>> ToleranceFactorGK(30,.95,.95)
ans = 2.5549
Whereas the following all give it as 2.549
- http://statpages.org/tolintvl.html
- http://www.astm.org/standardization-news/data-points/statistical-intervals-part-3-nd11.html
- http://www.webapps.cee.vt.edu/ewr/environmental/teach/smprimer/intervals/interval.html
The difference is small though, particularly at large N, and any fault may lie with the websites rather than this function (unsure). Any explanation for this difference would be much appreciated.
Thanks for posting

Comment only