There are no built-in statistical functions. InfoPath uses the XPath functions, plus a few of its own internal functions.
To get statistical calculations, you will need to either have a way to manually calculate those using the existing limited math features InfoPath provides, or use code to do the calculations.