Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Determine Valid Sample Size from a Population - Any UDFs or Formulas?

No question here, just a function for the archive.

For what it's worth, here's a quick function for getting a "quick"
estimate for a valid sample size based on the assumptions below.


Function SampleSizeQuickAt95PercentCL(ConfidenceInterval As Double,
Population As Double) As Long
'Calculates a "quick" necessary sample size from a Finite Population
'based on these assumptions:
'1. Normal Distribution
'2. Confidence Level = 95%
'3. Response Rate = 50%
'References: http://www.surveysystem.com/sscalc.htm

Dim SampleSize As Long
Dim CorrectionForFinitePopulation As Long

On Error Resume Next
SampleSize = ((1.96 * 2) * 0.5 * (1 - 0.5)) / (ConfidenceInterval
* ConfidenceInterval)
CorrectionForFinitePopulation = SampleSize / (1 + ((SampleSize -
1) / Population))

SampleSizeQuickAt95PercentCL = CorrectionForFinitePopulation

End Function
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sample vs. population proportion using a z-score in excel Christopher[_3_] Excel Worksheet Functions 4 October 29th 08 12:57 AM
Display sample population size in chart i.e. n=X Dulouz Charts and Charting in Excel 1 December 27th 07 09:42 AM
Sample Size and Confidence Interval Douglas Eckert Excel Discussion (Misc queries) 2 December 26th 07 07:30 PM
Pull a Sample from a Population dzd&confused Excel Worksheet Functions 3 August 2nd 07 03:34 PM
Formula to determine number of Standard Deviations based on % of population Paul D. Simon Excel Worksheet Functions 8 September 15th 05 03:08 PM


All times are GMT +1. The time now is 02:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"