h0rton.tdlmc_utils.tdlmc_metrics

Module Contents

Functions

format_submission(summary) Format the summary into submission form for getting the TDLMC metrics cornerplot
get_goodness(h0_means, h0_errors, true_h0) Get the goodness of fit (chi square)
get_precision(h0_errors, true_h0) Get the precision, i.e. how well-constrained were the estimates on average?
get_accuracy(h0_means, true_h0) Get the accuracy, i.e. how close were the central estimates to the truth?
h0rton.tdlmc_utils.tdlmc_metrics.format_submission(summary)[source]

Format the summary into submission form for getting the TDLMC metrics cornerplot

h0rton.tdlmc_utils.tdlmc_metrics.get_goodness(h0_means, h0_errors, true_h0)[source]

Get the goodness of fit (chi square)

h0_means : np.array
central estimate of H0 for each lens
h0_errors : np.array
errors corresponding to the h0_means
true_h0 : np.array or float
the true H0
float
the goodness of fit metric
h0rton.tdlmc_utils.tdlmc_metrics.get_precision(h0_errors, true_h0)[source]

Get the precision, i.e. how well-constrained were the estimates on average?

h0_errors : np.array
errors corresponding to the h0_means
true_h0 : np.array or float
the true H0
float
the precision metric
h0rton.tdlmc_utils.tdlmc_metrics.get_accuracy(h0_means, true_h0)[source]

Get the accuracy, i.e. how close were the central estimates to the truth?

h0_means : np.array
central estimate of H0 for each lens
true_h0 : np.array or float
the true H0
float
the accuracy metric