openquake.hme.model_test_frameworks.relm.relm_test_functionsΒΆ
Utility functions for running tests in the RELM model test framework.
Module Attributes
|
def subdivide_observed_eqs_old(bin_gdf: GeoDataFrame, subcat_n_years: int): |
Functions
|
N-test using empirical (cumulative Poisson) distribution from sampled MFD counts. |
|
N-test using a negative binomial distribution (for temporally overdispersed earthquake production). |
|
N-test using a Poisson distribution. |
|
Evaluates whether the observed total event count falls within a Poisson confidence interval of the modeled rate. |
|
Samples random Poisson counts from each magnitude bin rate. |
|
Joint likelihood test (L-test). |
|
Magnitude consistency test (M-test). |
|
Calculates the log-likelihood of the observations (either binned_events or empirical_mfd) given the modeled rates (rate_mfd). |
|
N-test: compares the total observed earthquake count to the model prediction. |
|
Computes the S-test likelihood for a single spatial cell by comparing the observed MFD log-likelihood to stochastic MFD log-likelihoods. |
|
Runs the S-test likelihood computation for each spatial cell, optionally in parallel. |
|
Spatial consistency test (S-test). |
|
Calculates the log-likelihood of the observations (either binned_events or empirical_mfd) given the modeled rates (rate_mfd). |