L-functions, processes, and statistics in measuring economic inequality and actuarial risks