Skip to content

SUMM/ENH: TModel use t-distribution for estimation #3266

Open

Description

@josef-pkt

(coming back to t-distribution MLE after robust readings)

motivation: heavy-tailed distribution but not clear outliers

current: TModel, TArma in miscmodels, t-based covariance in outlier robust cov PR
sandbox.distribution has MVT as basic distribution class, including rvs for simulation, but no fit method.
sandbox.distribution also has a class MVElliptical, which was supposed to work as a superclass for various elliptically symmetric distributions, but AFAIR I didn't do much or anything with it.

(terminology: I'm not sure what to call the multivariate t scatter/cov/shape matrix Sigma.
cov_y = Sigma * df / (df - 2) if df > 2
same terminology problem for all elliptical distributions. Taylor uses "scatter" where scaling factor is indeterminate. robust literature uses "shape" for cov scaled so that det(cov) = 1
)

extension:

  • heterogeneous kurtosis or degrees of freedom (varying by variable), copulas
  • skew-t (skew-elliptical distribution ?)

technical notes:

Property 4 in Lange, Little, Taylor 1989: Mahalanobis distance is F-distributed
(I couldn't find that property while searching for it with google)
Appendix B has score for general elliptically symmetric models and expected information matrix for multivariate t model.
Another important property: estimates for mean parameter and cov, df are asymptotically uncorrelated, i.e. block-diagonal EIM. This holds for all elliptically symmetric models. (As a consequence we can concentrate on inference for mean parameters separately from cov, df as in GLM/LEF.)
They also mention generalized power exponential family as another elliptically symmetric distribution family that includes also short tails, but is computationally and analytically less tractable.

Lange, Kenneth L., Roderick J. A. Little, and Jeremy M. G. Taylor. 1989. “Robust Statistical Modeling Using the T Distribution.” Journal of the American Statistical Association 84 (408): 881–96. doi:10.2307/2290063.

Activity

  1. josef-pkt commented on Nov 14, 2016

    @josef-pkt
    MemberAuthor

    estimation under elliptically symmetric distributions, I guess we should be able to get some of them in a generic way

    i.e. multivariate linear model like Y = X B + e, y is p-variate, e is elliptically symmetric (0, s^2 Sigma)

    estimate B by MultivariateWLS
    estimate (unscaled) scatter by Tyler
    estimate scale s by MLE
    (similar to M-estimators for multivariate linear model)

    these two article include a list of symmetric elliptical distributions:
    Batsidis, Apostolos, Nirian Martin, Leandro Pardo, and Konstantinos Zografos. 2014. “A Necessary Power Divergence-Type Family of Tests for Testing Elliptical Symmetry.” Journal of Statistical Computation and Simulation 84 (1): 57–83. doi:10.1080/00949655.2012.694437.

    Li, Run-Ze, Kai-Tai Fang, and Li-Xing Zhu. 1997. “Some Q-Q Probability Plots to Test Spherical and Elliptical Symmetry.” Journal of Computational and Graphical Statistics 6 (4): 435–50. doi:10.1080/10618600.1997.10474752.

    and a bit of finance with tyler scatter and elliptical (and skew-elliptical) distributions
    Frahm, Gabriel, and Uwe Jaekel. 2008. “Tyler’s M-Estimator, Random Matrix Theory, and Generalized Elliptical Distributions with Applications to Finance.” SSRN Scholarly Paper ID 1287683. Rochester, NY: Social Science Research Network. https://papers.ssrn.com/abstract=1287683.

    (I didn't read any of these three articles.)

  2. josef-pkt commented on Nov 14, 2016

    @josef-pkt
    MemberAuthor

    another general implementation idea for RLM and something like this here:
    Follow the pattern of the current GLM and add scipy optimizers as alternative to IRLS or similar estimating equation iterations. We could also use the iterative estimators as starting values for the full MLE with scipy optimizers. Generic MLE tools should give us things like sandwich robust cov_type, and more makes it more easily extendable to nonlinear estimator, or to auxiliary params like df in t.

  3. josef-pkt commented on Sep 30, 2021

    @josef-pkt
    MemberAuthor

    I'm looking at TModel again as case for dispersion/heteroscedasticity modelling

    Taylor, J. D. & Verbyla, A. P (2004). Joint modelling of the location and scale parameters of the
    t-distribution. Statistical Modelling 4, 91-112.

    Julian Taylor is also author of R package hett that I had used in the unit tests for miscmodels.TModel

    skimming parts of that article again, maybe properly implementing the TModel is not so quick.

    one feature: They show or state that Fisher expected information matrix is block diagonal. Mean parameters are asymptotically orthogonal to scale and df parameter. scale and df parameter are not orthogonal when the latter is estimated.
    The likelihood can become unbound when df -> 0, but I think we want to restrict df to be at least larger than 1, or >2 for variance to be finite.
    (Based on the docs of hett, only cov_params based on expected Hessian (EIM) is available, and not the one based on OIM

    They use an alternating scoring algorithm for optimization.

    With orthogonal mean, we could also add t-distribution as a norm to RLM.
    (I have already something like that in the multivariate case for estimating scatter matrix.)
    But I guess we still need some scale estimate. Scale is not equal to variance in t-distribution. I have the same problem in multivariate case, the scatter matrix is normed and does not include scaling for the t-distribution.
    In RLM scale interpretation wouldn't matter as long as we just treat it as a norm for an M-estimator, without explicitly estimatiing a t-distributed model.

    However, for #7639 I want generic full MLE, so it is easy to use as pattern for other distributions. We will not get exactly the same results as hett package. (e.g. OIM instead of EIM)

    update
    Francisco Jose´ A. Cysneirosa, Gilberto A. Paulab, Manuel Galea Heteroscedastic symmetrical linear models

    state orthogonal, block-diagonal fisher EIM for all symmetric distributions, between loc and scale. They don't consider other parameters like df in t-distribution.
    (properties of elliptical, symmetric distributions.)

  4. josef-pkt commented on Sep 30, 2021

    @josef-pkt
    MemberAuthor

    confusing scale versus scale**2 (variance).

    in TModel (and my current heteroscedastic version) scale is as in scipy distributions, for rescaling or standardizing random variable.
    scale in most of our models like LS and GLM is squared, ,i.e. variance estimate.

    Similarly, in AFT models, the accelerator multiplies the base rv, i.e. precision, 1 / scale is square root of a variance parameter.

    e.g. currently to have resid**2 and predicted variance on the same scale, I do

    plt.plot(exog[:, 1], resid**2, 'o')
    plt.plot(exog[:, 1], s**2 * df / (df-2), 'o', label="t-het")
    

    s is prdicted "scale" in heteroscedastic T model with one slope regressonr plus constant
    df / (df-2) is variance of standard t distribution.

    (I don't remember if precision in BetaModel is square or not.)

    I need to change this,
    WLS, and for example Romano and Wolf use weights which are also square terms.
    rescale by sqrt(scale) or sqrt(v)

  5. josef-pkt commented on Dec 24, 2021

    @josef-pkt
    MemberAuthor

    I need to collect distribution specific post-estimation results, and references for those

    e.g. I found this article related to dispersion modelling and specification tests #7639 #7894
    (I didn't look at the article)

    Lin, Jin-Guan, Li-Xing Zhu, and Feng-Chang Xie. 2009. “Heteroscedasticity Diagnostics for t Linear Regression Models.” Metrika 70 (1): 59–77. https://doi.org/10.1007/s00184-008-0179-2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions