Statistics for Beginners in Excel – Power of One Sample Variance Testing

(Basic Statistics for Citizen Data Scientist)

Power of One Sample Variance Testing

Let sigma_0^2 represent the hypothetical variance and s2 the observed variance. Let x+crit be the right critical value (based on the null hypothesis with significance level α/2) and x-crit be the left critical value (two-tailed test) , i.e.

x-crit = CHIINV(1−α/2,n−1)               x+crit = CHIINV(α/2,n−1)

Let δ = sigma_0^2/s2. Then the beta value for the two-tailed test is given by

β = CHIDIST(δ*x-crit,n−1)−CHIDIST(δ*x+crit,n−1)

For the one-tailed test H0sigma^2 ≤ sigma_0^2, we use

xcrit= CHIINV(α,n−1)

β = 1−CHIDIST(δ*xcrit,n−1)

For the one-tailed test H0sigma^2 ≥ sigma_0^2, we use

xcrit = CHIINV(α,n−1)

β = CHIDIST(xcrit/δ,n−1)

Example 1: Calculate the power for the one-tailed and two-tailed tests from Example 3 of One Sample Variance Testing based on a sample of 50 pipes.

The results are shown in Figure 1: 73.4% for the one-tailed test and 63.9% for the two-tailed test.

 

Power one-sample variance

Figure 1 – Power of a one sample test of the variance

 

Real Statistics Functions: The following function is provided in the Real Statistics Resource  Pack:

VAR1_POWER(ratio, n, tails, α) = the power of a one sample chi-square variance test where ratio = sigma_0^2/s2 (effect size), n = the sample size, tails = # of tails: 1 or 2 (default) and α = alpha (default = .05).

VAR1_SIZE(ratio, 1−β, tails, α) = the minimum sample size required to achieve power of 1−β (default .80) in a one sample chi-square variance test where ratio = sigma_0^2/s2 (effect size), tails = # of tails: 1 or 2 (default) and α = alpha (default = .05).

For Example 1, VAR1_POWER(E7,E8,1,E10) = 0.733927 and VAR1_POWER(J7,J8,2,J10) = 0.638379, which is the same as the results shown in Figure 1.

Example 2: Calculate the sample size required to find an effect of size .64 with alpha = .05 and power of .80 for the one-tailed and two-tailed tests.

The one tailed test requires a sample size of VAR1_SIZE(.64, .80, 1, .05) = 67 and the two tailed test requires a sample of size VAR1_SIZE(.64) = VAR1_SIZE(.64, .80, 2, .05) = 86.

 

Statistics for Beginners in Excel – Confidence Intervals for Sampling Distributions

 

Statistics for Beginners in Excel – Power of One Sample Variance Testing

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!