I would like to construct a 1-sigma confidence interval for my 1D data. I don't know the underlying distribution, and it is strongly skewed, so standard deviation will not suffice. I see that people recommend using some CDF-based estimators like DKW. However, it looks difficult from the first glance, and, if possible I would like to avoid fully understanding what it does. I'm searching for a function (preferably in Python), where I would plug in an array of IID samples and get back an interval. I'm gonna use it for visual comparison of multiple different datasets, so it's ok if it is not very precise.
Edit: I was explained that what I seek is not a confidence interval, because I am interested in an interval predicting positions of future samples from the underlying distribution, not an interval for a parameter of this distribution. What I want is to find two numbers, $x_{\min}$ and $x_{\max}$, such that
- $x_{\max} > x_{\min}$
- $|x_{\max} - x_{\min}| \rightarrow \min$
- $\int^{x_{\max}}_{x_{\min}} f(x)dx = 1-\alpha$, where $\alpha = 1\%$ (as an example, I want a procedure where I can pick my own $\alpha \in (0,1]$)
and $f(x)$ is the underlying probability distribution of my data that I do not know. Again, I note that the solution need not be perfectly optimal