analysis.BMorePositiveBValueEstimator#

class seismostats.analysis.BMorePositiveBValueEstimator#

Estimator to calculate the b-value and other parameters of the Gutenberg-Richter (GR) law using earthquake pairs for which the latter is the first one that is larger than the former by some margin, \(m_j \ge m_{i} + dmc\).

Source:

E. Lippiello and G. Petrillo. Journal of Geophysical Research: Solid Earth, 129(2):e2023JB027849, 2024.

Examples

>>> import numpy as np
>>> from seismostats.analysis import BMorePositiveBValueEstimator

>>> magnitudes = np.array([2. , 2.5, 2.1, 2.2, 2.5, 2.2, 2.6, 2.3,
...                        2.7, 2.2, 2.4, 2. , 2.7, 2.2, 2.3, 2.1,
...                        2.4, 2.6, 2.2, 2.2, 2.7, 2.4, 2.2, 2.5])

>>> my_estimator = BMorePositiveBValueEstimator()
>>> my_estimator.calculate(
...     magnitudes=magnitudes, mc=2.0, delta_m=0.1, dmc=0.2)

>>> my_estimator.b_value

2.253092817258629

Attributes

b_value

The b-value of the Gutenberg-Richter law.

beta

The beta value of the Gutenberg-Richter law.

delta_m

Bin size of the discretized magnitudes.

dmc

The dmc value used for the calculation.

magnitudes

The positive magnitude differences used for the calculation.

mc

The completeness magnitude used to estimate the b-value.

n

Number of magnitudes used to estimate the b-value.

std

Bootstrap uncertainty of the b-value estimate.

std_beta

Bootstrap uncertainty of the beta estimate.

value

The b-value of the Gutenberg-Richter law.

weights

The weights used to estimate the b-value.

Methods

calculate

Calculates the b-value of the Gutenberg-Richter (GR) law.

p_lilliefors

p-value of the Lilliefors test.