mc_valor_promedio_1d
Estimate a definite integral using mean-value Monte Carlo, yielding the integral value, confidence interval, and sample statistics.
Instructions
Estimate ∫ₐᵇ f(x) dx with the mean-value Monte Carlo method.
Args: func_str: Math expression in x. a, b: Integration limits (b > a). N: Number of samples. seed: Optional RNG seed for reproducibility. precision: Rounding digits. nivel_confianza: Confidence level in (0, 1).
Returns: Dict with the estimate, confidence interval and sample statistics.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| N | No | ||
| a | Yes | ||
| b | Yes | ||
| seed | No | ||
| func_str | Yes | ||
| precision | No | ||
| nivel_confianza | No |