Implementation of statistical methodologies in Objective-C