Statistical type II error (beta), and power

1 min read

Even though I learned power analysis in elementary statistics class, I totally forget it because I never use it. As we have to put power analysis in our grant, I am forced to relearn this topic.

Definition: type II error:

  • null hypothesis should be rejected but we don’t
  • or, false negative (there is an effect but fail to detect it)

(Null hypothesis is usually boring, e.g. mean=0, or no difference between two samples etc. So null hypothesis usually means no effect, or negative. Rejecting null hypothesis is “finding positive effect” and thus usually “exciting”. )

Definition: the probability of type II error is called beta

Definition: power is 1 – beta

How to calculate beta (or power)?

You need (1) null hypothesis (2) alpha, type I error cut off, usually 0.05 (3) standard deviation (or distribution) of samples

Step:

  1. calculate the decision point (to reject or accept null hypo) based on your null hypo and alpha
  2. calculate beta based on the decision point above and (3)

Example:

You null hypothesis is “mean of A is 0”. You measured A 100 times. The mean is 1 and standard deviation is 10 (and thus the standard deviation of mean is 10/sqrt(100)=1). You are deciding if the null hypothesis should be rejected and what is beta if alpha is 0.05. You calculate and find the p value is 0.1587, which is bigger than 0.05 so you accept the null hypothsis.

Then what is the probability that this decision is indeed wrong (you accept null hypo but indeed null hypo is false)? or beta?

As you make decisions based on alpha = 0.05, that means your decision point of mean of sample is 1.65: if the mean of sample is bigger than 1.65, you reject null; if smaller than 1.65, you accept it (like in our case where mean is 1). So beta equals to the probability that you find mean of sample is <1.65, while the true mean is 1. And this probability is 0.74. And power is thus 0.26.

To increase power, you usually need to increase the sample size. In our case, as the standard deviation of sample is very high, we need a lot more samples. If our N = 400, then our decision point will become 0.83 and the power will increase to 0.63.



文献鸟 618 大优惠


写作助手,把中式英语变成专业英文


AI writing papers with real references


Want to receive new post notification? 有新文章通知我

第七十二期fNIRS Journal Club通知2026/6/6, 10am 曹家铭博士

随着近年来深度学习在DOT/fNIRS重建中的应用,研究者往往需要大规模地生成仿真数据,高性能的仿真和处理软件则显得尤为重要。来自澳门大学的曹家铭教授将介绍一款针对DOT的高性能光子仿真Python包
Wanling Zhu
10 sec read

第七十一期fNIRS Journal Club视频 段海军团队

Youtube: https://youtu.be/lMuG2bY4pvs 优酷:https://v.youku.com/v_show/id_XNjUyODE0NzI3Ng==.html 尽管已有成瘾
Wanling Zhu
18 sec read

第七十一期fNIRS Journal Club通知2026/5/9, 10am 段海军团队

尽管已有成瘾研究对毒品渴求的神经生物学机制进行了深入探索,但反复毒品吸食与戒断发作对人类社会行为的影响迄今仍尚未明晰。陕西师范大学段海军课题组的王一凡将介绍他们结合fNIRS超扫描技术与人际互动范式,
Wanling Zhu
13 sec read

2 Replies to “Statistical type II error (beta), and power”

  1. Hi,
    I came through your article while i was searching on how to answer some statistic questions posted to me. I hope you are generous enough probably to help me out with the questions as statistics are totally beyond my field.

    The questions are: Calculate the coeeficient of variance and use it to determine the power of the study.

    Here is the scenario:
    We have 1 group of 22 subjects which was divided into 2 groups. Each group will be given TEST product or REFERENCE product and blood samples will be taken. The group will be switched to receive the other treatment after 1 week wash out period, hence yielding 22 readings each for TEST & REF.

    For Cmax, Mean TESTcmax = 11.43 ng/ml ; REFcmax = 10.27 ng/ml
    Standard deviation Cmax: TESTstdv = 5.88 ; REFstdv= 7.26

    You can find the Anova table here:
    http://answers.yahoo.com/question/index?qid=20140225204032AA9t1nP

    Hope you have your reply soon.

    TQ

Leave a Reply

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