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?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
6 hours, 30 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
2 hours, 13 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
5 hours, 4 minutes ago -
Discover the Best AI Tools for Everything
by
Alex5723
5 hours, 12 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
5 hours, 56 minutes ago -
Rufus is available from the MSFT Store
by
PL1
3 hours, 24 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 6 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
12 hours, 40 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
8 hours, 51 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 2 hours ago -
Office gets current release
by
Susan Bradley
1 day, 4 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 18 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 3 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 19 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 5 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 7 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 7 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 8 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 9 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
2 days, 21 hours ago -
Enabling Secureboot
by
ITguy
3 days, 4 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 17 hours ago -
No more rounded corners??
by
CWBillow
3 days, 12 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 2 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 5 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 8 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
4 days, 2 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 15 hours ago -
May preview updates
by
Susan Bradley
4 days, 2 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 18 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.