Fork me on GitHub

Hi everyone 🙂, how do I get the confidence interval in Clojure. Like with a list of data of orders each week `[40 0 60 30 ...]` which corresponds to each week based on index. I understand for mean, I can just reduce the data to get the sum and divide by number of weeks


fastmath lib has some functions for that: I, as an exercise, also did a naive implementation of confidence interval here: Bear in mind that I'm a noob in statistics but I hope you find these links useful


Thanks @U06BE1L6T for mentioning fastmath. There are also other types of intervals (or extents) based on different statistics. In the newest version we have BCa which returns corrected CI for skewed data: (thanks to @U01HZPM4P5X)

👍 6

Thanks @U1EP3BZ3Q @U06BE1L6T! I just went with ci it is good enough for my purposes! Am glad I managed to use clojure for my stochastic modelling assignment :D

👍 3