Numerical vs. Monte-Carlo Simulations
- Context: Mathematica
- Thread starter EngWiPy
- Start date
Click For Summary
Discussion Overview
The discussion revolves around the comparison of numerical integration using Mathematica's NIntegrate and Monte-Carlo simulations for evaluating an integral that lacks a known analytical solution. Participants explore the accuracy and reliability of both methods, particularly in the context of potential discrepancies between their results.
Discussion Character
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant notes a small constant gap between results from NIntegrate and Monte-Carlo simulations, questioning if this is due to numerical integration accuracy.
- Another participant expresses skepticism about the reliability of Monte-Carlo methods compared to NIntegrate, suggesting errors may stem from the Monte-Carlo approach.
- Concerns are raised about potential issues in Monte-Carlo simulations, including the quality of the random number generator, sample size, and numerical precision.
- Participants discuss the relationship between the integral and the expected value of a random variable, questioning how to fairly sample values from 0 to infinity.
- One participant emphasizes that the expected value requires an infinite number of samples, but they believe that generating \(10^6\) samples should yield results close to infinity.
- Another participant highlights the importance of understanding the range of values generated by the random number generator used in MATLAB.
- There is a suggestion to check the documentation for known weaknesses in the random number generator and to test how well the generated samples represent the expected distribution.
- Concerns are raised about the inherent errors in both numerical and Monte-Carlo methods, emphasizing that both approaches come with their own uncertainties.
- One participant questions the formulation of the Monte-Carlo equation, suggesting it may be flawed if it leads to impossible conditions.
- A suggestion is made to test NIntegrate with different methods to compare results further.
Areas of Agreement / Disagreement
Participants express differing views on the reliability of Monte-Carlo simulations compared to NIntegrate, with some advocating for the robustness of NIntegrate while others highlight potential pitfalls in the Monte-Carlo approach. The discussion remains unresolved regarding the source of discrepancies between the two methods.
Contextual Notes
Participants acknowledge that numerical methods, including Monte-Carlo simulations, are subject to limitations such as finite precision and the inability to represent continuous ranges accurately. These factors contribute to potential inaccuracies in the results.
Similar threads
- · Replies 13 ·
- · Replies 4 ·
- · Replies 3 ·
- · Replies 5 ·
- · Replies 1 ·
- · Replies 3 ·
- · Replies 27 ·
- · Replies 34 ·
- · Replies 5 ·
- · Replies 8 ·