Ok, it has been a long time since college, but I need the formula for selecting a sample size with say 95% assurance. For example, I have 1000 coffee cups, I need 95% assurance that all the cups hold more than 1 cup of liquid. What size sample should I select and test to achieve 95% assurance?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
sample size (Excel 2000 )
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » sample size (Excel 2000 )
- This topic has 7 replies, 6 voices, and was last updated 23 years, 1 month ago.
Viewing 5 reply threadsAuthorReplies-
WSBat17
AskWoody Lounger -
WStberndt
AskWoody Lounger -
WSSammyB
AskWoody Lounger -
zeddy
AskWoody_MVP
-
-
WSHans Pottel
AskWoody LoungerApril 12, 2002 at 4:21 pm #582034Patty,
Can you please rephrase your question? Do you want to take a sample from the 1000 cups, control that sample and based on the obtained results say something about the complete lot? Or do you mean something different?
Typical question in quality control is: what is the sample size I need to test from a much larger lot of products, given an acceptable quality level (AQL of say 1%), with a producer’s risk of 5% and a consumer’s risk of 10%. An on top of that, how many defects should I allow in the sample to accept the whole batch? -
WSHans Pottel
AskWoody LoungerApril 14, 2002 at 4:37 pm #582321If I understand your question and based on Sammy’s last post where he talks about volumes, then I would say that you can be 100% sure that all the cups hold more than one cup as soon as the accumulated volume of the sample exceeds the maximum volume of one cup. So, take one cup at a time, measure its volume, then take another cup, measure its volume again, check if the sum of volumes exceeds the maximum volume of one cup; if not, then take another sample etc. Your sample size can be 2 (the minimum) up to the complete batch if the cups do not contain that much.
There are quite many formulas to calculate sample sizes, but it should be clear if we are talking about continuous variables (like the volume of a cup) or about counts (like the number of cups). The approach is quite different. Sample size calculations for continuous variables are indeed based on standard deviations and average values (the normal distribution; normdist and tdist are Excel’s built-in functions to use), but sample sizes for counts and proportions are based on other distributions (poisson, hypergeomdist, binomdist are Excel’s built-in functions that might help here).
e.g. the 1.96 value Sammy is using, corresponds to NORMINV(0.975, 0, 1) which is the value corresponding to a probability of 97.5% (the normal distribution is symmetrical, so to obtain a 95% confidence, you should use the 97.5% probability in the NORMINV function: (100-97.5%) + 2.5% = 5%. Using the standard normal distribution (meaning average = 0 and standard deviation = 1) you obtain 1.96.
The formula of Sammy gives the absolute minimum sample size for this kind of calculations. -
WSSammyB
AskWoody LoungerApril 15, 2002 at 11:20 am #582217Patty, here’s an answer from my Stats guru. He knows his statistics, but can’t remember his Lounge ID & password.
If you know the standard deviation of the population of coffee cup volumes,
the formula you need is:n =(t*s/d)^2 (round up)
where: t=1.96 for 95% confidence
s is the standard deviation of the population of coffee cup volumes
d is the difference between the average cup volume and one cupIf you don’t know s, measure nine cups to get an estimate of s. Then, if
n<= 9 you are done. Otherwise measure (n-9) more cups, and resolve with a
new estimate of s. Repeat until you have measured enough. Of course, the
measured cups must be randomly selected from the population.If the average cup volume is less than one cup, they aren't cups…
This is Sam again. Well, it looks straight-forward, but how does 95% confidence relate to t=1.96? Guess I took too many naps, in my Stats class.
Viewing 5 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
1 hour, 4 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
1 hour, 16 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
1 hour, 28 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
1 hour, 34 minutes ago -
Lumma malware takedown
by
EyesOnWindows
8 hours, 47 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
10 hours, 21 minutes ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
10 hours, 15 minutes ago -
Meet Gemini in Chrome
by
Alex5723
14 hours, 21 minutes ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
14 hours, 29 minutes ago -
Trump signs Take It Down Act
by
Alex5723
22 hours, 28 minutes ago -
Do you have a maintenance window?
by
Susan Bradley
9 hours, 37 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
40 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 1 hour ago -
Help with WD usb driver on Windows 11
by
Tex265
1 day, 6 hours ago -
hibernate activation
by
e_belmont
1 day, 10 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
1 day, 14 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
1 day, 17 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
1 day, 17 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
13 hours, 41 minutes ago -
Out of band for Windows 10
by
Susan Bradley
1 day, 22 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 5 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
2 days, 12 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
8 hours, 41 minutes ago -
Auto Time Zone Adjustment
by
wadeer
2 days, 17 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
2 days, 15 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
14 hours, 32 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
1 day, 8 hours ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
8 hours, 10 minutes ago -
Apps included with macOS
by
Will Fastie
1 day, 12 hours ago -
Xfinity home internet
by
MrJimPhelps
1 day, 9 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.