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
-
*Some settings are managed by your organization
by
rlowe44
4 hours, 33 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
6 hours, 47 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
7 hours, 12 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
16 hours, 12 minutes ago -
AI slop
by
Susan Bradley
15 hours, 23 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
17 hours, 29 minutes ago -
Two blank icons
by
CR2
3 hours, 2 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 2 hours ago -
End of 10
by
Alex5723
1 day, 5 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 hours, 58 minutes ago -
test post
by
gtd12345
1 day, 11 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 1 hour ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
17 hours, 18 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 15 hours ago -
Upgrading from Win 10
by
WSjcgc50
3 hours, 8 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
6 hours, 41 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 7 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 18 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 9 hours ago -
Are manuals extinct?
by
Susan Bradley
2 hours, 44 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 18 hours ago -
Network Issue
by
Casey H
2 days, 5 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 6 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 6 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 8 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 9 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 10 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 10 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 18 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
3 hours, 13 minutes 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.