Compare Fisher information across observation schemes
Source:R/fisher_info.R
compare_fisher_info.RdFor a given parameter configuration, computes the observed Fisher information under Scheme 0 (system only), Scheme 1 (periodic inspection), and Scheme 2 (complete component data) via simulation.
Usage
compare_fisher_info(
shapes = NULL,
scales = NULL,
rates = NULL,
n = 200L,
delta = 1,
n_rep = 50L,
component = dfr_exponential()
)Arguments
- shapes
Numeric vector. Weibull shape parameters (Weibull only, or
NULLfor exponential).- scales
Numeric vector. Weibull scale parameters (Weibull only, or
NULLfor exponential).- rates
Numeric vector. Exponential rate parameters (exponential only, alternative to
shapes/scales).- n
Integer. Sample size per replicate.
- delta
Numeric scalar. Inspection interval width for Scheme 1.
- n_rep
Integer. Number of Monte Carlo replicates.
- component
A
dfr_distprototype (e.g.dfr_exponential()ordfr_weibull()) specifying the component family.
Value
A list with components:
scheme0_detNumeric vector of Scheme 0 information determinants (length
n_rep).scheme1_detNumeric vector of Scheme 1 information determinants.
scheme2_detNumeric vector of Scheme 2 (complete data) information determinants.
median_detNamed numeric vector of median determinants across schemes.
efficiency_01Ratio of median Scheme 0 to Scheme 1 determinant (< 1 means Scheme 1 is more informative).
efficiency_02Ratio of median Scheme 0 to Scheme 2 determinant.
efficiency_12Ratio of median Scheme 1 to Scheme 2 determinant.
n_validNamed integer vector of valid (non-NA) replicate counts per scheme.
Details
The determinant of the observed information matrix is used as a scalar summary. Efficiency ratios indicate relative information content: a ratio less than 1 means the denominator scheme carries more information.
For Scheme 2 (complete data), the Fisher information is computed analytically:
Exponential: \(I_{jj} = n / \lambda_j^2\) (diagonal).
Weibull: Block-diagonal with per-component 2x2 Fisher information matrices using the standard Weibull FIM formulas.
For Schemes 0 and 1, the observed information is computed numerically
via numDeriv::hessian of the negative log-likelihood evaluated
at the true parameter values.