So I got this 2 functions that calculates the Confidence Interval for an input sample. My desirable output is the following:
but I got this one:
The data