pastas.solver.least_squares.LeastSquaresBase.ci_simulation ========================================================== .. py:method:: pastas.solver.least_squares.LeastSquaresBase.ci_simulation(n: int = 1000, alpha: float = 0.05, max_iter: int = 10, **kwargs) -> pandas.DataFrame Calculate the confidence interval for the simulation. :param n: Number of random samples drawn from the bivariate normal distribution to compute the confidence interval. Default is 1000. :type n: int, optional :param alpha: Significance level for the confidence interval. Default is 0.05, which corresponds to a 95% confidence interval. :type alpha: float, optional :param max_iter: Maximum number of iterations for truncated multivariate sampling, default is 10. Increase this value if number of accepted parameter samples is lower than n. :type max_iter: int, optional :param \*\*kwargs: Additional keyword arguments are passed to the `ml.simulate()` method. For example, `tmin` and `tmax` can be passed as keyword arguments to compute the confidence interval for a specific period. :returns: **data** -- DataFrame of length number of observations and two columns labeled 0.025 and 0.975 (numerical values) containing the 2.5% and 97.5% interval (for alpha=0.05) :rtype: Pandas.DataFrame .. rubric:: Notes The confidence interval shows the uncertainty in the simulation due to parameter uncertainty. In other words, there is a 95% probability that the true best-fit line for the observed data lies within the 95% confidence interval. .. !! processed by numpydoc !!