What would be a better way to calculate Confidence Interval (CI) for a proportion when the sample size is small and even the sample size is 1?
I am currently calculating CI for a Proportion in One Sample w/:
However, my sample size is very small, sometimes it is even 1. I also tried
An approximate (1−α)100% confidence interval for a proportion p of a small population using:
Specifically, I'm trying to implement those two formulas to calculate the CI for proportion. As you see on the graph below, at 2018-Q1, the blue group has no CI around it because there is 1 out of 1 ppl choosing that item at 2018-Q1. If using the Finite Population Correction (FPC), it doesn't correct the CI if N is 1. So, my question is that what would be the best statistical way to solve this small sample size issue with 100% proportion.
- It would be great if you can provide a package in python to calculate it? Thanks!