AND or OR, that’s the question [Power / Sample Size]

posted by Helmut Homepage – Vienna, Austria, 2022-08-10 22:59 (710 d 13:46 ago) – Posting: # 23214
Views: 5,331

Hi Chris,

❝ But this exercise was still helpful since I naively expected the "OR" alternative to result in a smaller sample size compared with the "AND" alternative. I failed to realise that a type I error comes into play for the "OR" alternative, which explains a larger sample size (n=42 vs n=36).

[image]In my workshops I use to give this example:
  1. You toss a single ideal coin once and place a bet on heads (or tails, doesn’t matter). What’s the chance to win? Obviously ½.
  2. You toss it a second time and place the same bet as before. The chance to win this bet is again ½ (coins have a short memory span).
    What is the chance to win at least one of the bets?

❝ Thank you also for modifying the R program. I sincerely appreciate your time and efforts.

Welcome. I would suggest to use the original one because it is more flexible and shows the seed for reproducibility / documentation.

Answers based on the cumulative probability of the binomial distribution (hint: Bernoulli process). In [image]:
  1. pbinom(0, 1, 1/2)
    [1] 0.5

  2. pbinom(1, 2, 1/2)
    [1] 0.75
Trivial: The more often you try, the more likely is the chance to win at least one of the bets. Therefore, coming back to BE: In the OR-conjunction you have to adjust the level of the test.

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
 Admin contact
23,112 posts in 4,858 threads, 1,644 registered users;
72 visitors (0 registered, 72 guests [including 17 identified bots]).
Forum time: 12:45 CEST (Europe/Vienna)

It’s always fun to have your models validated,
but is way more fun to have them trashed.
Finding out you are completely wrong
is a great part of science.    G. Randall Gladstone

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz