floatcsep.extras.sequential_likelihood

floatcsep.extras.sequential_likelihood(gridded_forecasts, observed_catalogs, seed=None, random_numbers=None)[source]

Performs the likelihood test on Gridded Forecast using an Observed Catalog.

Note: The forecast and the observations should be scaled to the same time period before calling this function. This increases transparency as no assumptions are being made about the length of the forecasts. This is particularly important for gridded forecasts that supply their forecasts as rates.

Parameters:
  • gridded_forecasts – list csep.core.forecasts.GriddedForecast

  • observed_catalogs – list csep.core.catalogs.Catalog

  • timewindows – list str.

  • seed (int) – used fore reproducibility, and testing

  • random_numbers (numpy.ndarray) – random numbers used to override the random number generation. injection point for testing.

Returns:

csep.core.evaluations.EvaluationResult

Return type:

evaluation_result