Asset pricing models use the normal distribution for p-values when debiased=True
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
Direzione di ricerca
The inference is in the asset pricing models: TradedFactorModel, LinearFactorModel and LinearFactorModelGMM. Compare their p-value code with the IV and panel models, which already use the t and F distributions when debiased=True. The repro in the issue, run on the French dataset, shows the mismatch. Choosing degrees of freedom per estimator is a design decision for the maintainer, so agree on it before writing code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
With debiased=True, the IV and panel models switch the reference distribution of their t-tests to the t distribution, and of their Wald tests to F. The asset pricing models (TradedFactorModel, LinearFactorModel, LinearFactorModelGMM) always use the normal distribution, so debiased=True only changes the covariance:
import numpy as np
from scipy import stats
from linearmodels.asset_pricing import TradedFactorModel
from linearmodels.datasets import french
data = french.load()
res = TradedFactorModel(
data[["S1V1", "S1V5", "S5V1", "S5V5"]], data[["MktRF", "SMB", "HML"]]
).fit(debiased=True)
normal = 2 * stats.norm.sf(np.abs(res.tstats))
print(np.allclose(res.pvalues, normal)) # True
Using the t distribution needs a choice of degrees of freedom for each estimator, e.g. T - 1 for the time-series regressions of the traded model, or T - k, and something suitable for the two-pass and GMM estimators. It also changes the p-values. In 7.1 the docstrings say that the normal distribution is used.
Deferred from 7.1.
- Lingua principale
- Python
- Stelle
- 1.1k
- Fork
- 203
- Merge medio
- 3h 25m
- PR unite (30g)
- 116
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bashtage/linearmodels
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
bashtage/linearmodels#831 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
IV: LIML kappa with an endogenous regressor spanned by the instruments, kappa's unit dependence, scale-dependent instrument rank checkForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
bashtage/linearmodels#823 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
bashtage/linearmodels#817 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
bashtage/linearmodels#780 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
bashtage/linearmodels#714 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di bashtage/linearmodels
Issue simili
-
follow-up needs-triage S3: minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
manaflow-ai/cmux#36856 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue help wanted
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Shell framework build fails at "copy the shader libraries": the iOS shader libraries are now one file b-<chain>.imgForse già presa @xiaofeng-han l’ha presa oggi. Apertabuild ios
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno