Performance evaluation of Monte Carlo simulation: case study of Monte Carlo approximation versus analytical solution for a chi-squared distribution