Asset pricing models use the normal distribution for p-values when debiased=True
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 1.1k
- Fork
- 203
- Merge trung bình
- 3 giờ 26 phút
- Pull request đã merge (30 ngày)
- 115
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bashtage/linearmodels
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
bashtage/linearmodels#831 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
IV: LIML kappa with an endogenous regressor spanned by the instruments, kappa's unit dependence, scale-dependent instrument rank checkCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
bashtage/linearmodels#823 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
bashtage/linearmodels#817 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
bashtage/linearmodels#780 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
bashtage/linearmodels#714 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bashtage/linearmodels
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
aws-samples/sample-per-model-bedrock#639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
awslabs/visual-asset-management-system#937 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
project-codeflare/codeflare-sdk#1195 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bump numpy dependencyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
pandas-dev/pandas-stubs#2051 ·
Maintainer thường phản hồi trong vòng 1 ngày