---
# System prepended metadata

title: Untitled

---

Sample Size Calculator: Explain The Sample Size Calculation With An Example.
![](https://i.imgur.com/5S6KDvd.jpg)

The sample size is a statistical method. It considers the number of observations. It also replicates the repetition of an experiment used to calculate a particular phenomenon's variability. These factors are contributing and important in a statistical sample.


It is an important part of an empirical study. It states that inference can be made about a population based on a sample.
Moreover, Sample Sizes are used to determine the different representations of a population. The sample size represents a part of the population. It can be used for any calculation or to study any survey.

To understand the Calculation. Determine and set the margin error. Or you can also consider the maximum distance. It can be used for the sample to calculate to check if the sample deviates from the true value.
To carry on the Calculation further using the confidence level interval. Set the term to ± before the margin error. You can solve the resulting equation for a sample size. It is represented by n.

The Calculation by the equation of sample size is:

For Unlimited Population= n=z²xp(1-p)/ε²

For Finite Population: n'=n/z2xp(1-p)/ε²N 

Here z=Z score 

ε=Margin Error 
N=Population Size 
p̂=Population Proportion.


Example 
Calculate the sample size required to determine the proportion of people shopping at a shopping mall. Suppose some people in the US who identify as vegan have a 95 per cent confidence. Then the margin of Error is 5%. Suppose a population proportion is 0.5 in an unlimited population size. Note that z is for a 95% confidence level. It is 1.96
Using the following formula, you can determine the confidence level.

n=z²×p̂(1-p̂)/ε²

n=1.96²×0.5(1-0.5)/0.05²
=384.16 

So as per the above Calculation, a sample size of 387 is important. Some studies suggest approximately 6% of the US population in this case. To identify as vegan. So instead of 0.05, 0.06 will be used.

So 40 out of 500 people entered a supermarket. It is on a given date in which p̂ would represent vegan.

Conclusion.
Our AllCalculator.net Sample Size Calculator calculates the exact sample size for a given stat.
