gwpopulation_pipe.data_simulation.simulate_posterior

simulate_posterior(sample, fractional_sigma=0.1, n_samples=10000)[source]

Simulate a posterior distribution given an input sample.

This assumes uncorrelated uncertainties between different parameters.

Parameters:
sample: dict

The true parameter values of the event to simulate a posterior for.

fractional_sigma: float

Fractional uncertainty on each parameter.

n_samples: int

The number of samples to draw.

Returns:
posterior: pd.DataFrame

The simulated posterior samples.