Maximum Likelihood With a Time Varying Parameter
Alberto Lanconelli, Christopher S. A. Lauria

TL;DR
This paper introduces a recursive stochastic gradient descent method for tracking a time-varying parameter in probabilistic models, proving convergence and illustrating its effectiveness with exponential family distributions.
Contribution
It proposes a novel recursive scheme using the log-likelihood as a gain function for tracking time-varying parameters, with proven convergence properties.
Findings
Convergence in mean-square error near the true parameter
Effective tracking demonstrated with exponential family distributions
The method adapts to changing parameters in real-time
Abstract
We consider the problem of tracking an unknown time varying parameter that characterizes the probabilistic evolution of a sequence of independent observations. To this aim, we propose a stochastic gradient descent-based recursive scheme in which the log-likelihood of the observations acts as time varying gain function. We prove convergence in mean-square error in a suitable neighbourhood of the unknown time varying parameter and illustrate the details of our findings in the case where data are generated from distributions belonging to the exponential family.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsStatistical Methods and Inference · Stochastic processes and financial applications · Insurance, Mortality, Demography, Risk Management
Maximum Likelihood With a Time Varying Parameter
Alberto Lanconelli Dipartimento di Scienze Statistiche Paolo Fortunati, Università di Bologna, Bologna, Italy. e-mail: [email protected]
Christopher S. A. Lauria Dipartimento di Scienze Statistiche Paolo Fortunati, Università di Bologna, Bologna, Italy. e-mail: [email protected]
Abstract
We consider the problem of tracking an unknown time varying parameter that characterizes the probabilistic evolution of a sequence of independent observations. To this aim, we propose a stochastic gradient descent-based recursive scheme in which the log-likelihood of the observations acts as time varying gain function. We prove convergence in mean-square error in a suitable neighbourhood of the unknown time varying parameter and illustrate the details of our findings in the case where data are generated from distributions belonging to the exponential family.
Key words and phrases: stochastic gradient descent, maxim likelihood, exponential family.
AMS 2020 classification: 65K05, 62F12.
1 Introduction
When estimating unknown parameters in a dynamic model the optimum solution to the parameter estimation problem may not remain constant. Specifically, the optimal values of the model parameters may change through time because of the evolution of the underlying process: finding them is, in general, not straightforward. A survey of basic techniques for tracking the time-varying dynamics of a system is provided in [Ljung and Gunnarsson, 1990] where recursive algorithms in non-stationary stochastic optimization are analysed under different assumptions about the true system’s variations, see also [Simonetto et al., 2020] for a review in a purely deterministic setting. In [Delyon and Juditsky, 1995] the problem of tracking the random drifting parameters of a linear regression system is tackled, and [Zhu and Spall, 2016] builds a computable tracking error bound for how a stochastic approximation with constant gain keeps up with a non-stationary target. Successively, [Wilson et al., 2019] introduces a framework for sequentially solving convex stochastic minimization problems, where the distance between successive minimizers is bounded. The minimization problems are then solved by sequentially applying an optimization algorithm, such as stochastic gradient descent (SGD). In a similar setting, [Cao et al., 2019] establishes an upper bound on the regret of a projected SGD algorithm with respect to the drift of the dynamic optima, while [Cutler et al., 2021] provides novel non-asymptotic convergence guarantees for stochastic algorithms with iterate averaging.
We study time-varying stochastic optimization in a general statistical setting where we assume we are given a sequence of independent observations with associated densities possessing a parameter that changes through time. In such a framework a problem of interest concerns finding a useful estimator of the time varying parameter at a certain time - generalizing the classical problem of parameter estimation from the static setting to the time varying parameter setting. Ideally, one would like to find a sequence of estimators that track the time varying parameter through time as closely as possible. We show that, under some assumptions, utilizing the celebrated SGD algorithm [Robbins and Monro, 1951] produces a sequence of estimators that will eventually track the time varying parameter - up to a neighborhood - as the number of observations increase.
Established in a general setting that intersects with the frameworks utilized in [Cao et al., 2019], [Cutler et al., 2021] and [Wilson et al., 2019], our results differ from previous work mainly in one aspect: that our objective functions have the specific form of expected log likelihoods, a dissimilarity that will be exploited by utilizing their informational theoretical properties.
The work we present is also linked to the class of score driven models [Creal et al., 2013]. Score driven models are a class of observation driven models (here we are using the terminology introduced by [Cox et al., 1981]) that update the dynamics of the time varying parameter through the score of the conditional distribution of the observations. Specifically, the same proof technique we utilize to obtain our result can be used to show that a -so called- Newton-score update [Blasques et al., 2015], with the parameter that multiplies the score appropriately chosen, will track the time varying parameter of interest trough time even under possible model misspecificaiton.
A final way to interpret the results we present in this work is as robustness results for a one batch stochastic gradient procedure in the case we are incorrectly assuming that our observations are identically distributed. Indeed, the results show that even if we incorrectly assumed that the true parameter is static (we have IID observations) utilizing a stochastic gradient algorithm with a time dependent single sized batch to optimize the log-likelihood allows us to track the pseudo true time varying parameter up to a neighborhood if it is not moving wildly.
The paper is organised as follows: in Section 2 we list and discuss the assumptions of our framework and state the main result. We then present a class of examples given by the exponential family and discuss the performance of SGD with respect to the one observation maximum likelihood estimator at each time. In the third section we provide a detailed proof of our main result.
2 Statement of the main result
Let be a sequence of independent -dimensional random vectors defined on a common probability space . In the sequel we will write for the expected value with respect to the probability measure , for the Euclidean norm in and for .
We assume that for any the random vector possesses a joint probability density function which depends on the -dimensional parameter , in symbols . Our aim is to estimate the sequence through the observed values : To this aim we choose and utilize the SGD algorithm
[TABLE]
Utilizing SGD to attempt to track is motivated by the principle underlying classical maximum likelihood estimation: in fact, under some canonical assumptions we will present below, will be the maximum of the expected log-likelihood . Thus, finding a sequence of estimators that track the time varying parameter as closely as possible is connected to finding the maxima of a sequence of expected log-likelihoods, a generalization of the classical static framework. Since we have no direct access to the expected log-likelihoods, but only a singe observation for each time , we categorize the problem as a time varying stochastic optimization problem.
The assumptions we will require to obtain our result are the following.
Assumption 2.1** (Smoothness of the log-likelihood).**
The function
[TABLE]
is twice continuously differentiable for all ; moreover,
[TABLE]
for all and .
Assumption 2.2** (Strong convexity).**
The function in (2.2) is strongly convex uniformly with respect to : i.e., there exists a positive constant such that for all the matrix is positive semi-definite. Here, stands for the Hessian matrix of the function in (2.2) while denotes the identity matrix.
Assumption 2.3** (Lipschitz continuity of the gradient).**
The function
[TABLE]
is globally Lipschitz continuous uniformly with respect to : i.e., there exists a positive constant such that for all we have
[TABLE]
Assumptions 2.2 and 2.3 are classical in the optimization literature, see for instance [Boyd and Vandenberghe, 2004] and[Bottou et al., 2018]; we have utilized the versions of [Nesterov, 2014]. We remark that Assumption 2.2 may seem excessively restrictive at first glance, but we will present in Example 2.9 below a large family of examples where it holds.
Remark 2.4**.**
Assumptions 2.1 and 2.3 imply that
[TABLE]
where we have denoted , i.e. the trace of Fisher information matrix of . In fact,
[TABLE]
We will use Remark 2.4 to bound the quantity . In the general setting utilized in the optimization literature a bound on requires an extra assumption, see [Bottou et al., 2018] and the discussion in [Nguyen et al., 2018]. In our setting we manage to avoid this type of additional assumption thanks to the properties of the Fisher information matrix.
Our last assumption concerns the evolution of the time varying parameter .
Assumption 2.5** (Lipschitz continuity of the true parameter).**
There exists a positive constant such that
[TABLE]
Assumption 2.5 has been used throughout the literature, see for example [Simonetto et al., 2020], [Cao et al., 2019] and [Wilson et al., 2019], since a limitation on the behavior of the sequence of true parameters values must be imposed to be able to track it.
We can now state our main theorem.
Theorem 2.6**.**
Let Assumptions 2.1, 2.2, 2.3 and 2.5 hold. Then, for running the SGD (2.1) we obtain
[TABLE]
where . Moreover, the minimum of the right hand side in (2.3) is attained at and in this case the last inequality reads
[TABLE]
Remark 2.7**.**
Notice that depends on , so as an estimator it is natural to compare it with .
Remark 2.8**.**
In the case of model misspecification, i.e. when the true distribution of the observations is not included in the parametric model , the same proof technique can be utilized to show that the recursion (2.1) will track the so called pseudo-true time varying parameter which is defined as
[TABLE]
*We recall that the pseudo-true time varying parameter minimizes the Kullback Leiber divergence between the law of the data generating process and the model densities at each time , see [White, 1982] and [Akaike, 1973] for additional details.
The only technical difference in the proof is that Remark 2.4 can’t be used since is no longer related to the Fisher information matrix of . Thus, an additional assumption is needed to control but this is standard practice in the optimization literature, see [Nguyen et al., 2018] for a discussion on this kind of assumption.*
Example 2.9**.**
The exponential family in canonical form provides a class of natural examples where Theorem 2.6 holds. Take as the parameter of interest the natural parameter of a distribution belonging to the exponential family put in canonical form, i.e.
[TABLE]
*where is a non-negative function, is a sufficient statistic and must be chosen so that integrates to one.
A standard result for exponential families, see for instance Theorem 1.6.3 in [Bickel and Doksum, 2001], is that is a convex function of ; this fact together with identities*
[TABLE]
and
[TABLE]
*implies that one can find, restricting if necessary the range of (and hence of ) to a suitable convex compact set , the positive constants and required for the validity of Assumptions 2.2-2.3.
Note that the restriction of the range of to the convex compact set is carried out by simply modifying (2.1) as*
[TABLE]
where denotes the orthogonal projection onto the set . This alternative scheme doesn’t affect the validity of Theorem 2.6; in fact, from the contraction property of we get
[TABLE]
and this corresponds to the first step in the proof of Theorem 2.6 (see Section 3 below for more details).
An important question concerning applied settings is whether the estimator defined in (2.1) performs asymptotically better than the maximum likelihood estimator calculated by optimizing the one observation log-likelihood . The following example will showcase that there are indeed cases when utilizing (2.1) is beneficial.
Example 2.10**.**
Referring to Example 2.9 and setting for easiness of notation, we consider a sequence of independent observations with
[TABLE]
We assume in addition that is continuous and we restrict the parameter space to for suitable real numbers . Observe that Assumptions 2.2 and 2.3 hold in this case with
[TABLE]
In Theorem 2.6 we obtained an upper bound for the asymptotic mean-square error of as defined in (2.1). We now want to compare it with the mean-square error of the sufficient statistic , which we assume to be unbiased; this means considering the quantity
[TABLE]
where the last equality follows from Theorem 1.6.2 in [Bickel and Doksum, 2001]. Therefore, our estimator , performs asymptotically better than if
[TABLE]
Here, the left hand side corresponds to right hand side in (2.4) with while the right hand side follows from (2.5). We want this inequality to hold for all possible values of the sequence and this is achieved by taking the infimum of the right hand side of (3), i.e., we want
[TABLE]
A simple investigation of the previous inequality shows that the left hand side increases for small values of or large values of ; hence, there exist and such that for all the asymptotic mean-square error of is lower than the mean-square error of the sufficient statistic . Figures (1) and(2) provide an illustration of this fact. Finally, notice that there are cases when the sufficient statistic of the exponential family is unbiased and coincides with the one observation maximum likelihood estimator, as is the case if we choose as the parameter of interest the variance of a Gaussian.
3 Proof of the main result
Using (2.1) and expanding the squared Euclidian norm we can write
[TABLE]
where we set
[TABLE]
and
[TABLE]
To treat we employ Theorem 2.1.12 from [Nesterov, 2014]; with and this gives
[TABLE]
moreover, using inequality we get
[TABLE]
Combining (3) with (3.2) and (3.3) we obtain
[TABLE]
Imposing that , or equivalently , we can utilize the Lipschitz continuity of the gradient in the second line above to get
[TABLE]
Notice that according to the definitions of and we can write
[TABLE]
therefore, setting inequality (3) now reads
[TABLE]
Taking the conditional expectation with respect to the sigma-algebra of both sides above we obtain
[TABLE]
Here, we have utilized that
- •
is by construction -measurable for all ;
- •
the ’s are independent;
- •
the expectation of the score is zero;
- •
Remark 2.4.
We now compute the expectation of the first and last members of (3) to get
[TABLE]
which together with inequality gives
[TABLE]
The last step involves using Assumption 2.5 in the previous estimate to obtain
[TABLE]
which upon iteration yields
[TABLE]
If , then ; we can therefore take the limit as tends to infinity of both sides to get
[TABLE]
moreover, the minimum of the right hand side above is attained at (in view of the constraints needed on to recover inequality (3)).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[Akaike, 1973] Akaike, H. (1973). Information theory and an extension of the likelihood principle. In Proceedings of the Second International Symposium of Information Theory .
- 2[Bickel and Doksum, 2001] Bickel, P. and Doksum, K. (2001). Mathematical Statistics: Basic Ideas and Selected Topics . Number v. 1 in Mathematical Statistics: Basic Ideas and Selected Topics. Prentice Hall.
- 3[Blasques et al., 2015] Blasques, F., Koopman, S. J., and Lucas, A. (2015). Information-theoretic optimality of observation-driven time series models for continuous responses. Biometrika , 102(2):325–343.
- 4[Bottou et al., 2018] Bottou, L., Curtis, F. E., and Nocedal, J. (2018). Optimization methods for large-scale machine learning. SIAM Review , 60(2):223–311.
- 5[Boyd and Vandenberghe, 2004] Boyd, S. and Vandenberghe, L. (2004). Convex optimization . Cambridge university press.
- 6[Cao et al., 2019] Cao, X., Zhang, J., and Poor, H. V. (2019). On the time-varying distributions of online stochastic optimization. In 2019 American Control Conference (ACC) , pages 1494–1500.
- 7[Cox et al., 1981] Cox, D. R., Gudmundsson, G., Lindgren, G., Bondesson, L., Harsaae, E., Laake, P., Juselius, K., and Lauritzen, S. L. (1981). Statistical analysis of time series: Some recent developments [with discussion and reply]. Scandinavian Journal of Statistics , 8(2):93–115.
- 8[Creal et al., 2013] Creal, D., Koopman, S. J., and Lucas, A. (2013). Generalized autoregressive score models with applications. Journal of Applied Econometrics , 28(5):777–795.
