Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test / se for estimated parameters in PLN #10

Closed
mahendra-mariadassou opened this issue Jul 12, 2018 · 3 comments
Closed

Add test / se for estimated parameters in PLN #10

mahendra-mariadassou opened this issue Jul 12, 2018 · 3 comments

Comments

@mahendra-mariadassou
Copy link
Collaborator

Implement score test score and/or Wald test to test significance of model parameters. Stick with univariate tests for the time being.

@mahendra-mariadassou
Copy link
Collaborator Author

As of af761b5, there are now fisher and standard_error S3 methods to compute a variational approximation of the Fisher information matrix and the corresponding standard errors for the model parameters.
Additional (empirical) work is needed to ensure that the corresponding tests / confidence intervals have proper Type I error / coverage

@jchiquet
Copy link
Member

jchiquet commented Feb 28, 2019

For the record, a conversation below between @mahendra-mariadassou and Stephane. It implies that

Fisher returns I(\theta) and for iid data, we usually have I_n(\theta) = n*I(\theta)
As a result, it must be multiplied by n before it is reversed (or divided by n). by n after inverting it) to have the asymptotic variance of \hat{\theta}. If you just reverse, you'll have the variance of \sqrt{n}
\hat{\theta}.
But if you just want to make univariate confidence intervals, you can use standard_error which directly returns the standard deviation of each of the coefficients of \theta. The function multiplies fisher by n, Conversely, retrieves the diagonal and reorganizes it into a matrix of
so that standard_error(myPLN)[i, j] returns the standard deviation of the estimator from coefficients(myPLN)[i, j]

@jchiquet
Copy link
Member

jchiquet commented Feb 6, 2023

Since version 1.0.0, variance estimation can be made for PLNfit either with jackknife or bootstrap. The variational approximation being too rough, we suppressed the direct interface to variational-based Fisher information matrix for estimating the variance (and the standard error).

@jchiquet jchiquet closed this as completed Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants