Mathematical explanation of luck