I'd say you're going to be looking a java. Although. How accurate do the stats need to be and how complicated are the statistical functions?
If the functions are no very complex it may be quicker to get MySQL to cover it.
If the stats don't need to be very accurate you could set up a script on a cron job and then build static pages or populate a lookup table.
Just out of interest what kind of app is it?
Rob