make getConfidenceIntervals a global function because not all classes are subclass of CoreObject