Skip to Content
You are currently on the new version of our website. Access the old version .
AxiomsAxioms
  • Article
  • Open Access

10 February 2026

65 Pages

The Empirical Bayes Estimators of the Variance Parameter of the Normal Distribution with a Normal-Inverse-Gamma Prior Under Stein’s Loss Function

1
Yunnan Key Laboratory of Statistical Modeling and Data Analysis, Yunnan University, Kunming 650500, China
2
Department of Statistics and Data Science, School of Mathematics and Statistics, Yunnan University, Kunming 650500, China
This article belongs to the Section Mathematical Analysis

Abstract

For the hierarchical normal and normal-inverse-gamma model, we derive the Bayesian estimator of the variance parameter in the normal distribution under Stein’s loss function—a penalty function that treats gross overestimation and underestimation equally—and compute the associated Posterior Expected Stein’s Loss (PESL). Additionally, we determine the Bayesian estimator of the same variance parameter under the squared error loss function, along with its corresponding PESL. We further develop empirical Bayes estimators for the variance parameter using a conjugate normal-inverse-gamma prior, employing both the method of moments and Maximum Likelihood Estimation (MLE). Theoretical properties, including posterior and marginal distributions, two inequalities that relate two Bayes estimators and their corresponding PESLs, and consistencies of hyperparameter estimators and empirical Bayes estimators, are established. The simulation results demonstrate that MLEs outperform moment estimators in estimating hyperparameters, particularly with respect to consistency and model fit. Finally, we apply our methodology to real-world data on poverty levels—specifically, the percentage of individuals living below the poverty line—to validate and illustrate our theoretical findings.

1. Introduction

The empirical Bayes method depends on a conjugate prior modeling, where the hyperparameters are estimated from the observations, and the “estimated prior” is then used as a regular prior in the subsequent inference. See [1,2,3] and the references therein. The empirical Bayes method is introduced in [4,5,6]. From a Bayesian perspective, it means that the sampling distribution is known, but the prior distribution is not. The marginal distribution is then used to restore the prior distribution from the observations. More literature on the empirical Bayes method can be found, for instance, in [7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24].
The motivations of this paper are summarized as follows. Example 1.5.1 (p. 20) of [25], Part I (pp. 69–70) of [26], and [19] have considered the following hierarchical normal and normal-inverse-gamma (N-NIG) model:
X i | μ , θ ∼ iid N μ , θ , i = 1 , 2 , … , n , μ | θ ∼ N ( μ 0 , θ / κ 0 ) , θ ∼ I G ˜ ν 0 / 2 , ν 0 σ 0 2 / 2 ,
where − ∞ < μ 0 < ∞ , κ 0 > 0 , ν 0 > 0 , and σ 0 2 > 0 are known hyperparameters, and iid means independent and identically distributed. The N − I G ˜ ( μ 0 , κ 0 , ν 0 , σ 0 2 ) distribution is a joint conjugate prior for μ , θ of the normal distribution N μ , θ , so that the posterior distribution of μ , θ is an N − I G ˜ ( μ n , κ n , ν n , σ n 2 ) distribution with updated hyperparameters. However, in reality, the hyperparameters are unknown. Ref. [19] have estimated the hyperparameters of the model (1) by the moment method and the Maximum Likelihood Estimation (MLE) method. Moreover, they obtained the Bayes estimators of the mean and variance parameters of the model (1) under the squared error loss function. Finally, they obtained the empirical Bayes estimators of the mean and variance parameters of the model (1) under the squared error loss function by the moment method and the MLE method. However, in their empirical Bayes estimators, the samples x n = x 1 , x 2 , … , x n have been used twice. First, the samples x n are utilized to estimate the hyperparameters μ 0 , κ 0 , ν 0 , and σ 0 2 . Second, the samples x n are used to obtain the Bayes estimators. To avoid using the sample x n twice, and to be compatible with the usual empirical Bayes analysis, we will use the following hierarchical N-NIG model in this paper:
X i | μ i , θ i ∼ independent N μ i , θ i , i = 1 , 2 , … , n , n + 1 , μ i | θ i ∼ independent N ( μ 0 , θ i / κ 0 ) , θ i ∼ iid I G ˜ ν 0 / 2 , ν 0 σ 0 2 / 2 ,
where − ∞ < μ 0 < ∞ , κ 0 > 0 , ν 0 > 0 , and σ 0 2 > 0 are hyperparameters to be determined, − ∞ < μ n + 1 < ∞ and θ n + 1 > 0 are the unknown parameters of interest, N μ i , θ i is a normal distribution with an unknown mean μ i and an unknown variance θ i , the conditional conjugate prior distribution of μ i given θ i is N ( μ 0 , θ i / κ 0 ) which is a normal distribution with mean μ 0 and an unknown variance θ i / κ 0 , the marginal conjugate prior distribution of θ i is I G ˜ ν 0 / 2 , ν 0 σ 0 2 / 2 which is an inverse gamma distribution with shape parameter ν 0 / 2 and scale parameter ν 0 σ 0 2 / 2 . Note that the joint conjugate prior π ( μ , θ ) ∼ N − I G ˜ ( μ 0 , κ 0 , ν 0 , σ 0 2 ) is a normal-inverse-gamma distribution. A notation table for the hyperparameter symbols, with their explicit role statement can be found in Table 1. As described in [7], the statistician observes data x 1 , x 2 , … , x n + 1 = x n + 1 and wishes to make an inference about μ n + 1 and θ n + 1 . Therefore, x n + 1 provides direct information about the parameters μ n + 1 and θ n + 1 , while supplementary information x 1 , x 2 , … , x n = x n is also available. The connection between the prime datum x n + 1 and the supplementary information x n is provided by the common distributions N μ i , θ i , N ( μ 0 , θ i / κ 0 ) , and I G ˜ ν 0 / 2 , ν 0 σ 0 2 / 2 . Moreover, since the variance parameter of the normal distribution is a positive restricted parameter, the squared error loss function is not appropriate. In contrast, we will choose Stein’s loss function because it penalizes gross overestimation and gross underestimation equally, that is, an action a will incur an infinite loss when it tends to 0 or ∞. Note that the squared error loss function does not have this property. For more literature on Stein’s loss function, we refer readers to [20,27,28,29,30].
Table 1. A notation table for the hyperparameter symbols, with their explicit role statement.
The key contributions of this work are outlined below. For the hierarchical N-NIG model (2), we begin by deriving the posterior distributions and marginal density, as stated in Theorem 1. Subsequently, we derive Bayes estimators for the variance parameter of the normal distribution under two loss criteria: Stein’s loss and the squared error loss. We further compute the corresponding Posterior Expected Stein’s Losses (PESLs) associated with these two estimators. It is shown that the two Bayes estimators and their respective PESLs satisfy specific inequalities, namely (13) and (14) (Theorem 2). Additionally, we derive moment-based estimators for the hyperparameters of the hierarchical N-NIG model (2) and establish their consistency in Theorem 3. Similarly, Maximum Likelihood Estimators (MLEs) for the same hyperparameters are derived, and their consistency is proven in Theorem 4. Building on these results, Theorem 5 provides the consistencies of the empirical Bayes estimators of θ n + 1 under Stein’s loss function using the moment and MLE methods. The theoretical findings are supported by numerical experiments and an application to real-world data.
Comparing models (1) and (2) carefully, we find that the samples x 1 n = x 11 , x 12 , … , x 1 n and x 2 n = x 21 , x 22 , … , x 2 n generated from the two models are iid from different distributions. On the one hand, the sample x 1 n generated from (1) are iid from N μ , θ . Although the marginal densities of x 11 , x 12 , … , x 1 n are t ν 0 μ 0 , σ 0 2 κ 0 + 1 / κ 0 , and thus x 11 , x 12 , … , x 1 n can be thought to be from the t distribution. However, x 11 , x 12 , … , x 1 n are not iid from the t distribution. In other words, x 11 , x 12 , … , x 1 n are dependent from the t distribution. On the other hand, the sample x 2 n generated from (2) are iid from the t distribution. That is, x 21 , x 22 , … , x 2 n are independent and identically distributed from the t distribution. The sample x 1 n can be used to estimate the parameters μ and θ from N μ , θ , while the sample x 2 n can be used to estimate the hyperparameters μ 0 , ν 0 , and u 0 from t ν 0 μ 0 , u 0 , where u 0 = σ 0 2 κ 0 + 1 / κ 0 .
The structure of this paper is outlined as follows. Section 2 begins with the derivation of posterior distributions and the marginal likelihood for the hierarchical N-NIG model (Theorem 1). Subsequently, we derive the corresponding Bayes estimators and PESLs, which are shown to fulfill two key inequalities: (13) and (14) (Theorem 2). Additionally, Theorem 3 provides moment estimators of the hyperparameters and their consistencies. Theorem 4 provides MLEs of the hyperparameters and their consistencies. Moreover, Theorem 5 provides the consistencies of the empirical Bayes estimators of θ n + 1 under Stein’s loss function using the moment and MLE methods. In Section 3, we conduct numerical experiments from eight different perspectives to evaluate performance. Section 4 illustrates the methodology using real-world data, specifically poverty rate data reflecting the proportion of individuals living below the poverty line. Finally, Section 5 offers a discussion of the findings and concluding remarks.

2. Theoretical Results

Suppose that X ∼ G ˜ α , β follows a gamma distribution and Y = 1 / X ∼ I G ˜ α , β follows an inverse gamma distribution. The probability density functions (pdfs) of X and Y are respectively given by
f X x | α , β = β α Γ α x α − 1 exp − x β , x > 0 , α , β > 0 , f Y y | α , β = β α Γ α 1 y α + 1 exp − β y , y > 0 , α , β > 0 .
It is easy to calculate E X = α / β and E Y = β / α − 1 , for α > 1 and β > 0 .

2.1. The Bayes Estimators and the PESLs

For the hierarchical N-NIG model (2), we have the following theorem which calculates the posterior densities π μ n + 1 , θ n + 1 | x n + 1 , π θ n + 1 | x n + 1 , π μ n + 1 | x n + 1 , π μ n + 1 | θ n + 1 , x n + 1 , and the marginal density m x n + 1 | μ 0 , κ 0 , ν 0 , σ 0 2 . The proof of the theorem can be found in Appendix A.
Theorem 1.
For the hierarchical N-NIG model (2), the joint posterior density of μ n + 1 , θ n + 1 is
π μ n + 1 , θ n + 1 | x n + 1 ∼ N − I G ˜ ( μ 1 , κ 1 , ν 1 , σ 1 2 ) ,
the marginal posterior density of θ n + 1 is
π θ n + 1 | x n + 1 ∼ I G ˜ α * , β * ,
the marginal posterior density of μ n + 1 is
π μ n + 1 | x n + 1 ∼ t ν 1 μ 1 , σ 1 2 κ 1 ,
the conditional posterior density of μ n + 1 is
π μ n + 1 | θ n + 1 , x n + 1 ∼ N ( μ 1 , θ n + 1 / κ 1 ) ,
where
μ 1 = x n + 1 + κ 0 μ 0 / κ 0 + 1 , κ 1 = κ 0 + 1 , ν 1 = ν 0 + 1 , ν 1 σ 1 2 = ν 0 σ 0 2 + κ 0 κ 0 + 1 x n + 1 − μ 0 2 ,
α * = ν 1 2 = ν 0 + 1 2 ,
and
β * = ν 1 σ 1 2 2 = 1 2 ν 0 σ 0 2 + κ 0 κ 0 + 1 x n + 1 − μ 0 2 .
Moreover, the marginal density of x n + 1 is the density of a non-standardized Student t-distribution, given by
m x n + 1 | μ 0 , κ 0 , ν 0 , σ 0 2 ∼ t ν 0 μ 0 , σ 0 2 κ 0 + 1 κ 0 ,
with probability density function (pdf) given by
m x n + 1 | μ 0 , κ 0 , ν 0 , σ 0 2 = Γ ν 0 + 1 2 Γ ν 0 2 π ν 0 σ 0 2 κ 0 + 1 / κ 0 1 + 1 ν 0 x n + 1 − μ 0 2 σ 0 2 κ 0 + 1 / κ 0 − ν 0 + 1 2 ,
for − ∞ < x n + 1 < ∞ , − ∞ < μ 0 < ∞ , κ 0 > 0 , ν 0 > 0 , and σ 0 2 > 0 .
In the following, we will calculate the Bayes estimator of θ n + 1 under Stein’s loss function δ s π , θ n + 1 x n + 1 , the Bayes estimator of θ n + 1 under the usual squared error loss function δ 2 π , θ n + 1 x n + 1 , and the PESLs at δ s π , θ n + 1 x n + 1 and δ 2 π , θ n + 1 x n + 1 ( P E S L s π , θ n + 1 x n + 1 and P E S L 2 π , θ n + 1 x n + 1 ). Stein’s loss function in terms of θ n + 1 and a is given by
L s θ n + 1 , a = a θ n + 1 − log a θ n + 1 − 1 ,
where θ n + 1 , a ∈ 0 , ∞ . The usual squared error loss function in terms of θ n + 1 and a is given by
L 2 θ n + 1 , a = a − θ n + 1 2 ,
where θ n + 1 , a ∈ − ∞ , ∞ .
Similar to [28], the two Bayes estimators and the two PESLs are respectively given by
δ s π , θ n + 1 x n + 1 = 1 E 1 θ n + 1 | x n + 1 ,
δ 2 π , θ n + 1 x n + 1 = E θ n + 1 | x n + 1 ,
P E S L s π , θ n + 1 x n + 1 = log E 1 θ n + 1 | x n + 1 + E log θ n + 1 | x n + 1 ,
P E S L 2 π , θ n + 1 x n + 1 = E θ n + 1 | x n + 1 E 1 θ n + 1 | x n + 1 − 1 − log E θ n + 1 | x n + 1 + E log θ n + 1 | x n + 1 .
To calculate the two Bayes estimators and the two PESLs, it remains to calculate
E 1 = E θ n + 1 | x n + 1 , E 2 = E 1 θ n + 1 | x n + 1 , and E 3 = E log θ n + 1 | x n + 1 .
Similar to [28], we present the following theorem concerning two inequalities that relate the two Bayes estimators and their corresponding PESLs. The proof of the theorem can be located in Appendix A.
Theorem 2.
For the two Bayes estimators, we obtain the following result
δ s π , θ n + 1 x n + 1 ≤ δ 2 π , θ n + 1 x n + 1
by applying Jensen’s inequality. Additionally, for the two PESLs, we obtain the following result
P E S L s π , θ n + 1 x n + 1 ≤ P E S L 2 π , θ n + 1 x n + 1 ,
which is a direct consequence of the general methodology for finding a Bayes estimator. According to construction, δ s π , θ n + 1 x n + 1 minimizes the Posterior Expected Stein’s Loss (PESL).
Now let us analytically calculate the Bayes estimators δ s π , θ n + 1 x n + 1 and δ 2 π , θ n + 1 x n + 1 , and the PESLs P E S L s π , θ n + 1 x n + 1 and P E S L 2 π , θ n + 1 x n + 1 under the hierarchical N-NIG model (2) from (9) to (12). The three expectations are calculated as
E θ n + 1 | x n + 1 = β * α * − 1 ,
E 1 θ n + 1 | x n + 1 = α * β * ,
E log θ n + 1 | x n + 1 = log β * − ψ α * ,
for α * > 1 , where α * and β * are given by (4) and (5). From (9), the Bayes estimator of θ n + 1 under Stein’s loss function is given by
δ s π , θ n + 1 x n + 1 = 1 E 1 θ n + 1 | x n + 1 = β * α * .
From (10), the Bayes estimator of θ n + 1 under the usual squared error loss function is given by
δ 2 π , θ n + 1 x n + 1 = E θ n + 1 | x n + 1 = β * α * − 1 ,
for α * > 1 . It is easy to show that
δ s π , θ n + 1 x n + 1 = β * α * < β * α * − 1 = δ 2 π , θ n + 1 x n + 1 ,
which exemplifies the theoretical study of (13). Furthermore, from (11) and (12), the PESL at δ s π , θ n + 1 x n + 1 and δ 2 π , θ n + 1 x n + 1 are respectively given by
P E S L s π , θ n + 1 x n + 1 = log α * − ψ α *
and
P E S L 2 π , θ n + 1 x n + 1 = 1 α * − 1 + log α * − 1 − ψ α * ,
where
ψ x = Γ ′ x Γ x = d d x log Γ x = digamma x
is the digamma function. It can be shown that
P E S L s π , θ n + 1 x n + 1 = log α * − ψ α * ≤ 1 α * − 1 + log α * − 1 − ψ α * = P E S L 2 π , θ n + 1 x n + 1 ,
which exemplifies the theoretical study of (14). It is worth noting that the PESLs P E S L s π , θ n + 1 x n + 1 and P E S L 2 π , θ n + 1 x n + 1 depend only on α * , but not on β * . Therefore, the PESLs depend only on ν 0 , but not on μ 0 , κ 0 , σ 0 2 , and x n + 1 .
We will exemplify the two inequalities (20) and (21) in the simulations section and the real data section. Moreover, we will exemplify that the PESLs depend only on ν 0 , but not on μ 0 , κ 0 , σ 0 2 , and x n + 1 .

2.2. The Empirical Bayes Estimators of θ n + 1

In this subsection, we will examine the consistencies of estimators for hyperparameters. Additionally, we will examine the consistencies of empirical Bayes estimators.

2.2.1. Consistencies of Estimators of Hyperparameters

In this subsubsection, we will show consistencies of estimators of hyperparameters.
The hyperparameters of Model (2) are − ∞ < μ 0 < ∞ , κ 0 > 0 , ν 0 > 0 , and σ 0 2 > 0 . However, we can not directly obtain the estimators of the four hyperparameters of Model (2) by the moment method. Let
u 0 = σ 0 2 κ 0 + 1 κ 0 .
Since κ 0 and σ 0 appear together in u 0 , we can not directly obtain the estimators of κ 0 and σ 0 by the moment method. In other words, κ 0 and σ 0 are unidentifiable. In the empirical Bayesian statistical literature, common approaches to addressing the issue of unidentifiability of hyperparameters include the following two. One is to estimate the prior distribution through non-parametric or semi-parametric methods, avoiding strong assumptions about the functional form of the prior distribution, thereby circumventing the problem of unidentifiability of hyperparameters [31,32]. The other is to use auxiliary data, model structure constraints, or specific assumptions (such as sparsity and spatial correlation) to provide additional information, making the unidentifiable hyperparameters identifiable [33,34,35]. We adopt the second approach to make hyperparameters ( κ 0 and σ 0 2 ) identifiable. More specifically, when κ 0 is fixed to be a known constant (our recommendation is κ 0 = 1 , which will be made clear later in the next subsubsection), then κ 0 and σ 0 2 are identifiable. Otherwise, κ 0 and σ 0 2 are unidentifiable.
However, we can obtain the estimator of u 0 by the moment method. In the following, we are interested in the hyperparameters − ∞ < μ 0 < ∞ , ν 0 > 0 , and u 0 > 0 . Using hyperparameters μ 0 , ν 0 , and u 0 , the marginal density (6) changes to
m x n + 1 | μ 0 , ν 0 , u 0 = Γ ν 0 + 1 2 Γ ν 0 2 π ν 0 u 0 1 + 1 ν 0 x n + 1 − μ 0 2 u 0 − ν 0 + 1 2 ∼ t ν 0 μ 0 , u 0 .
The moment-based estimators for the hyperparameters μ 0 , ν 0 , and u 0 in Model (2), denoted as μ 01 n , ν 01 n , and u 01 n , along with their consistency properties, are presented in the subsequent theorem. The proof of this theorem is provided in Appendix A. To ensure the theorem holds, three conditions must be satisfied:
(A1).
Model specification: The observations X 1 , … , X n are independently and identically distributed according to the marginal distribution of Model (2), i.e., for i = 1 , … , n ,
X i ∼ iid t ν 0 μ 0 , u 0 , u 0 = σ 0 2 ( κ 0 + 1 ) κ 0 .
(A2).
Moment of existence: The degrees-of-freedom parameter satisfies ν 0 > 4 , so that the first four moments of X i exist and are finite.
(A3).
Well-definedness of estimators: The sample moments
A k = 1 n ∑ i = 1 n X i k , k = 1 , 2 , 4 ,
are such that the denominators appearing in the estimators below are non-zero.
Theorem 3 (Method of moments estimators and their consistencies).
Consider the hierarchical N-NIG model (2). Suppose the conditions (A1)–(A3) are satisfied, then the method of moments estimators for the hyperparameters μ 0 , ν 0 , and u 0 are given by
μ 01 n = A 1 , ν 01 n = − 14 3 A 1 4 + 4 A 1 2 A 2 + 2 A 2 2 − 4 3 A 4 − 2 3 A 1 4 + A 2 2 − 1 3 A 4 , u 01 n = − 1 3 A 2 − A 1 2 5 A 1 4 − 6 A 1 2 A 2 + A 4 − 7 3 A 1 4 + 2 A 1 2 A 2 + A 2 2 − 2 3 A 4 .
Moreover, these estimators are consistent, i.e.,
μ 01 n ⟶ p μ 0 , ν 01 n ⟶ p ν 0 , u 01 n ⟶ p u 0 ,
as the sample size n tends to infinity, where ⟶ p denotes convergence in probability.
For Theorem 3, we have the following remarks.
Remark 1.
Condition (A1) guarantees that the data-generating process agrees with the theoretical model. Condition (A2) ensures that the sample moments converge to their population counterparts, which is necessary for consistency. Condition (A3) avoids division by zero in the estimators; for large n, this is almost always satisfied. The quantity u 0 is identifiable even though κ 0 and σ 0 2 are not separately identifiable. In practice, we recommend κ 0 = 1 to obtain a unique estimate of σ 0 2 (see Section 2.2.2).
Remark 2.
The moment estimators μ 01 n , ν 01 n , and u 01 n in Theorem 3 are the same as those in Theorem 2 in [19]. The reason for the same moment estimators is that for the two hierarchical N-NIG models (1) and (2), the marginal distributions are the same, and the population moments of X are the same. Moreover, in Theorem 3 of this paper, we have shown that the moment estimators are consistent estimators of the hyperparameters, and this result has not been derived in [19].
The MLE method is used to derive estimators for the hyperparameters μ 0 , ν 0 , and u 0 of Model (2), denoted as μ 02 n , ν 02 n , and u 02 n , respectively. The consistency properties of these estimators are presented in the subsequent theorem, with the detailed proof provided in Appendix A. To ensure the theorem holds, five conditions must be satisfied:
(B1).
Model specification: Let the observations X 1 , … , X n be independent and identically distributed according to the marginal Student-t distribution derived from (2), i.e., for i = 1 , … , n ,
X i ∼ iid t ν 0 μ 0 , u 0 , u 0 = σ 0 2 ( κ 0 + 1 ) κ 0 .
(B2).
Parameter space: μ 0 ∈ R , ν 0 > 0 , and u 0 > 0 .
(B3).
Identifiability: κ 0 is fixed at a known positive constant (we recommend κ 0 = 1 in practice, and the reasons are given in Section 2.2.2), rendering the hyperparameters ( μ 0 , ν 0 , u 0 ) = ( μ 0 , ν 0 , 2 σ 0 2 ) identifiable.
(B4).
Differentiability: The log-likelihood function
log L μ 0 , ν 0 , u 0 | x = ∑ i = 1 n log m ( x i | μ 0 , ν 0 , u 0 )
is twice continuously differentiable in a neighborhood of the true parameter values, and the expected Fisher information matrix is positive definite.
(B5).
Unique solution: The system of score equations
f 1 μ 0 , ν 0 , u 0 = 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 ν 0 u 0 + x i − μ 0 2 = 0 ,
f 2 μ 0 , ν 0 , u 0 = 1 2 ψ ν 0 + 1 2 − 1 2 ψ ν 0 2 − 1 2 ν 0 − 1 2 1 n ∑ i = 1 n log 1 + x i − μ 0 2 ν 0 u 0 − ν 0 + 1 x i − μ 0 2 ν 0 u 0 + x i − μ 0 2 ν 0 = 0 ,
f 3 μ 0 , ν 0 , u 0 = − 1 2 u 0 + 1 2 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 2 ν 0 u 0 + x i − μ 0 2 u 0 = 0 .
where ψ ( · ) denotes the digamma function, admits a unique solution ( μ 02 n , ν 02 n , u 02 n ) in the interior of the parameter space.
Theorem 4 (Consistency of Maximum Likelihood Estimators).
Consider the hierarchical N-NIG model (2). Suppose the conditions (B1)–(B5) are satisfied, then the MLEs μ 02 n , ν 02 n , and u 02 n obtained by solving (24)–(26) for the hyperparameters μ 0 , ν 0 , and u 0 are consistent, i.e.,
μ 02 n ⟶ p μ 0 , ν 02 n ⟶ p ν 0 , u 02 n ⟶ p u 0 ,
as the sample size n tends to infinity, where ⟶ p denotes convergence in probability.
The MLEs of the hyperparameters μ 0 , ν 0 , and u 0 cannot be derived analytically by solving equations (24)–(26). As a result, numerical methods must be employed. Newton’s method can be applied to solve these equations and thereby obtain the MLEs of the hyperparameters. It should be emphasized that the accuracy of the resulting MLEs is highly sensitive to the choice of initial values, and moment-based estimators have generally been found to serve as effective starting points.

2.2.2. Consistencies of Empirical Bayes Estimators

In this subsubsection, we will show consistencies of empirical Bayes estimators.
First, let us discuss the selection of κ 0 . We recommend choosing κ 0 = 1 , and the reason is given as follows. From (18), (4), and (5), we have
δ s π , θ n + 1 x n + 1 = β * α * = 1 2 ν 0 σ 0 2 + κ 0 κ 0 + 1 x n + 1 − μ 0 2 ν 0 + 1 2 = 1 ν 0 + 1 ν 0 σ 0 2 + κ 0 κ 0 + 1 x n + 1 − μ 0 2 = κ 0 κ 0 + 1 1 ν 0 + 1 ν 0 σ 0 2 κ 0 + 1 κ 0 + x n + 1 − μ 0 2 = κ 0 κ 0 + 1 1 ν 0 + 1 ν 0 u 0 + x n + 1 − μ 0 2 .
It is easy to show that the factor
κ 0 κ 0 + 1 ∈ 0 , 1 ,
for κ 0 > 0 . Because we have little information about κ 0 , we will choose
κ 0 κ 0 + 1 = 1 2 ,
which is in the middle of the above range. Hence,
κ 0 = 1 .
Therefore, (27) reduces to
δ s π , θ n + 1 x n + 1 | κ 0 = 1 = 1 2 1 ν 0 + 1 ν 0 u 0 + x n + 1 − μ 0 2 ,
which can then be estimated once the hyperparameters μ 0 , ν 0 , u 0 are estimated. From (22) and (28), we have
σ 0 2 = κ 0 κ 0 + 1 u 0 = 1 2 u 0 ,
which can then be estimated once the hyperparameter u 0 is estimated.
Another reason to choose κ 0 = 1 is given below. Since − ∞ < μ n + 1 < ∞ , the squared error loss function is appropriate. The Bayes estimator of μ n + 1 under the squared error loss function is given by
δ 2 π , μ n + 1 x n + 1 = E μ n + 1 | x n + 1 = μ 1 = x n + 1 + κ 0 μ 0 κ 0 + 1 .
In (29), κ 0 represents a strength of belief on μ 0 . If one harbors no belief on μ 0 , then κ 0 = 0 , and thus δ 2 π , μ n + 1 x n + 1 = x n + 1 , which depends only on the datum x n + 1 . In contrast, if one harbors complete belief on μ 0 , then κ 0 = ∞ , and thus δ 2 π , μ n + 1 x n + 1 = μ 0 , which depends only on μ 0 . However, if one believes that x n + 1 and μ 0 are equally important, then κ 0 = 1 is a reasonable choice, and thus δ 2 π , μ n + 1 x n + 1 = x n + 1 + μ 0 / 2 , which is a balanced combination of x n + 1 and μ 0 .
We remark that κ 0 and σ 0 2 affect β * , δ s π , θ n + 1 x n + 1 , δ 2 π , θ n + 1 x n + 1 , and δ 2 π , μ n + 1 x n + 1 , and they do not affect α * , P E S L s π , θ n + 1 x n + 1 , and P E S L 2 π , θ n + 1 x n + 1 .
Let μ 01 ( n ) , ν 01 ( n ) , and u 01 ( n ) be moment estimators (calculated in Theorem 3) of μ 0 , ν 0 , and u 0 , respectively. Let μ 02 ( n ) , ν 02 ( n ) , and u 02 ( n ) be MLEs (numerically determined in Theorem 4) of μ 0 , ν 0 , and u 0 , respectively. Inspired by (27) and (28), let
δ s , m o m e n t π , θ n + 1 x n + 1 = 1 2 1 ν 01 ( n ) + 1 ν 01 ( n ) u 01 ( n ) + x n + 1 − μ 01 ( n ) 2
be the empirical Bayes estimator of θ n + 1 under Stein’s loss function by the moment method, let
δ s , M L E π , θ n + 1 x n + 1 = 1 2 1 ν 02 ( n ) + 1 ν 02 ( n ) u 02 ( n ) + x n + 1 − μ 02 ( n ) 2
be the empirical Bayes estimator of θ n + 1 under Stein’s loss function by the MLE method, let
δ s , o r a c l e π , θ n + 1 x n + 1 = 1 2 1 ν 0 + 1 ν 0 u 0 + x n + 1 − μ 0 2
be the Bayes estimator of θ n + 1 under Stein’s loss function by the oracle method, and let
δ s π , θ n + 1 x n + 1 = δ s π , θ n + 1 x n + 1 | κ 0 = κ 0 κ 0 + 1 1 ν 0 + 1 ν 0 u 0 + x n + 1 − μ 0 2
be the Bayes estimator of θ n + 1 under Stein’s loss function with a fixed κ 0 , which is our primary object of interest.
From Theorems 3 and 4, we have the following theorem regarding the consistencies of the empirical Bayes estimators of θ n + 1 under Stein’s loss function by the moment and MLE methods. The detailed proof of the theorem is provided in Appendix A.
Theorem 5.
Under the conditions of Theorems 3 and 4, we have for all x n + 1 ∈ R ,
δ s , m o m e n t π , θ n + 1 x n + 1 ⟶ p δ s , o r a c l e π , θ n + 1 x n + 1 , as n → ∞
and
δ s , M L E π , θ n + 1 x n + 1 ⟶ p δ s , o r a c l e π , θ n + 1 x n + 1 , as n → ∞ .
Note that,
δ s , o r a c l e π , θ n + 1 x n + 1 = δ s π , θ n + 1 x n + 1 | κ 0 = 1 .
In addition, δ s π , θ n + 1 x n + 1 | κ 0 is an increasing function of κ 0 . More specifically,
δ s π , θ n + 1 x n + 1 | κ 0 < 1 < δ s π , θ n + 1 x n + 1 | κ 0 = 1 = δ s , o r a c l e π , θ n + 1 x n + 1 < δ s π , θ n + 1 x n + 1 | κ 0 > 1 .
In other words, δ s , o r a c l e π , θ n + 1 x n + 1 will underestimate δ s π , θ n + 1 x n + 1 | κ 0 > 1 , and it will overestimate δ s π , θ n + 1 x n + 1 | κ 0 < 1 . A schematic plot of the empirical Bayes estimators and Bayes estimators is graphed in Figure 1.
Figure 1. A schematic plot of the empirical Bayes estimators (EBEs) and Bayes estimators (BEs).

2.3. Comparison of Loss Functions, Posterior Risks, and Corresponding Bayes Estimators

In this subsection, a comparison will be conducted between two loss functions, namely Stein’s loss function and the power-power loss function. Additionally, a comparison will be made between two posterior risks, P E S L a | x n + 1 and P E P L a | x n + 1 . Moreover, a comparison will be carried out between two Bayes estimators, δ s π , θ n + 1 x n + 1 and δ p π , θ n + 1 x n + 1 . Finally, a comparison will be performed between the two posterior risks evaluated at the two Bayes estimators.
First, we shall compare the two loss functions. Stein’s loss function with respect to θ n + 1 and a is presented as (7). The power-power loss function (refer to [36]) with respect to θ n + 1 and a is defined as
L p θ n + 1 , a = a θ n + 1 + θ n + 1 a − 2 .
A comprehensive comparison of the two loss functions can be found in [36]. As elaborated in [36], both functions are suitable loss functions in the domain Θ = 0 , ∞ . Specifically, the two loss functions impose equal penalties on gross overestimation and gross underestimation. That is to say, an action a will result in an infinite loss when it approaches 0 or ∞. In comparison with Stein’s loss function, the power-power loss function has an additional characteristic: it has balanced convergence rates or penalties for cases where its argument is either too large or too small.
Second, let us conduct a comparison between the two posterior risks. The posterior Stein’s risk, denoted as P E S L a | x n + 1 , is defined as follows:
P E S L a | x n + 1 = E L s θ n + 1 , a | x n + 1 = E a θ n + 1 − 1 − log a θ n + 1 | x n + 1 = a E 1 θ n + 1 | x n + 1 − 1 − log a + E log θ n + 1 | x n + 1 .
The posterior power-power risk, also known as the Posterior Expected Power-power Loss (PEPL), is represented by P E P L a | x n + 1 , and is given by:
P E P L a | x n + 1 = E L p θ n + 1 , a | x n + 1 = E a θ n + 1 + θ n + 1 a − 2 | x n + 1 = a E 1 θ n + 1 | x n + 1 + 1 a E θ n + 1 | x n + 1 − 2 .
Third, let us compare the two Bayes estimators. From [28], the Bayes estimator δ s π , θ n + 1 x n + 1 minimizes the PESL, P E S L a | x n + 1 = E L s θ n + 1 , a | x n + 1 , that is,
δ s π , θ n + 1 x n + 1 = arg min a ∈ A P E S L a | x n + 1 = 1 E 1 θ n + 1 | x n + 1 ,
where A = a x n + 1 : a x n + 1 > 0 is the action space, a = a x n + 1 > 0 is an action (estimator). Similarly, from [36], the Bayes estimator δ p π , θ n + 1 x n + 1 minimizes the PEPL, P E P L a | x n + 1 = E L p θ n + 1 , a | x n + 1 , that is,
δ p π , θ n + 1 x n + 1 = arg min a ∈ A P E P L a | x n + 1 = E θ n + 1 | x n + 1 E 1 θ n + 1 | x n + 1 .
By applying a similar technique as that utilized in [36], it can be demonstrated that
δ s π , θ n + 1 x n + 1 ≤ δ p π , θ n + 1 x n + 1 .
Finally, let us compare the two posterior risks evaluated at the two Bayes estimators. From (32), we have
P E S L s π , θ n + 1 x n + 1 = P E S L a | x n + 1 a = δ s π , θ n + 1 x n + 1 ≤ P E S L a | x n + 1 a = δ p π , θ n + 1 x n + 1 = P E S L p π , θ n + 1 x n + 1 .
Similarly, from (33), we have
P E P L p π , θ n + 1 x n + 1 = P E P L a | x n + 1 a = δ p π , θ n + 1 x n + 1 ≤ P E P L a | x n + 1 a = δ s π , θ n + 1 x n + 1 = P E P L s π , θ n + 1 x n + 1 .
For the hierarchical N-NIG model (2), the three posterior expectations are computed as (15)–(17). Consequently, the two posterior risks, the two Bayes estimators, and the two posterior risks evaluated at the two Bayes estimators can be readily calculated.

3. Simulations

This section presents numerical simulations for the hierarchical N-NIG model (2). We examine eight key aspects: (1) model comparison and estimator performance; (2) the consistencies of moment estimators and MLEs; (3) the influence of κ 0 on quantities of interest as functions of x n + 1 ; (4) the validity of two inequalities concerning Bayes estimators and PESLs; (5) the model’s goodness-of-fit to the generated data; (6) the examination of the model’s marginal densities; (7) comparison with standard MLE under PESL; and (8) comparison of loss functions, posterior risks, and corresponding Bayes estimators.
The simulated data are generated according to the hierarchical N-NIG model (2) with the hyperparameters specified by μ 0 = 3 , κ 0 = 1 , ν 0 = 6 , and σ 0 2 = 1 . The reason why we choose these values is that − ∞ < μ 0 < ∞ , κ 0 > 0 , ν 0 > 0 , and σ 0 2 > 0 . Moreover, ν 0 > 4 is required in moment estimations of the hyperparameters. Additional numerical values for the hyperparameters can likewise be defined.

3.1. Model Comparison and Estimator Performance

This subsection aims to numerically compare two hierarchical N-NIG models (1) and (2) in estimating hyperparameters. It demonstrates that samples from Model (1) fail to estimate ( μ 0 , ν 0 , u 0 ) correctly, while samples from Model (2) succeed. Additionally, the subsection evaluates the performance of the method of moments and MLE, highlighting that both can accurately recover u 0 regardless of the specific values of κ 0 and σ 0 2 .
First, we will numerically exemplify that the sample x 1 n = x 11 , x 12 , … , x 1 n generated from Model (1) can not be used to estimate the hyperparameters μ 0 , ν 0 , u 0 , while the samples x 2 n = x 21 , x 22 , … , x 2 n and x 3 ( n ) = ( x 31 , x 32 , … , x 3 n ) generated from Model (2) can be used to estimate the hyperparameters μ 0 , ν 0 , u 0 , where u 0 = σ 0 2 κ 0 + 1 / κ 0 . Moreover, we will exemplify that the moment estimators and the MLEs of u 0 can correctly estimate the true hyperparameter u 0 regardless of the κ 0 and σ 0 2 values.
Below is a detailed description of the simulation settings and the data generation process for the three samples ( x 1 ( n ) , x 2 ( n ) , x 3 ( n ) ), along with the computational steps for the estimators.
Simulation Setup and Data Generation
All simulations use a fixed sample size of n = 10,000 . The true hyperparameters are set as μ 0 = 3 , ν 0 = 6 , and the derived u 0 = σ 0 2 ( κ 0 + 1 ) / κ 0 = 2 .
1.
Generation of x 1 ( n ) = ( x 11 , x 12 , … , x 1 n ) from Model (1):
-
Draw a single variance parameter: θ ∼ I G ˜ ( α = ν 0 / 2 , β = ν 0 σ 0 2 / 2 ) .
-
Draw a single mean parameter conditional on θ : μ | θ ∼ N ( μ 0 , θ / κ 0 ) .
-
Generate n independent observations: x 1 i | ( μ , θ ) ∼ iid N ( μ , θ ) for i = 1 , … , n .
2.
Generation of x 2 ( n ) = ( x 21 , x 22 , … , x 2 n ) from Model (2) with ( κ 0 , σ 0 2 ) = ( 1 , 1 ) :
-
For each i = 1 , … , n :
a.
Draw a variance parameter: θ 2 i ∼ I G ˜ ( α = ν 0 / 2 , β = ν 0 σ 0 2 / 2 ) .
b.
Draw a mean parameter conditional on θ 2 i : μ 2 i | θ 2 i ∼ N ( μ 0 , θ 2 i / κ 0 ) .
c.
Generate an observation: x 2 i | ( μ 2 i , θ 2 i ) ∼ N ( μ 2 i , θ 2 i ) .
-
The marginal distribution of each x 2 i is t ν 0 ( μ 0 , u 0 ) with u 0 = 2 .
3.
Generation of x 3 ( n ) = ( x 31 , x 32 , … , x 3 n ) from Model (2) with ( κ 0 , σ 0 2 ) = ( 2 , 4 / 3 ) :
-
For each i = 1 , … , n :
a.
Draw a variance parameter: θ 3 i ∼ I G ˜ ( α = ν 0 / 2 , β = ν 0 σ 0 2 / 2 ) .
b.
Draw a mean parameter conditional on θ 3 i : μ 3 i | θ 3 i ∼ N ( μ 0 , θ 3 i / κ 0 ) .
c.
Generate an observation: x 3 i | ( μ 3 i , θ 3 i ) ∼ N ( μ 3 i , θ 3 i ) .
-
The marginal distribution of each x 3 i is t ν 0 ( μ 0 , u 0 ) with u 0 = 2 .
Computation of the Estimators
1.
Method of Moments Estimators (Theorem 3): The estimators μ 01 ( n ) , ν 01 ( n ) , and u 01 ( n ) are computed directly from the first, second, and fourth sample moments of the observed data x ( n ) = ( x 1 , … , x n ) .
-
Calculate the sample moments:
A k = 1 n ∑ i = 1 n x i k , for k = 1 , 2 , 4 .
-
The moment estimators μ 01 ( n ) , ν 01 ( n ) , and u 01 ( n ) are computed as in Theorem 3.
2.
Maximum Likelihood Estimators (Theorem 4): The MLEs μ 02 ( n ) , ν 02 ( n ) , and u 02 ( n ) are obtained by solving the system of score Equations (24)–(26) numerically via Newton’s method.
-
The log-likelihood function for μ 0 , ν 0 , and u 0 is:
log L ( μ 0 , ν 0 , u 0 | x ) = n log Γ ν 0 + 1 2 − n log Γ ν 0 2 − n 2 log π + log ν 0 + log u 0 − ∑ i = 1 n ν 0 + 1 2 log 1 + x i − μ 0 2 ν 0 u 0 .
-
The score equations are given by (24)–(26).
-
Newton’s Method: Let p = ( μ 0 , ν 0 , u 0 ) ⊤ . The iterative update is:
p ( k + 1 ) = p ( k ) − J ( p ( k ) ) − 1 f ( p ( k ) ) , k = 0 , 1 , … ,
where f = ( f 1 , f 2 , f 3 ) ⊤ is given by (24)–(26) and J is the Jacobian matrix with entries given in Appendix A. The moment estimators are used as the initial guess p ( 0 ) .
The histograms of the samples and their density curves are plotted in Figure 2. From the figure, we observe the following facts.
Figure 2. The histograms of the samples and their density curves. (a) x 1 n generated from (1) with μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 1 , 6 , 1 and u 0 = 2 . (b) x 2 n generated from (2) with μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 1 , 6 , 1 and u 0 = 2 . (c) x 3 n generated from (2) with μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 2 , 6 , 4 / 3 and u 0 = 2 .
1.
Plot (a): the sample x 1 n generated from (1) are iid from N μ , θ with μ = 4.817 and θ = 1.866 .
2.
Plots (b) and (c): the sample x 2 n are generated from (2) with μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 1 , 6 , 1 and u 0 = 2 . The sample x 3 n are generated from (2) with μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 2 , 6 , 4 / 3 and u 0 = 2 . Although κ 0 , σ 0 2 = 1 , 1 and 2 , 4 / 3 are different in the two plots, u 0 = 2 is the same. Therefore, the two samples x 2 n and x 3 n are from the same marginal distribution t ν 0 μ 0 , u 0 with μ 0 , ν 0 , u 0 = 3 , 6 , 2 .
The moment estimators and the MLEs of the hyperparameters μ 0 , ν 0 , u 0 = 3 , 6 , 2 for the samples x 1 n , x 2 n , and x 3 n are summarized in Table 2. From the table, we observe the following facts.
Table 2. The moment estimators and the MLEs of the hyperparameters μ 0 , ν 0 , u 0 = 3 , 6 , 2 for the samples x 1 n , x 2 n , and x 3 n .
1.
The moment estimators of the hyperparameters μ 0 , ν 0 , u 0 for sample x 1 n are far away from the true hyperparameters 3 , 6 , 2 , and thus the samples generated from the model (1) can not be used to estimate the hyperparameters μ 0 , ν 0 , u 0 .
2.
For x 1 n , since the moment estimator of ν 0 is − 159.725 , which is negative, the MLE method fails to iterate, and thus the MLEs of the hyperparameters μ 0 , ν 0 , u 0 are equal to the moment estimators.
3.
For x 2 n and x 3 n , the moment estimators and the MLEs of the hyperparameters μ 0 , ν 0 , u 0 are close to the true hyperparameters 3 , 6 , 2 , and thus the samples generated from Model (2) can be used to estimate the hyperparameters μ 0 , ν 0 , u 0 .
4.
The sample x 2 n is generated from Model (2) with κ 0 , σ 0 2 = 1 , 1 , while the sample x 3 n is generated from Model (2) with κ 0 , σ 0 2 = 2 , 4 / 3 . Although κ 0 , σ 0 2 = 1 , 1 and 2 , 4 / 3 are different for the two samples x 2 n and x 3 n , u 0 = 2 is the same. We find that both the moment method and the MLE method correctly estimate the true hyperparameter u 0 = 2 for the two samples x 2 n and x 3 n .
5.
For x 2 n and x 3 n , the MLEs are closer to the true hyperparameters μ 0 , ν 0 , u 0 = 3 , 6 , 2 than the moment estimators for this simulation.

3.2. Consistencies of the Moment Estimators and the MLEs

In this subsection, we will numerically illustrate two kinds of consistencies of the moment estimators and the MLEs. One is consistency of estimators of hyperparameters, and the other is consistency of empirical Bayes estimators.

3.2.1. Consistencies of Estimators of Hyperparameters

Currently, both the moment estimators μ 01 ( n ) , ν 01 ( n ) , u 01 ( n ) and the MLEs μ 02 ( n ) , ν 02 ( n ) , u 02 ( n ) serve as consistent estimates for the hyperparameters μ 0 , ν 0 , u 0 of the hierarchical N-NIG model (2). The purpose of this subsubsection is to emphasize that, as established in Theorems 3 and 4, we have rigorously proven the consistencies of both the moment-based and MLE-based estimators with respect to the true hyperparameters. It should be noted that all analyses here are based solely on the observed data x ( n ) = ( x 1 , x 2 , … , x n ) .
Following the approach in [21], let ξ represent one of the hyperparameters μ 0 , ν 0 , or u 0 . Consistency is defined as the property that
ξ i ( n ) ⟶ p ξ as n → ∞ ,
for i = 1 , 2 , where i = 1 corresponds to the moment estimator and i = 2 to the MLE, with ⟶ p denoting convergence in probability and n being the sample size. Equivalently, consistency can be expressed as
lim n → ∞ P ξ i n − ξ ≥ ε = 0 ,
for any ε > 0 and for all ξ ∈ Ξ . These probabilities are estimated using empirical frequencies from simulations:
P ξ i n − ξ ≥ ε ≈ 1 M ∑ m = 1 M I ξ i m n − ξ ≥ ε ≜ F ξ i ε , M n ,
where I ( A ) is the indicator function taking value 1 if event A occurs and 0 otherwise, and M denotes the number of simulation replications. Hence, a decreasing trend in the simulated frequencies F ξ i ε , M ( n ) toward zero as n increases provides empirical evidence of estimator consistency, for both estimation methods ( i = 1 , 2 ) and across all hyperparameters ξ ∈ { μ 0 , ν 0 , u 0 } .
We now demonstrate that the moment estimators μ 01 ( n ) , ν 01 ( n ) , u 01 ( n ) and the MLEs μ 02 ( n ) , ν 02 ( n ) , u 02 ( n ) are consistent estimators of the hyperparameters μ 0 , ν 0 , u 0 . Table 3 presents the frequency distributions of these estimators for both moment-based and MLE for varying sample sizes n, under settings where ε = 1 , 0.5 , and 0.1 . The simulated data are generated from the hierarchical N-NIG model (2), with hyperparameter values set to μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 1 , 6 , 1 and u 0 = 2 . While other configurations of these hyperparameters could also be considered, the current choice serves to illustrate the behavior effectively. Analysis of the table reveals several key observations.
Table 3. The frequencies of the moment estimators and the MLEs of the hyperparameters as n varies for ε = 1 , 0.5 , and 0.1 .
1.
With ε = 1 , 0.5 , or 0.1 , the frequencies of the estimators approach zero as n tends to infinity, indicating that both the moment estimators and the MLEs are consistent for estimating the hyperparameters. In the case of ε = 0.1 , the frequencies of ν 01 ( n ) and ν 02 ( n ) remain relatively high (at least 0.2 across all scenarios). Nevertheless, a decreasing trend toward zero is evident as n grows large, suggesting eventual convergence.
2.
By comparing the frequencies corresponding to ε = 1 , 0.5 , and 0.1 , we find that as ε decreases, the frequencies generally increase. This occurs because the constraints
ξ i m n − ξ ≥ ε , for ξ = μ 0 , ν 0 , and u 0 , i = 1 , 2 ,
become easier to satisfy when ε is smaller.
3.
While small samples (e.g., n = 80 ) result in relatively high error frequencies, MLEs consistently achieve lower frequencies than moment estimators for μ 0 and u 0 across all sample sizes, and for ν 0 once the sample size becomes moderately large (e.g., n ≥ 20,000 ). This indicates that, in terms of convergence, MLEs offer more reliable estimation of the hyperparameters, particularly with larger samples.

3.2.2. Consistencies of Empirical Bayes Estimators

The purpose of this subsubsection is to emphasize that, as established in Theorem 5, we have rigorously demonstrated the consistencies of both the moment-based and MLE-based estimators with respect to δ s , o r a c l e π , θ n + 1 x n + 1 . It is important to note that all analyses herein are based on the observed data x ( n + 1 ) = ( x 1 , x 2 , … , x n + 1 ) .
To illustrate (30) and partially illustrate Theorem 5, we generate
X 1 = x 11 x 12 … x 1 n x 1 , n + 1 x 21 x 22 … x 2 n x 2 , n + 1 ⋮ ⋮ ⋮ ⋮ x M 1 x M 2 … x M n x M , n + 1 M × n + 1 ,
where x m j are iid generated from (2) for m = 1 , … , M = 100 and j = 1 , … , n + 1 ( n = 80 , 1e3, and 1e4). Note that
x m , n + 1 ∼ iid t ν 0 μ 0 , u 0 , for m = 1 , … , M ,
where μ 0 = 3 , ν 0 = 6 , and u 0 = 2 ( κ 0 = 1 and σ 0 2 = 1 ). The histogram of x n + 1 = x 1 , n + 1 , … , x M , n + 1 ⊤ are displayed in Figure 3. From this figure, we observe that the data are roughly symmetric around its mean μ 0 = 3 . Note that in (37), for each prime datum x m , n + 1 m = 1 , … , M , there is only one supplementary information x m n = x m 1 , x m 2 , … , x m n .
Figure 3. The histogram of x n + 1 = x 1 , n + 1 , … , x M , n + 1 ⊤ , where M = 100 and n = 1e4.
δ s , m o m e n t π , θ n + 1 x n + 1 , δ s , M L E π , θ n + 1 x n + 1 , δ s , o r a c l e π , θ n + 1 x n + 1 , δ s π , θ n + 1 x n + 1 | κ 0 = 0.5 , δ s π , θ n + 1 x n + 1 | κ 0 = 1 , and δ s π , θ n + 1 x n + 1 | κ 0 = 2 as functions of x n + 1 for n = 80 , 1e3, and 1e4 are displayed in Figure 4. In this figure, red ∘ corresponds to n = 80 , blue △ corresponds to n = 1e3, and purple + corresponds to n = 1e4. From this figure, we observe the following facts.
Figure 4. δ s , m o m e n t π , θ n + 1 x n + 1 , δ s , M L E π , θ n + 1 x n + 1 , δ s , o r a c l e π , θ n + 1 x n + 1 , δ s π , θ n + 1 x n + 1 | κ 0 = 0.5 , δ s π , θ n + 1 x n + 1 | κ 0 = 1 , and δ s π , θ n + 1 x n + 1 | κ 0 = 2 as functions of x n + 1 for n = 80 , 1e3, and 1e4.
1.
For plots (a) and (b), the y-axis range is [ − 11 , 26 ] . The three scatterplots corresponding to δ s π , θ n + 1 ( x n + 1 | κ 0 ) with κ 0 = 0.5 , 1 , 2 appear closely clustered. Among the empirical Bayes estimators, δ s , m o m e n t π , θ n + 1 ( x n + 1 ) and δ s , M L E π , θ n + 1 ( x n + 1 ) for n = 80 (red ∘) exhibit the widest spread, those for n = 1e3 (blue △) are more concentrated, and the results for n = 1e4 (purple +) are largely obscured by the three scatterplots of δ s π , θ n + 1 ( x n + 1 | κ 0 ) with κ 0 = 0.5 , 1 , 2 .
2.
For plots (c) and (d), the y-axis range is [ 0 , 2 ] . These plots show that the empirical Bayes estimators δ s , m o m e n t π , θ n + 1 ( x n + 1 ) and δ s , M L E π , θ n + 1 ( x n + 1 ) are most widely dispersed for n = 80 (red ∘), become more concentrated for n = 1e3 (blue △), and are most concentrated for n = 1e4 (purple +). As n increases, the empirical Bayes estimates converge toward the limiting oracle estimator δ s , o r a c l e π , θ n + 1 ( x n + 1 ) , which coincides with the estimator δ s π , θ n + 1 ( x n + 1 | κ 0 = 1 ) . Indeed, the scatterplots of these two estimators ( δ s , o r a c l e π , θ n + 1 ( x n + 1 ) and δ s π , θ n + 1 ( x n + 1 | κ 0 = 1 ) ) overlap completely. Furthermore, the oracle estimator δ s , o r a c l e π , θ n + 1 ( x n + 1 ) systematically underestimates δ s π , θ n + 1 ( x n + 1 | κ 0 = 2 ) and overestimates δ s π , θ n + 1 ( x n + 1 | κ 0 = 0.5 ) . The two plots illustrate (30).
3.
A comparison between plots (c) and (d) reveals that for n = 1e3 and 1e4, the estimates based on δ s , M L E π , θ n + 1 ( x n + 1 ) are more tightly clustered around the oracle estimator than those based on δ s , m o m e n t π , θ n + 1 ( x n + 1 ) . This indicates that the MLE method outperforms the method of moments when the sample size is moderately large (e.g., n = 1e3 and 1e4).
To further illustrate Theorem 5, we generate
X 2 = x 11 x 12 … x 1 n x n + 1 x 21 x 22 … x 2 n x n + 1 ⋮ ⋮ ⋮ ⋮ x M 1 x M 2 … x M n x n + 1 M × n + 1 ,
where x m j are iid generated from (2) for m = 1 , … , M = 100 and j = 1 , … , n ( n = 80 , 1e3, 1e4, 2e4, 4e4, 8e4, and 16e4). x n + 1 is fixed to be 3 or 4. The simulated data are generated from the hierarchical N-NIG model (2), with hyperparameter values set to μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 1 , 6 , 1 and u 0 = 2 . While alternative configurations of these hyperparameters can also be taken into account, the present selection effectively demonstrates the behavior. Under this hyperparameter setting, it is easy to show that x n + 1 ∼ t 6 3 , 2 . Therefore, x n + 1 = 3 and 4 are two typical values of x n + 1 . Note that in (38), for the prime datum x n + 1 , there are M supplementary information x m n = x m 1 , x m 2 , … , x m n for m = 1 , … , M .
Let
ξ 3 = δ s , o r a c l e π , θ n + 1 x n + 1 = 3 , ξ 4 = δ s , o r a c l e π , θ n + 1 x n + 1 = 4 , ξ 31 n = δ s , m o m e n t π , θ n + 1 x n , x n + 1 = 3 , ξ 41 n = δ s , m o m e n t π , θ n + 1 x n , x n + 1 = 4 , ξ 32 n = δ s , M L E π , θ n + 1 x n , x n + 1 = 3 , ξ 42 n = δ s , M L E π , θ n + 1 x n , x n + 1 = 4 .
Then, by Theorem 5, we have
ξ 3 i n ⟶ p ξ 3 , as n → ∞ , ξ 4 i n ⟶ p ξ 4 , as n → ∞ ,
for i = 1 , 2 , where i = 1 corresponds to the moment estimator and i = 2 to the MLE, with ⟶ p denoting convergence in probability and n being the sample size.
Boxplots of δ s , m o m e n t π , θ n + 1 x n + 1 and δ s , M L E π , θ n + 1 x n + 1 for different sample sizes n are plotted in Figure 5. From this figure, we observe the following facts.
Figure 5. Boxplots of δ s , m o m e n t π , θ n + 1 x n + 1 and δ s , M L E π , θ n + 1 x n + 1 for different sample sizes n when x n + 1 = 3 (a,b) and x n + 1 = 4 (c,d). The gray horizontal line is δ s , o r a c l e π , θ n + 1 x n + 1 .
1.
When sample sizes n increases, the variances of δ s , m o m e n t π , θ n + 1 x n + 1 and δ s , M L E π , θ n + 1 x n + 1 become smaller, and the empirical Bayes estimators tend to δ s , o r a c l e π , θ n + 1 x n + 1 . This indicates that δ s , m o m e n t π , θ n + 1 x n + 1 and δ s , M L E π , θ n + 1 x n + 1 are consistent estimators of δ s , o r a c l e π , θ n + 1 x n + 1 for x n + 1 = 3 and 4.
2.
Numerical results display that when x n + 1 = 3 , the interquartile ranges by the moment method are 0.5363, 0.2313, 0.0804, 0.0651, 0.0466, 0.0473, and 0.0290, those by the MLE method are 0.5361, 0.1995, 0.0389, 0.0257, 0.0176, 0.0138, and 0.0098, for seven sample sizes, 1e3, 1e4, 2e4, 4e4, 8e4, 16e4; when x n + 1 = 4 , the interquartile ranges by the moment and MLE methods are respectively given by 0.5410, 0.2062, 0.0702, 0.0593, 0.0421, 0.0426, 0.0258 and 0.5090, 0.1758, 0.0346, 0.0230, 0.0137, 0.0131, and 0.0086, for the same seven sample sizes. This indicates that in terms of interquartile range, the MLE method consistently outperforms the moment method for the seven sample sizes.
We now demonstrate that the empirical Bayes estimators δ s , m o m e n t π , θ n + 1 x n + 1 and δ s , M L E π , θ n + 1 x n + 1 are consistent estimators of δ s , o r a c l e π , θ n + 1 x n + 1 . Table 4 presents the frequency distributions of these empirical Bayes estimators for both moment-based and MLE for varying sample sizes n, under settings where ε = 1 , 0.5 , and 0.1 . An analysis of the table uncovers several crucial observations.
Table 4. The frequencies of the moment estimators and the MLEs of δ s , o r a c l e π , θ n + 1 x n + 1 as n varies for ε = 1 , 0.5 , and 0.1 .
1.
With ε = 1 , 0.5 , or 0.1 , the frequencies of the estimators approach zero as n tends to infinity, indicating that both the moment estimators and the MLEs are consistent for estimating δ s , o r a c l e π , θ n + 1 x n + 1 .
2.
By comparing the frequencies corresponding to ε = 1 , 0.5 , and 0.1 , we find that as ε decreases, the frequencies generally increase. This occurs because the constraints
ξ i m n − ξ ≥ ε , for ξ = ξ 3 and ξ 4 , i = 1 , 2 ,
become easier to satisfy when ε is smaller.
3.
While small samples (e.g., n = 80 ) result in relatively high error frequencies, MLEs consistently achieve lower frequencies than moment estimators for ξ 3 and ξ 4 once the sample size becomes moderately large (e.g., n ≥ 1000 ). This indicates that, in terms of convergence, MLEs offer more reliable estimation of δ s , o r a c l e π , θ n + 1 x n + 1 , particularly with larger samples.

3.3. The Effect of κ 0 for Quantities of Interest as Functions of x n + 1

In this subsection, we will investigate the effect of κ 0 for quantities of interest ( β * , δ s π , θ n + 1 x n + 1 , δ 2 π , θ n + 1 x n + 1 , δ 2 π , μ n + 1 x n + 1 , α * , P E S L s π , θ n + 1 x n + 1 , and P E S L 2 π , θ n + 1 x n + 1 ) as functions of x n + 1 . The motivation of this subsection is that κ 0 is unidentifiable, and we want to know whether using κ 0 = 1 (our recommendation) for the computation will overestimate or underestimate quantities of interest as functions of x n + 1 when the true κ 0 > 0 (e.g., 2 or 0.5 ) is different from κ 0 = 1 .
Quantities of interest as functions of x n + 1 for κ 0 = 2 , 1 , 0.5 in the simulations are plotted in Figure 6. In all the plots, u 0 = σ 0 2 κ 0 + 1 / κ 0 = 2 is fixed. From the figure, we observe the following facts.
Figure 6. Quantities of interest as functions of x n + 1 for κ 0 = 2 , 1 , 0.5 in the simulations. u 0 = σ 0 2 κ 0 + 1 / κ 0 = 2 is fixed in all the plots. Left column (a,c,e,g): β * , δ s π , θ n + 1 x n + 1 , δ 2 π , θ n + 1 x n + 1 , and δ 2 π , μ n + 1 x n + 1 are affected by κ 0 . Right column (b,d,f): α * , P E S L s π , θ n + 1 x n + 1 , and P E S L 2 π , θ n + 1 x n + 1 are not affected by κ 0 .
1.
From the left column of the figure, we see that β * , δ s π , θ n + 1 x n + 1 , δ 2 π , θ n + 1 x n + 1 , and δ 2 π , μ n + 1 x n + 1 are affected by κ 0 . Moreover, β * , δ s π , θ n + 1 x n + 1 , and δ 2 π , θ n + 1 x n + 1 are quadratic functions of x n + 1 (note that their y ranges are different), while δ 2 π , μ n + 1 x n + 1 is a linear function of x n + 1 .
2.
For plot (a), we observe that β * when using κ 0 = 1 will underestimate β * when using κ 0 = 2 , and it will overestimate β * when using κ 0 = 0.5 . In other words, β * is an increasing function of κ 0 for a fixed x n + 1 . Similar phenomena are observed for δ s π , θ n + 1 x n + 1 (plot (c)) and δ 2 π , θ n + 1 x n + 1 (plot (e)).
3.
For δ 2 π , μ n + 1 x n + 1 (plot (g)), we observe an interesting phenomenon that when x n + 1 < μ 0 ( = 3 in the simulation), δ 2 π , μ n + 1 x n + 1 when using κ 0 = 1 will underestimate that when using κ 0 = 2 , and it will overestimate that when using κ 0 = 0.5 . In other words, δ 2 π , μ n + 1 x n + 1 is an increasing function of κ 0 when x n + 1 < μ 0 . However, when x n + 1 > μ 0 , we observe a reversed phenomenon that δ 2 π , μ n + 1 x n + 1 when using κ 0 = 1 will overestimate that when using κ 0 = 2 , and it will underestimate that when using κ 0 = 0.5 . In other words, δ 2 π , μ n + 1 x n + 1 is a decreasing function of κ 0 when x n + 1 > μ 0 . The phenomena can be explained by the theoretical analysis of
∂ δ 2 π , μ n + 1 x n + 1 ∂ κ 0 = μ 0 − x n + 1 κ 0 + 1 2 > 0 , if x n + 1 < μ 0 , = 0 , if x n + 1 = μ 0 , < 0 , if x n + 1 > μ 0 .
4.
From the right column of the figure, we see that α * , P E S L s π , θ n + 1 x n + 1 , and P E S L 2 π , θ n + 1 x n + 1 are not affected by κ 0 . Moreover, they also do not depend on x n + 1 .

3.4. Two Inequalities of the Bayes Estimators and the PESLs

This subsection aims to provide numerical illustrations of the two inequalities related to the Bayes estimators and the PESLs—specifically, (20) and (21)—under the oracle scenario where the hyperparameters μ 0 , κ 0 , ν 0 , σ 0 2 are known. The rationale for this subsection lies in the theoretical foundation established by two inequalities (13) and (14), which we seek to validate through numerical examples.
First, we fix μ 0 = 3 , κ 0 = 1 , ν 0 = 6 , and σ 0 2 = 1 . Then, we set a seed number 1 in R software and draw θ n + 1 = 1.866135 from I G ˜ ν 0 / 2 , ν 0 σ 0 2 / 2 . Next, we draw μ n + 1 = 4.816593 from N ( μ 0 , θ n + 1 / κ 0 ) . After that, we draw x n + 1 = 6.554815 from N μ n + 1 , θ n + 1 . Figure 7 shows the histogram of θ n + 1 | x n + 1 and the density estimation curve of π ( θ n + 1 | x n + 1 ) . It is π ( θ n + 1 | x n + 1 ) that we find δ s π , θ n + 1 x n + 1 to minimize the PESL. Numerical results show that
δ s π , θ n + 1 x n + 1 = 1.759765 < 2.463671 = δ 2 π , θ n + 1 x n + 1
and
P E S L s π , θ n + 1 x n + 1 = 0.1496063 < 0.2131341 = P E S L 2 π , θ n + 1 x n + 1 ,
which exemplify the theoretical studies of (20) and (21).
Figure 7. The histogram of θ n + 1 | x n + 1 and the density estimation curve of π ( θ n + 1 | x n + 1 ) .
We now consider the scenario where one of the five parameters— μ 0 , κ 0 , ν 0 , σ 0 2 , and x n + 1 —is allowed to vary while the others remain constant. Specifically, our focus lies on conducting a sensitivity analysis of the Bayes estimators and the PESLs with respect to these five parameters.
Figure 8 illustrates the Bayes estimators and the PESLs as varying with ν 0 . As shown in the left panel, the Bayes estimators exhibit dependence on ν 0 , demonstrating the validity of inequality (20). Specifically, δ s π , θ n + 1 x n + 1 increases as ν 0 increases, whereas δ 2 π , θ n + 1 x n + 1 decreases with rising ν 0 . The right panel reveals that the PESLs are also influenced by ν 0 , supporting the inequality (21), and both PESLs decrease monotonically as ν 0 grows. Additionally, numerical values corresponding to these quantities are provided in Table 5, which aligns with the graphical representation in Figure 8. Overall, both the figure and the table confirm the two theoretical inequalities: (20) and (21).
Figure 8. The Bayes estimators and the PESLs as functions of ν 0 . (a) Bayes estimators vs. ν 0 . (b) PESLs vs. ν 0 .
Table 5. The numerical values of the Bayes estimators and the PESLs in Figure 8: ν 0 changes.
Figure 9 shows the Bayes estimators and the PESLs as functions of μ 0 , κ 0 , σ 0 2 , and x n + 1 . We see from the left plots of the figure that the Bayes estimators depend on μ 0 , κ 0 , σ 0 2 , and x n + 1 , and (20) is exemplified. Moreover, the Bayes estimators are first decreasing and then increasing functions of μ 0 and x n + 1 , and they are increasing functions of κ 0 and σ 0 2 . The right plots of the figure exhibit that the PESLs do not depend on μ 0 , κ 0 , σ 0 2 , and x n + 1 , and (21) is exemplified. Furthermore, Table 6, Table 7, Table 8 and Table 9 display the numerical values of the Bayes estimators and the PESLs in Figure 9. In summary, the results of Figure 9 and Table 6, Table 7, Table 8 and Table 9 exemplify the two inequalities (20) and (21).
Figure 9. The Bayes estimators and the PESLs as functions of μ 0 , κ 0 , σ 0 2 , and x n + 1 . (a,c,e,g) Bayes estimators vs. μ 0 , κ 0 , σ 0 2 , and x n + 1 . (b,d,f,h) PESLs vs. μ 0 , κ 0 , σ 0 2 , and x n + 1 .
Table 6. The numerical values of the Bayes estimators and the PESLs in Figure 9: μ 0 changes.
Table 7. The numerical values of the Bayes estimators and the PESLs in Figure 9: κ 0 changes.
Table 8. The numerical values of the Bayes estimators and the PESLs in Figure 9: σ 0 2 changes.
Table 9. The numerical values of the Bayes estimators and the PESLs in Figure 9: x n + 1 changes.
In brief, the results of Figure 8 and Figure 9 exemplify that the PESLs depend only on ν 0 , but not on μ 0 , κ 0 , σ 0 2 , and x n + 1 .
Since the estimators δ 2 π , θ n + 1 x n + 1 and δ s π , θ n + 1 x n + 1 , along with their corresponding PESLs— P E S L 2 π , θ n + 1 x n + 1 and P E S L s π , θ n + 1 x n + 1 —are functions of the parameters α * and β * , where α * > 1 and β * > 0 , we visualize their behavior across the domain D = ( 1 , 10 ] × ( 0 , 10 ] using the persp3d() function from the R package rgl (refer to [20,21,37]). A key advantage of persp3d() over the standard persp() function in the graphics package is its ability to overlay multiple surfaces within the same plot and enable interactive rotation of 3D visualizations, thereby offering greater flexibility in graphical analysis. The resulting surface plots for the estimators, the PESLs, and their pairwise differences are displayed in Figure 10. As shown in the two leftmost panels, δ 2 π , θ n + 1 x n + 1 consistently exceeds δ s π , θ n + 1 x n + 1 across all values of α * , β * ∈ D , providing empirical support for the inequality stated in (20). Similarly, the rightmost panels indicate that P E S L 2 π , θ n + 1 x n + 1 remains greater than P E S L s π , θ n + 1 x n + 1 throughout D, which visually confirms the theoretical result in (21). Overall, the numerical illustrations in the figure corroborate the analytical findings presented in (20) and (21).
Figure 10. The domain for α * , β * is D = ( 1 , 10 ] × ( 0 , 10 ] for all the plots. a is for α * and b is for β * in the axes of all the plots. The red surface is for δ 2 π , θ n + 1 x n + 1 and the blue surface is for δ s π , θ n + 1 x n + 1 in the upper two plots. (a) The estimators as functions of α * and β * . δ 2 π , θ n + 1 x n + 1 > δ s π , θ n + 1 x n + 1 for all α * , β * on D. (b) The PESLs as functions of α * and β * . P E S L 2 π , θ n + 1 x n + 1 > P E S L s π , θ n + 1 x n + 1 for all α * , β * on D. (c) The surface of δ 2 π , θ n + 1 x n + 1 − δ s π , θ n + 1 x n + 1 which is positive for all α * , β * on D. (d) The surface of P E S L 2 π , θ n + 1 x n + 1 − P E S L s π , θ n + 1 x n + 1 which is also positive for all α * , β * on D.

3.5. Goodness-of-Fit of the Model

This subsection focuses on evaluating the goodness-of-fit of the hierarchical N-NIG model (2) to the generated synthetic data. The primary objective is to assess how well the marginal distribution of the hierarchical N-NIG model (2) captures the characteristics of the simulated dataset. It should be noted that the analysis here is based solely on the observed data points x n = x 1 , x 2 , … , x n .
The Kolmogorov-Smirnov (KS) statistic measures the maximum discrepancy, denoted as D, between the empirical cumulative distribution function (cdf), F n x , and the theoretical population cdf, F 0 x . Mathematically, this is expressed as
D = sup − ∞ < x < ∞ F n x − F 0 x .
In R, the KS test can be carried out using the built-in function ks.test() (refer to [38,39,40]). While the standard KS test is primarily designed for one-dimensional continuous distributions, various adaptations known as KS-type tests have also been proposed in the literature for handling discrete data [41,42,43].
The R function ks.test() performs the KS test, and its return value is a list containing the components statistic (the value of the test statistic, or the D value) and p value (the p-value of the test). In the literature, it is well known that a smaller D value or a larger p-value indicates a better fit of the model to the simulated data. Based on and inspired by the D value and p-value, [21] propose five indices ( D ¯ , p − value ¯ , min D % , max p − value % , Accept H 0 % ) to compare the three methods, that is, the oracle method, the moment method, and the MLE method in simulations. D ¯ is the average D values (39) of M simulations (the smaller the better). p − value ¯ is the average p-values of M simulations (the larger the better). min D % is the percentage of M simulations that attain the minimum D value in the three methods (the larger the better). The three min D % values should sum to 1. max p − value % is the percentage of M simulations that attain the maximum p-value in the three methods (the larger the better). The three max p − value % values should sum to 1. Accept H 0 % is the percentage of accepting H 0 (defined as p-value > 0.05 ) in M simulations for each method (the larger the better). Each Accept H 0 % value should be between 0 and 100%.
In our problem, the null hypothesis specifies that
H 0 : X ∼ N − N − I G ˜ ( μ 0 , ν 0 , u 0 ) ,
where N − N − I G ˜ ( μ 0 , ν 0 , u 0 ) is the marginal distribution of the hierarchical N-NIG model (2). The marginal density of the N − N − I G ˜ ( μ 0 , ν 0 , u 0 ) distribution is given by (23) which is obviously one-dimensional and continuous. Therefore, the KS test can serve as an indicator of how well the model fits the data.
It should be noted that the data presented in this subsection are generated based on the hierarchical N-NIG model (2), where the hyperparameters are set to μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 1 , 6 , 1 and u 0 = 2 . Alternative values for these hyperparameters may also be chosen depending on the context.
Table 10 presents the goodness-of-fit results from the KS test for model (2) applied to simulated data. The simulations are based on a sample size of n = 80 and repeated M = 100 times. Hyperparameter estimation for μ 0 , ν 0 , and u 0 is conducted using three distinct approaches. The first is the oracle method, which assumes prior knowledge of the true values: μ 0 = 3 , ν 0 = 6 , and u 0 = 2 . The second approach employs the method of moments, utilizing moment estimators derived in Theorem 3. The third approach relies on MLE, where the hyperparameters are numerically computed using the MLEs provided in Theorem 4.
Table 10. The results of the KS test goodness-of-fit of the model (2) to the simulated data.
As shown in Table 10, the following observations can be made.
1.
The D ¯ values corresponding to the three approaches are 0.0956 , 0.0946 , and 0.0788 , respectively. This indicates that the MLE method performs best, followed by the moment method, while the oracle method yields the least satisfactory results. A plausible explanation for this outcome is that, as shown in (39), the empirical cdf F n x relies on observed data, and similarly, the theoretical cdf F 0 x used in both the moment and MLE methods are derived from data. In contrast, the F 0 x associated with the oracle method does not depend on actual data.
2.
The p − value ¯ corresponding to the three methods are 0.4983 , 0.5922 , and 0.7254 , respectively, indicating that the MLE method performs best, followed by the moment method, with the oracle method ranking last. A plausible explanation for this outcome is provided in the preceding paragraph.
3.
The min D % values for the three approaches are 0.22 , 0.27 , and 0.51 , respectively. For the MLE method, the min D % value exceeds half of the M simulations. In terms of performance ranking, the methods are ordered as follows: MLE method, moment method, and oracle method.
4.
The three methods yield max p − value % values of 0.22 , 0.27 , and 0.51 , respectively. Since a lower D value is associated with a higher p-value, the method producing the minimum D value will also produce the maximum p-value. As a result, the min D % and max p − value % values are identical across the three approaches. Based on performance, the methods can be ranked in descending order of preference as follows: MLE method, moment method, and oracle method.
5.
The Accept H 0 % values for the three methods are 93 % , 91 % , and 95 % , respectively, indicating that these values are over 90 % . This suggests that all three methods exhibit strong performance in terms of model fit.
6.
To summarize, the MLE method consistently achieves the top ranking across all five evaluation metrics— D ¯ , p − value ¯ , min D % , max p − value % , and Accept H 0 % . When comparing the moment method with the MLE method, the results indicate that the MLE method outperforms the moment method on each of these five criteria.
Figure 11 presents the boxplots of the D values and p-values obtained from the three methods. The following observations can be made based on this figure.
Figure 11. The boxplots of the D values and the p-values for the three methods. (a) D values. (b) p-values.
1.
The D values obtained by the oracle method are higher than those of the other two approaches. Since lower D values indicate better performance, the preferred ranking of the three methods is as follows: MLE method, moment method, and then the oracle method.
2.
The oracle method yields the lowest p-values compared to the other two approaches. Since higher p-values are preferable, the methods can be ranked in descending order of preference as follows: MLE method, moment method, and finally the oracle method.
3.
Large D values are associated with small p-values, whereas small D values are linked to large p-values.
4.
Based on the D values and p-values, the MLE method outperforms the method of moments.
In addition to employing the KS test to assess the goodness-of-fit of the proposed model (2), it is advisable to conduct additional tests for goodness-of-fit. For example, the Anderson-Darling (AD) test [44,45,46] assigns greater significance to the tails of the distribution, rendering it especially valuable for detecting deviations in extreme groups. Moreover, the Cramer-von Mises (CVM) test [47] can supplement the KS and AD tests by integrating the squared differences between the empirical cdf and the theoretical cdf across the entire domain.
The goodness-of-fit results (average p-values) of Model (2) applied to the simulated data are presented in Table 11. The simulations are based on a sample size of n = 80 and repeated M = 100 times. In this table, three statistical tests were employed: the KS test, the AD test, and the CVM test. The ks.test() is a built-in R function within the stats package. The ad.test() and cvm.test() are functions in the contributed R package goftest. From this table, we can observe the following facts.
Table 11. The goodness-of-fit results (average p-values) of Model (2) applied to the simulated data.
1.
The MLE method demonstrates superior fit. Across all tests (KS, AD, CVM), the MLE method yields the highest average p-value, indicating the best agreement between the model and the simulated data.
2.
The moment method performs better than the oracle method. The moment method’s p-values consistently rank between the MLE and oracle methods, showing that estimated hyperparameters can provide a better in-sample fit than the true parameters.
3.
Parameter estimation significantly affects goodness-of-fit tests. When the “estimated=TRUE" argument is used for the AD and CVM tests, p-values drop substantially. This highlights the necessity of this correction to avoid overly optimistic fit assessments.
4.
Results are consistent across different statistical tests. The performance ranking (MLE > moment > oracle) is identical for the KS, AD, and CVM tests. This consistency strengthens the validity and robustness of the comparative findings.
5.
The oracle method is not applicable when “estimated = TRUE" because its parameters are known rather than estimated.
Figure 12 depicts the boxplots of the p-values for the three methods across three tests. By examining this figure, we can observe that the three tests exhibit a similar pattern: the MLE method outperforms the moment method, and the moment method is superior to the oracle method.
Figure 12. The boxplots of the p-values for the three methods by three tests. (a) ks.test(...). (b) ad.test(..., estimated=FALSE). (c) cvm.test(..., estimated=FALSE). (d) ad.test(..., estimated=TRUE). (e) cvm.test(..., estimated=TRUE).

3.6. Marginal Densities for Various Hyperparameters

This subsection presents the marginal density plots of the hierarchical N-NIG model (2) under different settings of the hyperparameters μ 0 , κ 0 , ν 0 , and σ 0 2 . The primary objective is to investigate the types of data distributions that can be captured by this hierarchical model. Recall that the marginal density of X is defined by Equation (6), which depends on four hyperparameters: μ 0 (ranging over the real line), κ 0 > 0 , ν 0 > 0 , and σ 0 2 > 0 . Our analysis focuses on how variations in these hyperparameters affect the shape of the marginal density, using the baseline configuration μ 0 = 3 , κ 0 = 1 , ν 0 = 6 , and σ 0 2 = 1 as a reference point. Alternative values for the hyperparameters may also be considered to further explore the model’s flexibility.
Figure 13 displays the marginal density functions under different values of μ 0 = − 3 , 0 , 3 , 6 , 9 , with κ 0 = 1 , ν 0 = 6 , and σ 0 2 = 1 held constant. It can be observed that as μ 0 increases, the entire distribution shifts rightward without altering its shape, indicating that μ 0 acts as a location parameter. Furthermore, each marginal density is symmetric around its corresponding mean value μ 0 .
Figure 13. The marginal densities for varied μ 0 = − 3 , 0 , 3 , 6 , 9 , holding κ 0 = 1 , ν 0 = 6 , and σ 0 2 = 1 fixed.
Figure 14 illustrates the marginal density functions under different values of κ 0 = 0.25 , 0.5 , 1 , 2 , 4 , with μ 0 = 3 , ν 0 = 6 , and σ 0 2 = 1 held constant. It can be observed that as κ 0 grows larger, the peak of the marginal density becomes more pronounced, indicating a reduction in its spread. This is consistent with the theoretical expression for the variance of X, given by
Var X = ν 0 ν 0 − 2 σ 0 2 κ 0 + 1 κ 0 ,
which decreases as κ 0 increases. Additionally, each marginal density remains symmetric around the common mean μ 0 .
Figure 14. The marginal densities for varied κ 0 = 0.25 , 0.5 , 1 , 2 , 4 , holding μ 0 = 3 , ν 0 = 6 , and σ 0 2 = 1 fixed.
Figure 15 displays the marginal density functions under different values of ν 0 = 2 , 4 , 6 , 12 , 24 , with μ 0 = 3 , κ 0 = 1 , and σ 0 2 = 1 held constant. It can be observed that as ν 0 grows larger, the height of the density peak rises, indicating a reduction in the spread of the distribution. This is consistent with (40), which shows that the variance of the marginal density decreases as ν 0 increases. Additionally, each marginal density exhibits symmetry around the common mean μ 0 .
Figure 15. The marginal densities for varied ν 0 = 2 , 4 , 6 , 12 , 24 , holding μ 0 = 3 , κ 0 = 1 , and σ 0 2 = 1 fixed.
Figure 16 displays the marginal density functions under different values of σ 0 2 = 0.25 , 0.5 , 1 , 2 , 4 , with μ 0 = 3 , κ 0 = 1 , and ν 0 = 6 held constant. As observed in the plot, an increase in σ 0 2 leads to a reduction in the height of the density peak, indicating a broader distribution. This reflects a larger variance in the marginal density, which aligns with (40) showing that variance increases with σ 0 2 . Additionally, each marginal density remains symmetric around the mean value μ 0 .
Figure 16. The marginal densities for varied σ 0 2 = 0.25 , 0.5 , 1 , 2 , 4 , holding μ 0 = 3 , κ 0 = 1 , and ν 0 = 6 fixed.

3.7. Comparison with Standard MLE Under PESL

In this subsection, we will compare the (empirical) Bayes estimators δ s , o r a c l e π , θ n + 1 x n + 1 , δ s , m o m e n t π , θ n + 1 x n + 1 , and δ s , M L E π , θ n + 1 x n + 1 with the standard MLE
σ ^ N 2 = 1 N ∑ i = 1 N x i − x ¯ 2 = N − 1 N 1 N − 1 ∑ i = 1 N x i − x ¯ 2 = N − 1 N S N 2 = N − 1 N var x n + 1 ,
using P E S L a | x n + 1 as a metric, where N = n + 1 is the sample size, S N 2 = var x n + 1 is the sample variance of the sample x n + 1 = ( x 1 , x 2 , … , x n + 1 ) .
The sample is generated from the hierarchical N-NIG model (2) with hyperparameters being given by μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 1 , 6 , 1 , u 0 = 2 , n = 79 , x n + 1 = 3 . Other numerical values can also be specified. By setting the seed number to 6, the sample x n + 1 exhibits the following statistics:
Mean = 3.314 , Variance = 3.237 , Skewness = 0.112 , Kurtosis = 1.727 .
By Theorem 3, the moment estimators for x n = ( x 1 , x 2 , … , x n ) is
μ 01 n = 3.318 , ν 01 n = 6.669 , u 01 n = 2.265 .
By Theorem 4, the MLEs for x n is
μ 02 n = 3.298 , ν 02 n = 5.725 , u 02 n = 2.132 .
After that, we obtain the estimators
σ ^ N 2 = 3.197 , δ s , o r a c l e π , θ n + 1 x n + 1 = 0.857 , δ s , m o m e n t π , θ n + 1 x n + 1 = 0.992 , δ s , M L E π , θ n + 1 x n + 1 = 0.914 .
Finally, we obtain the P E S L a | x n + 1 evaluated at the estimators
P E S L a | x n + 1 a = σ ^ N 2 = 1.563 , P E S L a | x n + 1 a = δ s , o r a c l e π , θ n + 1 x n + 1 = 0.150 , P E S L a | x n + 1 a = δ s , m o m e n t π , θ n + 1 x n + 1 = 0.161 , P E S L a | x n + 1 a = δ s , M L E π , θ n + 1 x n + 1 = 0.152 .
This indicates that, with respect to P E S L a | x n + 1 , the preference order of the estimators is δ s , o r a c l e π , θ n + 1 x n + 1 , δ s , M L E π , θ n + 1 x n + 1 , δ s , m o m e n t π , θ n + 1 x n + 1 , and σ ^ N 2 .
To conduct a more in-depth comparison between the (empirical) Bayes estimators δ s , o r a c l e π , θ n + 1 x n + 1 , δ s , m o m e n t π , θ n + 1 x n + 1 , and δ s , M L E π , θ n + 1 x n + 1 and the standard MLE σ ^ N 2 , we utilize the data structure of (38) with M = 100 replications, where x n + 1 = 3 . Given that n = 79 is relatively small, among the M = 100 replications, 31 replications yield ν 01 n < 0 or u 01 n < 0 . Among the M = 100 replications, 44 replications result in ν 02 n < 0 or u 02 n < 0 . In such cases, the MLEs are equivalent to the moment estimators. Additionally, 20 replications lead to ν 02 n > 100 or u 02 n > 100 , and in these instances, the MLEs are also equal to the moment estimators. Among the M = 100 replications, 19 replications result in δ s , m o m e n t π , θ n + 1 x n + 1 < 0 , and 19 replications result in δ s , M L E π , θ n + 1 x n + 1 < 0 . Regarding the PESL P E S L a | x n + 1 evaluated at the estimators, there are 19 NaN (Not a Number) values for δ s , m o m e n t π , θ n + 1 x n + 1 and 19 NaN values for δ s , M L E π , θ n + 1 x n + 1 , as taking the logarithm of a negative number results in NaN.
The boxplots of the P E S L a | x n + 1 evaluated at the estimators σ ^ N 2 , δ s , o r a c l e π , θ n + 1 x n + 1 , δ s , m o m e n t π , θ n + 1 x n + 1 , and δ s , M L E π , θ n + 1 x n + 1 are presented in Figure 17. In plot (a), the y-axis limit (ylim) is set to the full range ( 0 , 8.3 ) , whereas in plot (b), the ylim is set to ( 0 , 1.7 ) to facilitate a clearer visualization of the boxplots. From the figure, it can be observed that
P E S L a | x n + 1 a = δ s , o r a c l e π , θ n + 1 x n + 1 = P E S L s π , θ n + 1 x n + 1 = log α * − ψ α * = log ν 0 + 1 2 − ψ ν 0 + 1 2
is a constant value of 0.150 that is independent of the data, and it represents the smallest value among the four boxplots. The P E S L a | x n + 1 values evaluated at δ s , m o m e n t π , θ n + 1 x n + 1 and δ s , M L E π , θ n + 1 x n + 1 are close to the value evaluated at δ s , o r a c l e π , θ n + 1 x n + 1 , with the value at δ s , M L E π , θ n + 1 x n + 1 being closer. The P E S L a | x n + 1 evaluated at the standard MLE σ ^ N 2 is the largest. Therefore, in terms of P E S L a | x n + 1 , the preference order of the estimators is δ s , o r a c l e π , θ n + 1 x n + 1 , δ s , M L E π , θ n + 1 x n + 1 , δ s , m o m e n t π , θ n + 1 x n + 1 , and σ ^ N 2 .
Figure 17. The boxplots of the P E S L a | x n + 1 evaluated at the estimators. (a) ylim = ( 0 , 8.3 ) . (b) ylim = ( 0 , 1.7 ) .

3.8. Comparison of Loss Functions, Posterior Risks, and Corresponding Bayes Estimators

In this subsection, we aim to illustrate three aspects in Section 2.3: (1) comparison between two posterior risks; (2) comparison between two Bayes estimators; and (3) comparison between the two posterior risks evaluated at the two Bayes estimators.
We demonstrate using the hierarchical N-NIG model (2) with hyperparameters specified as μ 0 , κ 0 , ν 0 , σ 0 2 = 3 , 1 , 6 , 1 , u 0 = 2 , and x n + 1 = 3 . Other numerical values can also be defined. Numerical results indicate that
δ s π , θ n + 1 x n + 1 = 0.857 < 1.014 = δ p π , θ n + 1 x n + 1 ,
which validates (34). Furthermore,
P E S L s π , θ n + 1 x n + 1 = 0.150 < 0.165 = P E S L p π , θ n + 1 x n + 1
and
P E P L p π , θ n + 1 x n + 1 = 0.366 < 0.400 = P E P L s π , θ n + 1 x n + 1 ,
which confirm (35) and (36).
The two posterior risk functions are depicted in Figure 18. From this figure, the following observations can be made.
Figure 18. The two posterior risk functions.
1.
The P E S L a | x n + 1 is a convex function with a unique minimum attained at δ s π , θ n + 1 x n + 1 . This demonstrates (32).
2.
The P E P L a | x n + 1 is also a convex function with a unique minimum attained at δ p π , θ n + 1 x n + 1 . This demonstrates (33).
3.
The coordinate of the purple ∘ is
δ s π , θ n + 1 x n + 1 , P E S L s π , θ n + 1 x n + 1 = 0.857 , 0.150 .
The coordinate of the purple △ is
δ p π , θ n + 1 x n + 1 , P E P L p π , θ n + 1 x n + 1 = 1.014 , 0.366 .
4.
The three inequalities (34)–(36) are illustrated.

4. A Real Data Example

In this section, we exploit the poverty level data. The data represent percentages of all persons below the poverty level. The sample is from a random collection of 80 = n + 1 cities in the Western U.S. Source: County and City Data Book (1994, 12th edition, U.S. Department of Commerce). The selection was a simple random sample from all cities in Western U.S. states listed in the 1994 data book. The data can be downloaded from https://college.cengage.com/mathematics/brase/understandable_statistics/7e/students/datasets/svls/frames/frame.html (accessed on 2 February 2026) under section title “Poverty Level”. It should be noted that there is an underscore (“_”) between “understandable” and “statistics”. The readers are advised to copy and paste the two-line link into their web browser.
The random sample of the poverty level data of size 80 are reported in Table 12. The data are denoted as
x n + 1 = x 1 , x 2 , … , x n , x n + 1 , x n = x 1 , x 2 , … , x n , n = 79 .
Table 12. The random sample of the poverty level data of size 80.
For the sample x n where n = 79 , three methods are employed for fitting. Specifically, these include a normal distribution N μ , σ 2 , Model (2) (in which the marginal distribution is a non-standardized Student t-distribution t ν 0 μ 0 , u 0 ) with hyperparameters estimated via the moment method, and Model (2) with hyperparameters estimated using the MLE method. Numerical results indicate that for the normal distribution,
μ ^ n = x ¯ n = 1 n ∑ i = 1 n x i = 0.167 , σ ^ n 2 = 1 n ∑ i = 1 n x i − x ¯ 2 = 0.008 .
It is notable that the moment-based and MLE-based estimators of the parameters ( μ , σ 2 ) are identical. Furthermore, for the t-distribution,
μ 01 n = 0.167 , ν 01 n = 4.933 , u 01 n = 0.005 ,
μ 02 n = 0.162 , ν 02 n = 12.287 , u 02 n = 0.007 ,
where the subscript 1 represents the moment estimators and the subscript 2 represents the MLEs. The moment estimator of the hyperparameter μ 0 is equal to the sample mean x ¯ = 0.167 of the first n observations. It is worth noting that the MLE of the hyperparameter μ 0 is equal to 0.162 , which is very close to the moment estimator of the hyperparameter μ 0 . Furthermore, the moment estimator and the MLE of the hyperparameter u 0 are also very similar, and they are close to 0.006 . However, the moment estimator and the MLE of the hyperparameter ν 0 are quite different. This does not mean that the moment estimator and the MLE are not consistent estimators of the hyperparameter ν 0 , nor mean that the hierarchical N-NIG model (2) does not fit the real data. For the big difference between the two estimators, the reason is that the sample size n = 79 is small. Certainly, the MLE of the hyperparameter ν 0 is more reliable, as guaranteed from the previous figures and tables in the simulations section. The estimated hyperparameters by the MLE method indicate that the poverty rates across Western U.S. cities are centered near 0.162 ( μ 02 n ) with low dispersion ( u 02 n = 0.007 ), yet exhibit heavy tails ( ν 02 n = 12.287 small), suggesting a generally low but concentrated poverty level, with a few outlier cities having extreme values.
The histogram of the sample x n and its estimated densities are depicted in Figure 19. Based on this figure, which displays a histogram of the sample data overlaid with three estimated density curves, the following visual comparisons and conclusions can be made regarding the three fitting methods.
Figure 19. The histogram of the sample x n and its estimated densities.
1.
General agreement on center: All three estimated densities—the normal distribution and the two Model (2) variants—are centered over the main bulk of the data, indicating that each method correctly captures the central tendency of the sample. Their peaks align roughly with the highest bar of the histogram.
2.
Differences in spread and tail behavior: The primary visual differences lie in the width (spread) and the tails of the fitted curves.
  • The normal distribution (solid line) displays the classic symmetric bell shape. Its spread appears to be moderate, covering the central data points effectively.
  • Model (2) fitted via the moment method (subscript 1, dashed line) corresponds to a t-distribution with relatively low degrees of freedom. Visually, this curve shows heavier tails compared to the normal curve. This means it assigns higher probability to data points farther from the center.
  • Model (2) fitted via the MLE method (subscript 2, dotted line) corresponds to a t-distribution with much higher degrees of freedom. Consequently, its shape is very similar to the normal distribution, as a t-distribution with high degrees of freedom converges to a normal shape. Its spread is slightly different, but its tail is only marginally heavier than the normal’s.
3.
Visual goodness-of-fit: The key assessment is which curve most closely follows the contour of the histogram bars.
  • The t-distribution obtained from the moment method (subscript 1) has an excessively high peak, which is relatively far from the highest bar of the histogram. Moreover, its middle part is too narrow to fit the histogram well.
  • The t-distribution from the MLE method (subscript 2) and the normal distribution appear very similar in shape. The better fit between these two would be determined by which one more precisely matches the peak’s height and the width of the central bins. The MLE-estimated model adjusts its parameters to maximize the alignment with the shape of the observed data, and it exhibits a better fit compared to the normal distribution.
4.
In summary: The graph visually confirms that the two Model (2) fits, based on the t-distribution, offer more flexible shapes than the normal assumption. The MLE-method fit provides a shape nearly identical to the normal but is optimized based on the data’s likelihood. The moment-method fit provides the least adequate fit to the histogram.
The goodness-of-fit results (p-values) of the normal distribution N μ , σ 2 and Model (2) applied to the real data x n by three tests are summarized in Table 13. From this table, we observe the following facts.
Table 13. The goodness-of-fit results (p-values) of the normal distribution N μ , σ 2 and Model (2) applied to the real data x n by three tests.
1.
All three methods produce p-values above the conventional 0.05 significance level in every test. This indicates that, statistically, none of the models show a significant lack of fit to the observed data. In other words, all distributions—the normal distribution, Model (2) fitted via the moment method, and Model (2) fitted via the MLE method—are plausible descriptions of the underlying dataset.
2.
Model (2) fitted via the MLE method consistently achieves the highest p-values across all five test variations. This indicates it provides the closest agreement with the real data among the three options.
3.
The normal distribution typically shows p-values that are intermediate—lower than those from Model (2)+MLE but generally higher than those from Model (2)+moment method. An exception is the first row (KS test), where its p-value is slightly lower than that of Model (2)+moment method.
4.
Model (2) fitted via the moment method most often yields the lowest p-values of the three (again, except in the first row). This suggests that, while it still provides an adequate fit, it is the least optimized for this specific dataset compared to the other two approaches.
5.
A secondary but important observation concerns the two variations of the AD and CVM tests. For each method, the test results that account for estimated parameters (“estimated=TRUE”) yield higher p-values than the standard versions (“estimated=FALSE”). This adjustment strengthens the evidence for an adequate fit but does not change the overall ranking of the methods. When the “estimated” parameter is set to “TRUE”, an asterisk (*) is added to the p-values. Since the tests generate different p-values each time, we use the set.seed(1) command in the R software to obtain a fixed p-value.
6.
In summary, the table demonstrates that the choice of both the model and the estimation method matters. While a normal distribution is a reasonable and parsimonious fit, moving to Model (2) can improve the fit, but only if it is estimated using the MLE method. Using the moment method for Model (2) does not offer an advantage over the simple normal model in this case. Therefore, Model (2) with MLE estimation is identified as the most appropriate choice for this data based on these goodness-of-fit criteria.
The empirical Bayes estimators of the variance parameter of the normal distribution with a conjugate normal-inverse-gamma prior (Model (2)) and the PESLs, and the mean and variance of the real data by the moment method and the MLE method are summarized in Table 14. From the table, we observe the following facts.
Table 14. The empirical Bayes estimators of the variance parameter of the normal distribution and the PESLs, and the mean and variance of the real data by the moment method and the MLE method.
1.
When the hyperparameters are estimated by the MLE method, we see that
δ s , M L E π , θ n + 1 x n + 1 = 0.0032576 < 0.0038348 = δ 2 , M L E π , θ n + 1 x n + 1
and
P E S L s , M L E π , θ n + 1 x n + 1 = 0.0771456 < 0.0912061 = P E S L 2 , M L E π , θ n + 1 x n + 1 .
We observe a similar phenomenon for the Bayes estimators and the PESLs when the hyperparameters are estimated by the moment method. Therefore, the two inequalities (20) and (21) are exemplified.
2.
The mean of X (the poverty level data) is estimated by E X ≈ μ ^ 0 . The variance of X is estimated by Var X ≈ ν ^ 0 ν ^ 0 − 2 u ^ 0 . It is useful to note that the mean and variance of X by the two methods are very similar, although the estimators of the hyperparameters (41) and (42) are very different. Moreover, it is worth mentioning that
E X ≈ 0.1619865 = 16.19865 % , Var X ≈ 0.0080536 = 80.536 % 2
for the MLE method. For the moment method, the mean and variance of X are similar. Hence, the variance of X is very small, not large!
Now we compare the results of Table 14 with the standard MLE for normal distribution N μ , σ 2 . Numerical results show that
σ ^ N 2 = 1 N ∑ i = 1 N x i − x ¯ 2 = N − 1 N var x n + 1 = 0.0079630 , P E S L σ ^ N 2 , m o m e n t x n + 1 = P E S L a | x n + 1 a = σ ^ N 2 , m o m e n t = 1.3497169 , P E S L σ ^ N 2 , M L E x n + 1 = P E S L a | x n + 1 a = σ ^ N 2 , M L E = 0.6277737 , E X = μ ≈ μ ^ N = x ¯ N = 1 N ∑ i = 1 N x i = 0.1661375 , Var X = σ 2 ≈ σ ^ N 2 = 0.0079630 ,
where var x n + 1 is the sample variance of x n + 1 .
A comparison of estimators, PESL, E X , and Var X , based on the normal distribution N μ , σ 2 and Model (2) applied to the real data x n + 1 using the moment method and the MLE method is summarized in Table 15. From this table, we can observe the following facts.
Table 15. A comparison of estimators, PESL, E X , and Var X , based on the normal distribution N μ , σ 2 and Model (2) applied to the real data x n + 1 using the moment method and the MLE method.
1.
For the normal distribution N μ , σ 2 , the estimators obtained through the moment method and the MLE method are identical. Consequently, there exists only a single value for the estimator, E X , and Var X . The PESL function, P E S L a | x n + 1 , is dependent on the hyperparameters μ 0 , κ 0 , ν 0 , σ 0 2 which are estimated using the moment method and the MLE method. To ensure identifiability, κ 0 is set to 1. Therefore, there are two values for the PESL evaluated at σ ^ N 2 .
2.
The estimators. The estimator σ ^ N 2 is employed to estimate the normal variance σ 2 . Nevertheless, the empirical Bayes estimators δ s , m o m e n t π , θ n + 1 x n + 1 and δ s , M L E π , θ n + 1 x n + 1 are utilized to estimate the normal variance θ n + 1 . The values of the two empirical Bayes estimators are approximately identical, and they are significantly smaller than the standard MLE σ ^ N 2 .
3.
The PESL. For a given model (either N μ , σ 2 or Model (2)), the MLE method yields a smaller PESL. For a given method (either the method of moments or MLE), Model (2) results in a smaller PESL compared to the normal distribution. The combination of Model (2) and MLE generates the smallest PESL.
4.
The mean E X . The three estimators of E X are similar.
5.
The variance Var X . The three estimators of Var X are very similar.
6.
Given that P E S L s , M L E π , θ n + 1 x n + 1 is the smallest value, we interpret the results by utilizing the combination of Model (2) and the MLE method. Specifically, the empirical Bayes estimators of θ n + 1 under Stein’s loss function obtained through the MLE method is δ s , M L E π , θ n + 1 x n + 1 = 0.0032576 . The PESL evaluated at the empirical Bayes estimator is P E S L s , M L E π , θ n + 1 x n + 1 = 0.0771456 . The mean E X is estimated to be 0.1619865 , and the variance Var X is estimated to be 0.0080536 .

5. Discussions and Conclusions

5.1. Discussions

When to use empirical Bayes with Stein’s loss is summarized in Table 16. In this table, we outline key scenarios, comparative advantages over squared error loss, and practical considerations based on our simulations and theoretical findings.
Table 16. When to use empirical Bayes with Stein’s loss.
“Our method” refers to the empirical Bayes estimation of the variance parameter in a hierarchical normal model (2) under Stein’s loss function, using a conjugate normal-inverse-gamma prior. Hyperparameters are estimated from the data via either the method of moments or MLE, with the latter generally preferred for its superior consistency and model fit.
Our method is favored for approximately normal data exhibiting moderate between-group variance heterogeneity. It performs well when sample sizes are sufficient for stable hyperparameter estimation via MLE, and is particularly suitable for hierarchical studies where the marginal distribution is adequately modeled by a non-standardized Student t-distribution.
Use our method when:
1.
Your primary goal is to estimate a variance (or scale) parameter within a hierarchical or multi-group model (e.g., Model (2)).
2.
Your data are approximately normally distributed at the group level, with moderate heterogeneity in variances across groups, leading to a marginal distribution well-approximated by a t-distribution.
3.
You have a sufficiently large sample size (e.g., n > 1000 ) for reliable hyperparameter estimation via MLE. However, this method should be used with caution when the sample size is relatively small, as our simulations show moment, and MLE estimators can then be unstable.
4.
You prefer a loss function that naturally penalizes relative (multiplicative) error and is more sensitive to overestimation than underestimation, which is often prudent for variance components.
Use alternatives when:
1.
Your primary interest is in estimating a mean (location) parameter—use squared error loss.
2.
You require a loss function that imposes a perfectly symmetric penalty for over- and underestimation on the ratio scale—consider the power-power loss function instead (see Section 2.3 and Section 3.8).
3.
Your data strongly violate the assumption of being marginally modeled by a t-distribution.
The computational requirements of our method necessitate numerical MLE optimization (e.g., Newton’s method) using moment estimates as initial values. It assumes ν 0 > 4 for moment existence and sufficient sample size for stable convergence. The hyperparameter κ 0 is fixed (recommended as 1) for identifiability.
In empirical Bayes approaches, hyperparameters are treated as unknown quantities, and their estimation relies on the marginal distribution derived from observed data. Two widely used techniques for this purpose are the method of moments and MLE. This study applies both methods to estimate the hyperparameters within a hierarchical N-NIG model (2).
Under our hierarchical N-NIG framework (Model (2)), the convergence of the empirical Bayes estimators for θ n + 1 is formally guaranteed. As established in Theorems 3–5, the consistency of the hyperparameter estimators (obtained via the method of moments or MLE) directly ensures the plug-in empirical Bayes estimators converge in probability to the oracle Bayes estimator. This result holds provided the model is correctly specified and key regularity conditions are met.
Our proposed empirical Bayes estimators converge in probability as n → ∞ , as established in Theorem 5. This convergence is guaranteed under the conditions specified in Theorems 3 and 4, including correct model specification (A1/B1), moment existence (A2), identifiability (B3), and unique solutions to estimating equations (B5). The consistency of hyperparameter estimators (Theorems 3 and 4) ensures the plug-in empirical Bayes estimators are valid, as they converge to the oracle Bayes estimator. Key assumptions are the hierarchical N-NIG model structure (2) and ν 0 > 4 for moment existence.
This work extends the empirical Bayes literature by rigorously establishing the consistency of both moment and MLE-based estimators within a hierarchical N-NIG framework (Model (2)). Model (2) is preferable when analyzing data from similar, independent units (e.g., cities, schools) to estimate unit-specific parameters, as it avoids the “double-use” of data and provides more reliable inference. Practitioners should implement it by means of the MLE method, where moment estimators are utilized as reliable starting points, with a fixed κ 0 = 1 , ensuring a sufficiently large sample size for accurate hyperparameter estimation.
Comparisons between Model (1) and Model (2):
1.
Beyond avoiding “double use of data” in Model (2), what statistical advantages does data separation achieve?
Model (2) separates data for hyperparameter estimation and inference, enhancing estimation reliability and robustness. It prevents overfitting, improves hyperparameter accuracy, and ensures valid uncertainty quantification, offering clearer statistical interpretation compared to Model (1).
2.
When is Model (2) structure feasible in practice?
Model (2) is feasible when analyzing data from similar but independent units, such as poverty rates across different cities, test scores from multiple schools, or patient outcomes from various hospitals. Each unit has its own parameters, but they share a common prior distribution estimated from the pooled data.
3.
What practical constraints might prevent using Model (2) in real applications?
Practical constraints for Model (2) include insufficient sample size for reliable hyperparameter estimation, and lack of sufficient similarity among units to justify a common prior. Additionally, ensuring all observations are independent from distinct, parallel sources can be challenging.
4.
When would Model (1) be preferable to Model (2)?
Model (1) is preferable when all observations truly share the same underlying mean and variance, such as repeated measurements from a single homogeneous group. It is simpler and more efficient when the goal is to estimate a single common parameter rather than unit-specific ones.
The simulation results presented in the preceding figures and tables demonstrate that MLEs outperform moment-based estimators in estimating the hyperparameters μ 0 , ν 0 , and u 0 , particularly with respect to consistency and model fit. Nevertheless, these advantages come at a cost. Unlike moment estimators, MLEs are prone to numerical instability and impose higher computational demands, necessitate the constraints ν 0 > 0 and u 0 > 0 throughout all iterations, and lack closed-form solutions. Importantly, the performance of MLEs is highly sensitive to the choice of initial values, and moment estimators have been empirically shown to serve as reliable starting points. Furthermore, in scenarios where MLEs fail to converge or do not exist, moment estimators provide a justifiable and robust alternative.
Both Stein’s loss function and power-power loss function (see [36]) penalize gross overestimation and gross underestimation equally. The choice between Stein’s and power-power loss depends on the symmetry of penalties required. Stein’s loss penalizes overestimation more severely, making it suitable when overestimation is particularly undesirable. In contrast, power-power loss provides balanced penalties for both over- and underestimation, making it preferable when both types of errors are equally critical. Practically, compared to Stein’s loss function, the power-power loss function yields a larger (or less conservative) estimate.
Finally, we outline potential directions for future research. One possible extension involves adapting the hierarchical N-NIG model (2) to accommodate various non-conjugate prior distributions for the parameters of the normal distribution (refer to [1,48,49] and related works). In these cases, closed-form solutions may not be feasible, necessitating the development of numerical methods to compute the corresponding estimators.

5.2. Conclusions

For the hierarchical N-NIG model (2), we begin by deriving the posterior distributions π μ n + 1 , θ n + 1 | x n + 1 , π θ n + 1 | x n + 1 , π μ n + 1 | x n + 1 , and π μ n + 1 | θ n + 1 , x n + 1 , along with the marginal distribution m x n + 1 | μ 0 , κ 0 , ν 0 , σ 0 2 , as presented in Theorem 1. Subsequently, we obtain the Bayes estimators δ s π , θ n + 1 x n + 1 and δ 2 π , θ n + 1 x n + 1 , as well as the corresponding PESLs, denoted by P E S L s π , θ n + 1 x n + 1 and P E S L 2 π , θ n + 1 x n + 1 . These quantities fulfill two key inequalities, given in (13) and (14), which are summarized in Theorem 2. Additionally, Theorem 3 provides the moment-based estimates for the model’s hyperparameters—specifically μ 01 n , ν 01 n , and u 01 n . Furthermore, the moment estimators serve as consistent estimators of the hyperparameters. In parallel, Theorem 4 summarizes the MLEs of the same hyperparameters, namely μ 02 n , ν 02 n , and u 02 n . Moreover, the MLEs are consistent estimators of the hyperparameters. Lastly, Theorem 5 show consistencies of the empirical Bayes estimators of θ n + 1 under Stein’s loss function by the moment and MLE methods.
In the simulation study, we conduct numerical experiments on the hierarchical N-NIG model (2) from eight perspectives: (1) model comparison and estimator performance; (2) the consistencies of moment estimators and MLEs; (3) the influence of κ 0 on quantities of interest as functions of x n + 1 ; (4) the validation of two inequalities related to Bayes estimators and PESLs; (5) the model’s goodness-of-fit to the generated data; (6) the examination of the model’s marginal densities; (7) comparison with standard MLE under PESL; and (8) comparison of loss functions, posterior risks, and corresponding Bayes estimators.
The real data example section applies the hierarchical N-NIG model (2) to poverty rate data from 80 Western U.S. cities. Using both moment and MLE methods, the model estimates a central poverty rate around 16.2 % with a heavy-tailed distribution (estimated ν 0 ≈ 12.3 ), indicating generally low but unequal poverty levels and outperforming a simple normal fit. This provides a robust empirical illustration of the method.

Funding

This study was funded by the National Natural Science Foundation of China (Grant No. 12461051).

Data Availability Statement

The data that support the findings of this study are described in the article.

Conflicts of Interest

The author declares no conflict of interest.

Appendix A. Proofs of Theorems

In the Appendix A, we will provide the proofs of the theorems.

Appendix A.1. The Proof of Theorem 1

The Proof of Theorem 1.
Let η 0 = μ 0 , κ 0 , ν 0 , σ 0 2 ′ be the hyperparameters. The marginal distribution of x n + 1 in Model (2) is
m x n + 1 | η 0 = f x n + 1 | μ n + 1 , θ n + 1 π μ n + 1 , θ n + 1 | η 0 π μ n + 1 , θ n + 1 | x n + 1 , η 0 .
To lighten notations, the η 0 will be dropped in the densities. Some of the following derivations are quoted from Example 1.5.1 (p. 20) of [19,25].
For the random variables, parameters, and hyperparameters, their domains are respectively given by
− ∞ < x n + 1 , μ n + 1 , μ 0 < ∞
and
θ n + 1 , κ 0 , ν 0 , σ 0 2 > 0 .
By the Bayes Theorem, the joint posterior distribution of μ n + 1 and θ n + 1 is
π μ n + 1 , θ n + 1 | x n + 1 ∝ f x n + 1 | μ n + 1 , θ n + 1 π μ n + 1 , θ n + 1 .
The joint conjugate prior distribution of μ n + 1 and θ n + 1 is decomposed as
π μ n + 1 , θ n + 1 = π μ n + 1 | θ n + 1 π θ n + 1 ,
which is a normal-inverse-gamma distribution. Hence,
π μ n + 1 , θ n + 1 | x n + 1 ∝ f x n + 1 | μ n + 1 , θ n + 1 π μ n + 1 | θ n + 1 π θ n + 1 .
It is easy to see that
f x n + 1 | μ n + 1 , θ n + 1 = 1 2 π θ n + 1 exp − 1 2 θ n + 1 x n + 1 − μ n + 1 2 ∝ θ n + 1 − 1 2 exp − 1 2 θ n + 1 x n + 1 − μ n + 1 2 ,
π μ n + 1 | θ n + 1 = 1 2 π θ n + 1 / κ 0 exp − κ 0 2 θ n + 1 μ n + 1 − μ 0 2 ∝ θ n + 1 − 1 2 exp − κ 0 2 θ n + 1 μ n + 1 − μ 0 2 ,
and
π θ n + 1 = ν 0 σ 0 2 2 ν 0 2 Γ ν 0 2 1 θ n + 1 ν 0 2 + 1 exp − ν 0 σ 0 2 2 1 θ n + 1 ∝ 1 θ n + 1 ν 0 2 + 1 exp − ν 0 σ 0 2 2 1 θ n + 1 .
Therefore,
π μ n + 1 , θ n + 1 | x n + 1 ∝ θ n + 1 − 1 2 exp − 1 2 θ n + 1 x n + 1 − μ n + 1 2 θ n + 1 − 1 2 exp − κ 0 2 θ n + 1 μ n + 1 − μ 0 2 × θ n + 1 − ν 0 2 + 1 exp − ν 0 σ 0 2 2 θ n + 1 = θ n + 1 − 1 2 θ n + 1 − ν 0 + 1 2 + 1 exp − 1 2 θ n + 1 x n + 1 − μ n + 1 2 + κ 0 μ n + 1 − μ 0 2 + ν 0 σ 0 2
The expression in the square brackets of (A1) changes to
x n + 1 − μ n + 1 2 + κ 0 μ n + 1 − μ 0 2 + ν 0 σ 0 2 = μ n + 1 2 − 2 x n + 1 μ n + 1 + x n + 1 2 + κ 0 μ n + 1 2 − 2 κ 0 μ 0 μ n + 1 + κ 0 μ 0 2 + ν 0 σ 0 2 = κ 0 + 1 μ n + 1 2 − 2 x n + 1 + κ 0 μ 0 μ n + 1 + x n + 1 2 + κ 0 μ 0 2 + ν 0 σ 0 2 = κ 0 + 1 μ n + 1 2 − 2 x n + 1 + κ 0 μ 0 κ 0 + 1 μ n + 1 + x n + 1 2 + κ 0 μ 0 2 + ν 0 σ 0 2 = κ 0 + 1 μ n + 1 − x n + 1 + κ 0 μ 0 κ 0 + 1 2 − x n + 1 + κ 0 μ 0 2 κ 0 + 1 + x n + 1 2 + κ 0 μ 0 2 + ν 0 σ 0 2 = κ 0 + 1 μ n + 1 − x n + 1 + κ 0 μ 0 κ 0 + 1 2 + κ 0 x n + 1 − μ 0 2 κ 0 + 1 + ν 0 σ 0 2 ,
where
− x n + 1 + κ 0 μ 0 2 κ 0 + 1 + x n + 1 2 + κ 0 μ 0 2 = κ 0 + 1 x n + 1 2 + κ 0 + 1 κ 0 μ 0 2 − x n + 1 + κ 0 μ 0 2 κ 0 + 1 = κ 0 + 1 x n + 1 2 + κ 0 + 1 κ 0 μ 0 2 − x n + 1 2 − κ 0 2 μ 0 2 − 2 κ 0 μ 0 x n + 1 κ 0 + 1 = κ 0 x n + 1 2 + κ 0 μ 0 2 − 2 κ 0 μ 0 x n + 1 κ 0 + 1 = κ 0 x n + 1 2 + μ 0 2 − 2 x n + 1 μ 0 κ 0 + 1 = κ 0 x n + 1 − μ 0 2 κ 0 + 1 .
Let
μ 1 = x n + 1 + κ 0 μ 0 / κ 0 + 1 , κ 1 = κ 0 + 1 , ν 1 = ν 0 + 1 , ν 1 σ 1 2 = ν 0 σ 0 2 + κ 0 κ 0 + 1 x n + 1 − μ 0 2 .
Then (A1) reduces to
π μ n + 1 , θ n + 1 | x n + 1 ∝ θ n + 1 − 1 2 θ n + 1 − ν 1 2 + 1 exp − 1 2 θ n + 1 κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 .
It is shown that π μ n + 1 , θ n + 1 | x n + 1 is a normal-inverse-gamma distribution as follows. The joint posterior distribution π μ n + 1 , θ n + 1 | x n + 1 can be written as π μ n + 1 | θ n + 1 , x n + 1 π θ n + 1 | x n + 1 , where
π μ n + 1 | θ n + 1 , x n + 1 θ n + 1 κ 1 − 1 / 2 exp − κ 1 2 θ n + 1 μ n + 1 − μ 1 2 , π θ n + 1 | x n + 1 θ n + 1 − ν 1 2 + 1 exp − 1 θ n + 1 ν 1 σ 1 2 2 .
That is,
μ n + 1 | θ n + 1 , x n + 1 ∼ N μ 1 , θ n + 1 / κ 1 , θ n + 1 | x n + 1 ∼ I G α * = ν 1 / 2 , β * = ν 1 σ 1 2 / 2 .
Therefore, the joint posterior distribution π μ n + 1 , θ n + 1 | x n + 1 is
π μ n + 1 , θ n + 1 | x n + 1 = π μ n + 1 | θ n + 1 , x n + 1 π θ n + 1 | x n + 1 = 1 2 π θ n + 1 / κ 1 exp − κ 1 2 θ n + 1 μ n + 1 − μ 1 2 × ν 1 σ 1 2 2 ν 1 2 Γ ν 1 2 θ n + 1 − ν 1 2 + 1 exp − ν 1 σ 1 2 2 1 θ n + 1 = κ 1 2 π ν 1 σ 1 2 2 ν 1 2 Γ ν 1 2 θ n + 1 − 1 2 θ n + 1 − ν 1 2 + 1 exp − 1 2 θ n + 1 κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 ∼ N − I G ˜ ( μ 1 , κ 1 , ν 1 , σ 1 2 ) .
The joint prior distribution π μ n + 1 , θ n + 1 is
π μ n + 1 , θ n + 1 = π μ n + 1 | θ n + 1 π θ n + 1 = 1 2 π θ n + 1 / κ 0 exp − κ 0 2 θ n + 1 μ n + 1 − μ 0 2 × ν 0 σ 0 2 2 ν 0 2 Γ ν 0 2 1 θ n + 1 ν 0 2 + 1 exp − ν 0 σ 0 2 2 1 θ n + 1 = κ 0 2 π ν 0 σ 0 2 2 ν 0 2 Γ ν 0 2 θ n + 1 − 1 2 θ n + 1 − ν 0 2 + 1 exp − 1 2 θ n + 1 κ 0 μ n + 1 − μ 0 2 + ν 0 σ 0 2 ∼ N − I G ˜ ( μ 0 , κ 0 , ν 0 , σ 0 2 ) .
Comparing (A4) and (A3), we find that the normal-inverse-gamma distribution is a conjugate prior for μ n + 1 , θ n + 1 of N μ n + 1 , θ n + 1 .
Now let us derive the marginal posterior density of μ n + 1 . We have
π μ n + 1 | x n + 1 = ∫ 0 ∞ π μ n + 1 , θ n + 1 | x n + 1 d θ n + 1 = ∫ 0 ∞ κ 1 2 π ν 1 σ 1 2 2 ν 1 2 Γ ν 1 2 θ n + 1 − ν 1 + 1 2 + 1 exp − 1 2 θ n + 1 κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 d θ n + 1 = κ 1 2 π ν 1 σ 1 2 2 ν 1 2 Γ ν 1 2 ∫ 0 ∞ θ n + 1 − ν 1 + 1 2 + 1 exp − 1 2 θ n + 1 κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 d θ n + 1 = κ 1 2 π ν 1 σ 1 2 2 ν 1 2 Γ ν 1 2 Γ ν 1 + 1 2 κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 2 ν 1 + 1 2 ,
by noting that the integrand of the above integral is the kernel of an inverse gamma distribution I G ˜ α 1 , β 1 with
α 1 = ν 1 + 1 2 , β 1 = κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 2 .
Therefore,
π μ n + 1 | x n + 1 = Γ ν 1 + 1 2 Γ ν 1 2 κ 1 2 π ν 1 σ 1 2 2 ν 1 2 1 ν 1 σ 1 2 2 ν 1 + 1 2 1 + 1 ν 1 μ n + 1 − μ 1 2 σ 1 2 / κ 1 ν 1 + 1 2 = Γ ν 1 + 1 2 Γ ν 1 2 π ν 1 σ 1 2 / κ 1 1 + 1 ν 1 μ n + 1 − μ 1 2 σ 1 2 / κ 1 − ν 1 + 1 2 ∼ t ν 1 μ 1 , σ 1 2 κ 1 .
Now let us calculate
f x n + 1 | μ n + 1 , θ n + 1 π μ n + 1 , θ n + 1 = 1 2 π θ n + 1 exp − 1 2 θ n + 1 x n + 1 − μ n + 1 2 × κ 0 2 π ν 0 σ 0 2 2 ν 0 2 Γ ν 0 2 θ n + 1 − ν 0 + 1 2 + 1 exp − 1 2 θ n + 1 κ 0 μ n + 1 − μ 0 2 + ν 0 σ 0 2 = 2 π − 1 κ 0 ν 0 σ 0 2 2 ν 0 2 Γ ν 0 2 θ n + 1 − 1 2 θ n + 1 − ν 0 + 1 2 + 1 × exp − 1 2 θ n + 1 x n + 1 − μ n + 1 2 + κ 0 μ n + 1 − μ 0 2 + ν 0 σ 0 2 = 2 π − 1 κ 0 ν 0 σ 0 2 2 ν 0 2 Γ ν 0 2 θ n + 1 − ν 1 + 1 2 + 1 exp − 1 2 θ n + 1 κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 .
Finally, let us derive the marginal density of x n + 1 . Combining (A5) and (A3), we have
m x n + 1 | μ 0 , κ 0 , ν 0 , σ 0 2 = f x n + 1 | μ n + 1 , θ n + 1 π μ n + 1 , θ n + 1 π μ n + 1 , θ n + 1 | x n + 1 = 2 π − 1 κ 0 ν 0 σ 0 2 2 ν 0 2 Γ ν 0 2 θ n + 1 − ν 1 + 1 2 + 1 exp − 1 2 θ n + 1 κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 2 π − 1 2 κ 1 ν 1 σ 1 2 2 ν 1 2 Γ ν 1 2 θ n + 1 − ν 1 + 1 2 + 1 exp − 1 2 θ n + 1 κ 1 μ n + 1 − μ 1 2 + ν 1 σ 1 2 = 2 π − 1 2 κ 0 ν 0 σ 0 2 2 ν 0 2 Γ ν 1 2 κ 1 ν 1 σ 1 2 2 ν 1 2 Γ ν 0 2 = 1 2 π κ 0 κ 0 + 1 ν 0 σ 0 2 2 ν 0 2 Γ ν 0 + 1 2 Γ ν 0 2 ν 0 σ 0 2 + κ 0 κ 0 + 1 x n + 1 − μ 0 2 2 ν 0 + 1 2 = Γ ν 0 + 1 2 Γ ν 0 2 2 π κ 0 + 1 / κ 0 ν 0 σ 0 2 2 ν 0 2 ν 0 σ 0 2 2 ν 0 + 1 2 1 + 1 ν 0 x n + 1 − μ 0 2 σ 0 2 κ 0 + 1 / κ 0 − ν 0 + 1 2 = Γ ν 0 + 1 2 Γ ν 0 2 π ν 0 σ 0 2 κ 0 + 1 / κ 0 1 + 1 ν 0 x n + 1 − μ 0 2 σ 0 2 κ 0 + 1 / κ 0 − ν 0 + 1 2 ∼ t ν 0 μ 0 , σ 0 2 κ 0 + 1 κ 0 .
The proof of the theorem is complete. □

Appendix A.2. The Proof of Theorem 2

The Proof of Theorem 2.
First, let us prove the inequality of the two Bayes estimators. Let g x = 1 / x . Since g x is a convex function, by Jensen’s inequality, we obtain
g E X ≤ E g X .
That is,
1 E X ≤ E 1 X .
Now take X = θ n + 1 | x n + 1 > 0 , we have E θ n + 1 | x n + 1 > 0 and E 1 θ n + 1 | x n + 1 > 0 . Therefore,
1 E θ n + 1 | x n + 1 ≤ E 1 θ n + 1 | x n + 1 ,
or
δ s π , θ n + 1 x n + 1 = 1 E 1 θ n + 1 | x n + 1 ≤ E θ n + 1 | x n + 1 = δ 2 π , θ n + 1 x n + 1 .
Second, let us prove the inequality of the two PESLs. We know from [50,51] that the estimator δ s π , θ n + 1 x n + 1 minimizes the PESL, P E S L a | x n + 1 = E L s θ n + 1 , a | x n + 1 , that is,
δ s π , θ n + 1 x n + 1 = arg min a ∈ A P E S L a | x n + 1 ,
where A = a x n + 1 : a x n + 1 > 0 is the action space, a = a x n + 1 > 0 is an action (estimator),
L s θ n + 1 , a = a θ n + 1 − 1 − log a θ n + 1
is Stein’s loss function, and θ n + 1 > 0 is the parameter of interest. The PESL evaluated at the two Bayes estimators are denoted as
P E S L s π , θ n + 1 x n + 1 = P E S L a | x n + 1 a = δ s π , θ n + 1 x n + 1
and
P E S L 2 π , θ n + 1 x n + 1 = P E S L a | x n + 1 a = δ 2 π , θ n + 1 x n + 1 .
The schematic plot of the PESL function P E S L a | x n + 1 , and the two Bayes estimators and the two PESLs
δ s π , θ n + 1 x n + 1 , δ 2 π , θ n + 1 x n + 1 , P E S L s π , θ n + 1 x n + 1 , P E S L 2 π , θ n + 1 x n + 1
is given in Figure A1. From this figure, we see that
P E S L s π , θ n + 1 x n + 1 ≤ P E S L 2 π , θ n + 1 x n + 1 ,
which is a direct consequence of the general methodology for finding a Bayes estimator. As by construction (A6), δ s π , θ n + 1 x n + 1 minimizes the PESL.
The proof of the theorem is complete. □
Figure A1. The schematic plot of the PESL function, the two Bayes estimators, and the two PESLs.

Appendix A.3. The Proof of Theorem 3

The Proof of Theorem 3.
The hyperparameters of Model (2) are − ∞ < μ 0 < ∞ , κ 0 > 0 , ν 0 > 0 , and σ 0 > 0 . By Theorem 1, we know that the marginal distribution of X in Model (2) is a non-standardized student-t distribution, that is,
X ∼ t ν 0 μ 0 , σ 0 2 κ 0 + 1 κ 0 .
Since there are four hyperparameters, if we want to obtain the estimators of the hyperparameters of Model (2) by the moment method, we need to calculate the first four moments of X at least. By Lemma 4 in [19], we obtain the first six population moments of X as follows. Furthermore, letting the population moments be equal to the sample moments, we obtain
E X = μ 0 = A 1 , E X 2 = μ 0 2 + ν 0 ν 0 − 2 σ 0 2 κ 0 + 1 κ 0 = A 2 , if ν 0 > 2 , E X 3 = μ 0 3 + 3 μ 0 ν 0 ν 0 − 2 σ 0 2 κ 0 + 1 κ 0 = A 3 , if ν 0 > 2 , E X 4 = μ 0 4 + 6 μ 0 2 ν 0 ν 0 − 2 σ 0 2 κ 0 + 1 κ 0 + 3 ν 0 2 ν 0 − 2 ν 0 − 4 σ 0 2 κ 0 + 1 κ 0 2 = A 4 , if ν 0 > 4 , E X 5 = μ 0 5 + 10 μ 0 3 ν 0 ν 0 − 2 σ 0 2 κ 0 + 1 κ 0 + 15 μ 0 ν 0 2 ν 0 − 2 ν 0 − 4 σ 0 2 κ 0 + 1 κ 0 2 = A 5 , if ν 0 > 4 , E X 6 = μ 0 6 + 15 μ 0 4 ν 0 ν 0 − 2 σ 0 2 κ 0 + 1 κ 0 + 45 μ 0 2 ν 0 2 ν 0 − 2 ν 0 − 4 σ 0 2 κ 0 + 1 κ 0 2 + 15 ν 0 3 ν 0 − 2 ν 0 − 4 ν 0 − 6 σ 0 2 κ 0 + 1 κ 0 3 = A 6 , if ν 0 > 6 .
From the first moment of X, we obtain the moment estimator of μ 0 as
μ 01 n = A 1 .
Let
w 1 = ν 0 ν 0 − 2 σ 0 2 κ 0 + 1 κ 0 , w 2 = ν 0 2 ν 0 − 2 ν 0 − 4 σ 0 2 κ 0 + 1 κ 0 2 , w 3 = ν 0 3 ν 0 − 2 ν 0 − 4 ν 0 − 6 σ 0 2 κ 0 + 1 κ 0 3 .
From the second moment of X, we obtain the moment estimator of w 1 as
w 1 n = A 2 − A 1 2 .
From the third moment of X, we obtain the moment estimator of w 1 as
w 1 n = A 3 − A 1 3 3 A 1 .
Obviously, the two moment estimators of w 1 are not equal. Therefore, we choose one of them as the moment estimator of w 1 . For simplicity, we use the moment estimator of w 1 calculated from E X 2 , and ignore the third equation involving E X 3 . Similarly, the equations involving E X 4 and E X 5 both have w 1 and w 2 . For simplicity, we use the equation involving E X 4 , and ignore the equation involving E X 5 . To have four equations, we will use the equation involving E X 6 . Therefore, the moment equations become
E X = μ 0 = A 1 , E X 2 = μ 0 2 + w 1 = A 2 , E X 4 = μ 0 4 + 6 μ 0 2 w 1 + 3 w 2 = A 4 , E X 6 = μ 0 6 + 15 μ 0 4 w 1 + 45 μ 0 2 w 2 + 15 w 3 = A 6 .
Solving the above moment equations, we obtain
μ 01 n = A 1 , w 1 n = ν 0 ν 0 − 2 σ 0 2 κ 0 + 1 κ 0 = A 2 − A 1 2 ≜ B 1 , w 2 n = ν 0 2 ν 0 − 2 ν 0 − 4 σ 0 2 κ 0 + 1 κ 0 2 = 1 3 A 4 − 6 A 1 2 A 2 + 5 A 1 4 ≜ B 2 , w 3 n = ν 0 3 ν 0 − 2 ν 0 − 4 ν 0 − 6 σ 0 2 κ 0 + 1 κ 0 3 = 1 15 − 61 A 1 6 + 75 A 2 A 1 4 − 15 A 4 A 1 2 + A 6 ≜ B 3 .
Let
u 0 = σ 0 2 κ 0 + 1 κ 0 .
Since κ 0 and σ 0 appear together in u 0 , we can not directly obtain the estimators of κ 0 and σ 0 by the moment method. But we can obtain the estimator of u 0 by the moment method. In the following, we are interested in obtaining the moment estimators of − ∞ < μ 0 < ∞ , ν 0 > 0 , and u 0 > 0 . The moment equations involving w 1 n , w 2 n , and w 3 n become
ν 0 ν 0 − 2 u 0 = B 1 , ν 0 2 ν 0 − 2 ν 0 − 4 u 0 2 = B 2 , ν 0 3 ν 0 − 2 ν 0 − 4 ν 0 − 6 u 0 3 = B 3 .
Since there are three equations and only two parameters ν 0 and u 0 , for simplicity, we will only use the first two equations, and ignore the third equation. Solving the above first two equations for ν 0 and u 0 , we obtain the moment estimators of ν 0 and u 0 as
ν 01 n = 2 B 1 2 − 4 B 2 B 1 2 − B 2 , u 01 n = − B 1 B 2 B 1 2 − 2 B 2 .
Substituting the expressions of B 1 and B 2 , and after some algebra, we obtain the expressions of ν 01 n and u 01 n in terms of A i i = 1 , 2 , 4 as
ν 01 n = − 14 3 A 1 4 + 4 A 1 2 A 2 + 2 A 2 2 − 4 3 A 4 − 2 3 A 1 4 + A 2 2 − 1 3 A 4 ,
u 01 n = − 1 3 A 2 − A 1 2 5 A 1 4 − 6 A 1 2 A 2 + A 4 − 7 3 A 1 4 + 2 A 1 2 A 2 + A 2 2 − 2 3 A 4 .
Therefore, the moment estimators of μ 0 , ν 0 , and u 0 are given by (A7)–(A9).
Now let us show that the moment estimators are consistent estimators of the hyperparameters. It is easy to show that
A k = 1 n ∑ i = 1 n X i k → p E X k
for k = 1 , 2 , 4 , where → p means convergence in probability. Hence,
A 1 → p E X = μ 0 , A 2 → p E X 2 = μ 0 2 + ν 0 ν 0 − 2 u 0 , A 4 → p E X 4 = μ 0 4 + 6 μ 0 2 ν 0 ν 0 − 2 u 0 + 3 ν 0 2 ν 0 − 2 ν 0 − 4 u 0 2 .
Therefore,
μ 01 n = A 1 ≜ f A 1 → p f E X = μ 0 ,
ν 01 n = − 14 3 A 1 4 + 4 A 1 2 A 2 + 2 A 2 2 − 4 3 A 4 − 2 3 A 1 4 + A 2 2 − 1 3 A 4 ≜ g A 1 , A 2 , A 4 → p g E X , E X 2 , E X 4 = − 14 3 μ 0 4 + 4 μ 0 2 μ 0 2 + ν 0 ν 0 − 2 u 0 + 2 μ 0 2 + ν 0 ν 0 − 2 u 0 2 − 4 3 μ 0 4 + 6 μ 0 2 ν 0 ν 0 − 2 u 0 + 3 ν 0 2 ν 0 − 2 ν 0 − 4 u 0 2 − 2 3 μ 0 4 + μ 0 2 + ν 0 ν 0 − 2 u 0 2 − 1 3 μ 0 4 + 6 μ 0 2 ν 0 ν 0 − 2 u 0 + 3 ν 0 2 ν 0 − 2 ν 0 − 4 u 0 2 = ν 0 ,
and
u 01 n = − 1 3 A 2 − A 1 2 5 A 1 4 − 6 A 1 2 A 2 + A 4 − 7 3 A 1 4 + 2 A 1 2 A 2 + A 2 2 − 2 3 A 4 ≜ h A 1 , A 2 , A 4 → p h E X , E X 2 , E X 4 = − 1 3 μ 0 2 + ν 0 ν 0 − 2 u 0 − μ 0 2 5 μ 0 4 − 6 μ 0 2 μ 0 2 + ν 0 ν 0 − 2 u 0 + μ 0 4 + 6 μ 0 2 ν 0 ν 0 − 2 u 0 + 3 ν 0 2 ν 0 − 2 ν 0 − 4 u 0 2 − 7 3 μ 0 4 + 2 μ 0 2 μ 0 2 + ν 0 ν 0 − 2 u 0 + μ 0 2 + ν 0 ν 0 − 2 u 0 2 − 2 3 μ 0 4 + 6 μ 0 2 ν 0 ν 0 − 2 u 0 + 3 ν 0 2 ν 0 − 2 ν 0 − 4 u 0 2 = u 0 .
The proof of the theorem is complete. □

Appendix A.4. The Proof of Theorem 4

The Proof of Theorem 4.
Now we derive the Maximum Likelihood Estimators (MLEs) of μ 0 , ν 0 , and u 0 . By Theorem 1, we know that the marginal distribution of X of Model (2) is
m x | μ 0 , ν 0 , u 0 = Γ ν 0 + 1 2 Γ ν 0 2 π ν 0 u 0 1 + 1 ν 0 x − μ 0 2 u 0 − ν 0 + 1 2 ,
for − ∞ < x < ∞ , − ∞ < μ 0 < ∞ , ν 0 > 0 , and u 0 > 0 . Then the likelihood function of μ 0 , ν 0 , and u 0 is
L μ 0 , ν 0 , u 0 | x = m x | μ 0 , ν 0 , u 0 = ∏ i = 1 n m x i | μ 0 , ν 0 , u 0 = ∏ i = 1 n Γ ν 0 + 1 2 Γ ν 0 2 π ν 0 u 0 1 + 1 ν 0 x i − μ 0 2 u 0 − ν 0 + 1 2 = Γ n ν 0 + 1 2 Γ n ν 0 2 π ν 0 u 0 − n 2 ∏ i = 1 n 1 + x i − μ 0 2 ν 0 u 0 − ν 0 + 1 2 .
Consequently, the log-likelihood function of μ 0 , ν 0 , and u 0 is
log L μ 0 , ν 0 , u 0 | x = n log Γ ν 0 + 1 2 − n log Γ ν 0 2 − n 2 log π ν 0 u 0 + ∑ i = 1 n − ν 0 + 1 2 log 1 + x i − μ 0 2 ν 0 u 0 = n log Γ ν 0 + 1 2 − n log Γ ν 0 2 − n 2 log π + log ν 0 + log u 0 − ∑ i = 1 n ν 0 + 1 2 log 1 + x i − μ 0 2 ν 0 u 0 .
Taking partial derivatives with respect to μ 0 , ν 0 , and u 0 and setting them to zeros, we obtain
∂ ∂ μ 0 log L = − ∑ i = 1 n ν 0 + 1 2 1 1 + x i − μ 0 2 ν 0 u 0 1 ν 0 u 0 2 x i − μ 0 − 1 = ∑ i = 1 n ν 0 + 1 x i − μ 0 ν 0 u 0 + x i − μ 0 2 = 0 ,
∂ ∂ ν 0 log L = n ψ ν 0 + 1 2 1 2 − n ψ ν 0 2 1 2 − n 2 1 ν 0 − 1 2 ∑ i = 1 n 1 · log 1 + x i − μ 0 2 ν 0 u 0 + ν 0 + 1 1 1 + x i − μ 0 2 ν 0 u 0 x i − μ 0 2 u 0 − 1 ν 0 2 = n 2 ψ ν 0 + 1 2 − n 2 ψ ν 0 2 − n 2 1 ν 0 − 1 2 ∑ i = 1 n log 1 + x i − μ 0 2 ν 0 u 0 − ν 0 + 1 x i − μ 0 2 ν 0 u 0 + x i − μ 0 2 ν 0 = 0 ,
and
∂ ∂ u 0 log L = − n 2 1 u 0 − ∑ i = 1 n ν 0 + 1 2 1 1 + x i − μ 0 2 ν 0 u 0 x i − μ 0 2 ν 0 − 1 u 0 2 = − n 2 1 u 0 + 1 2 ∑ i = 1 n ν 0 + 1 x i − μ 0 2 ν 0 u 0 + x i − μ 0 2 u 0 = 0 ,
where
ψ x = Γ ′ x Γ x = d d x log Γ x = digamma x
which can be directly calculated in R software (R x64 4.1.1 and later versions) by digamma(x) [52]. Let
g i = ν 0 u 0 + x i − μ 0 2 .
Thus,
x i − μ 0 2 = g i − ν 0 u 0 .
After some algebra, the above equations reduce to
f 1 μ 0 , ν 0 , u 0 = 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 ν 0 u 0 + x i − μ 0 2 = 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 g i = 0 ,
f 2 μ 0 , ν 0 , u 0 = 1 2 ψ ν 0 + 1 2 − 1 2 ψ ν 0 2 − 1 2 ν 0 − 1 2 1 n ∑ i = 1 n log 1 + x i − μ 0 2 ν 0 u 0 − ν 0 + 1 x i − μ 0 2 ν 0 u 0 + x i − μ 0 2 ν 0 = 1 2 ψ ν 0 + 1 2 − 1 2 ψ ν 0 2 − 1 2 ν 0 − 1 2 1 n ∑ i = 1 n log g i − log ν 0 u 0 − ν 0 + 1 g i − ν 0 u 0 g i ν 0 = 0 ,
f 3 μ 0 , ν 0 , u 0 = − 1 2 u 0 + 1 2 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 2 ν 0 u 0 + x i − μ 0 2 u 0 = − 1 2 u 0 + 1 2 1 n ∑ i = 1 n ν 0 + 1 g i − ν 0 u 0 g i u 0 = 0 .
In (A10)–(A12), the expressions involving g i are used for simplifying the R coding.
The MLEs of the hyperparameters μ 0 , ν 0 , and u 0 are the solutions to the Equations (A10)–(A12). The analytical calculations of the MLEs of μ 0 , ν 0 , and u 0 by solving the above equations are impossible, and thus we have to resort to numerical solutions. We can exploit Newton’s method to solve the above equations and to obtain the MLEs of μ 0 , ν 0 , and u 0 . The iterative scheme of Newton’s method is
p k + 1 = p k − J p k − 1 f p k , k = 0 , 1 , … ,
where J p is the Jacobian matrix of f p = f 1 p , f 2 p , f 3 p ⊤ and p = μ 0 , ν 0 , u 0 ⊤ . Note that the MLEs of μ 0 , ν 0 , and u 0 are very sensitive to the initial estimators, and the moment estimators are usually proved to be good initial estimators. The Jacobian matrix of μ 0 , ν 0 , and u 0 is given by
J = J 11 J 12 J 13 J 21 J 22 J 23 J 31 J 32 J 33 = ∂ f 1 ∂ μ 0 ∂ f 1 ∂ ν 0 ∂ f 1 ∂ u 0 ∂ f 2 ∂ μ 0 ∂ f 2 ∂ ν 0 ∂ f 2 ∂ u 0 ∂ f 3 ∂ μ 0 ∂ f 3 ∂ ν 0 ∂ f 3 ∂ u 0 ,
where
J 11 = ∂ f 1 ∂ μ 0 = 1 n ∑ i = 1 n ν 0 + 1 − 1 ν 0 u 0 + x i − μ 0 2 − x i − μ 0 2 x i − μ 0 − 1 ν 0 u 0 + x i − μ 0 2 2 = 1 n ∑ i = 1 n ν 0 + 1 2 x i − μ 0 2 − ν 0 u 0 − x i − μ 0 2 ν 0 u 0 + x i − μ 0 2 2 = 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 2 − ν 0 u 0 ν 0 u 0 + x i − μ 0 2 2 = 1 n ∑ i = 1 n ν 0 + 1 g i − 2 ν 0 u 0 g i 2 ,
J 12 = ∂ f 1 ∂ ν 0 = 1 n ∑ i = 1 n x i − μ 0 1 · ν 0 u 0 + x i − μ 0 2 − ν 0 + 1 u 0 ν 0 u 0 + x i − μ 0 2 2 = 1 n ∑ i = 1 n x i − μ 0 x i − μ 0 2 − u 0 ν 0 u 0 + x i − μ 0 2 2 = 1 n ∑ i = 1 n x i − μ 0 g i − ν 0 u 0 − u 0 g i 2 ,
J 13 = ∂ f 1 ∂ u 0 = 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 − 1 1 ν 0 u 0 + x i − μ 0 2 2 ν 0 = − 1 n ∑ i = 1 n ν 0 ν 0 + 1 x i − μ 0 ν 0 u 0 + x i − μ 0 2 2 = − 1 n ∑ i = 1 n ν 0 ν 0 + 1 x i − μ 0 g i 2 ,
J 21 = ∂ f 2 ∂ μ 0 = − 1 2 1 n ∑ i = 1 n 1 1 + x i − μ 0 2 ν 0 u 0 1 ν 0 u 0 2 x i − μ 0 − 1 − ν 0 + 1 ν 0 2 x i − μ 0 − 1 g i − x i − μ 0 2 2 x i − μ 0 − 1 g i 2 = − 1 2 1 n ∑ i = 1 n − 2 x i − μ 0 g i + ν 0 + 1 ν 0 2 x i − μ 0 g i − 2 x i − μ 0 3 g i 2 = − 1 2 1 n ∑ i = 1 n − 2 x i − μ 0 g i + ν 0 + 1 ν 0 2 x i − μ 0 ν 0 u 0 g i 2
= 1 2 1 n ∑ i = 1 n 2 x i − μ 0 g i − 2 ν 0 + 1 u 0 x i − μ 0 g i 2 = 1 2 1 n ∑ i = 1 n 2 x i − μ 0 g i − 2 x i − μ 0 ν 0 u 0 + u 0 g i 2 = 1 2 1 n ∑ i = 1 n 2 x i − μ 0 g i − ν 0 u 0 − u 0 g i 2 = 1 n ∑ i = 1 n x i − μ 0 g i − ν 0 u 0 − u 0 g i 2 = J 12 ,
J 22 = ∂ f 2 ∂ ν 0 = 1 2 ψ ′ ν 0 + 1 2 1 2 − 1 2 ψ ′ ν 0 2 1 2 − 1 2 − 1 ν 0 2 − 1 2 1 n ∑ i = 1 n 1 1 + x i − μ 0 2 ν 0 u 0 x i − μ 0 2 u 0 − 1 ν 0 2 − x i − μ 0 2 − 1 ν 0 2 g i − 1 + 1 ν 0 u 0 g i 2 = 1 4 ψ ′ ν 0 + 1 2 − 1 4 ψ ′ ν 0 2 + 1 2 ν 0 2 + 1 2 1 n ∑ i = 1 n x i − μ 0 2 g i ν 0 − x i − μ 0 2 1 ν 0 2 g i + 1 + 1 ν 0 u 0 g i 2 = 1 4 ψ ′ ν 0 + 1 2 − 1 4 ψ ′ ν 0 2 + 1 2 ν 0 2 + 1 2 1 n ∑ i = 1 n g i − ν 0 u 0 g i ν 0 − 1 − u 0 ν 0 ν 0 + 1 g i 2 ν 0 2 ,
where
x i − μ 0 2 g i ν 0 − x i − μ 0 2 1 ν 0 2 g i + 1 + 1 ν 0 u 0 g i 2 = g i − ν 0 u 0 g i ν 0 − g i − ν 0 u 0 1 ν 0 2 g i + 1 + 1 ν 0 u 0 g i 2 = g i − ν 0 u 0 g i ν 0 − g i − ν 0 u 0 g i + u 0 ν 0 ν 0 + 1 g i 2 ν 0 2 = g i − ν 0 u 0 g i ν 0 − g i − ν 0 u 0 g i + u 0 ν 0 ν 0 + 1 g i 2 ν 0 2 = g i − ν 0 u 0 g i ν 0 − g i − u 0 ν 0 ν 0 + 1 g i 2 ν 0 2 = g i − ν 0 u 0 g i ν 0 − 1 − u 0 ν 0 ν 0 + 1 g i 2 ν 0 2 ,
J 23 = ∂ f 2 ∂ u 0 = − 1 2 1 n ∑ i = 1 n 1 1 + x i − μ 0 2 ν 0 u 0 x i − μ 0 2 ν 0 − 1 u 0 2 − ν 0 + 1 x i − μ 0 2 ν 0 − 1 g i 2 ν 0 = 1 2 1 n ∑ i = 1 n x i − μ 0 2 g i u 0 − ν 0 + 1 x i − μ 0 2 g i 2 = 1 2 1 n ∑ i = 1 n x i − μ 0 2 ν 0 u 0 + x i − μ 0 2 − u 0 ν 0 + 1 x i − μ 0 2 g i 2 u 0
= 1 2 1 n ∑ i = 1 n ν 0 u 0 x i − μ 0 2 + x i − μ 0 4 − ν 0 u 0 x i − μ 0 2 − u 0 x i − μ 0 2 g i 2 u 0 = 1 2 1 n ∑ i = 1 n x i − μ 0 4 − u 0 x i − μ 0 2 g i 2 u 0 = 1 2 1 n ∑ i = 1 n x i − μ 0 2 x i − μ 0 2 − u 0 g i 2 u 0 = 1 2 1 n ∑ i = 1 n g i − ν 0 u 0 g i − ν 0 u 0 − u 0 g i 2 u 0 ,
J 31 = ∂ f 3 ∂ μ 0 = 1 2 1 n ∑ i = 1 n ν 0 + 1 u 0 2 x i − μ 0 − 1 g i − x i − μ 0 2 2 x i − μ 0 − 1 g i 2 = 1 2 1 n ∑ i = 1 n ν 0 + 1 u 0 2 x i − μ 0 x i − μ 0 2 − g i g i 2 = 1 2 1 n ∑ i = 1 n ν 0 + 1 u 0 2 x i − μ 0 − ν 0 u 0 g i 2 = − 1 n ∑ i = 1 n ν 0 ν 0 + 1 x i − μ 0 g i 2 = J 13 ,
J 32 = ∂ f 3 ∂ ν 0 = 1 2 1 n ∑ i = 1 n x i − μ 0 2 u 0 1 · g i − ν 0 + 1 u 0 g i 2 = 1 2 1 n ∑ i = 1 n g i − ν 0 u 0 g i − ν 0 u 0 − u 0 g i 2 u 0 = J 23 ,
J 33 = ∂ f 3 ∂ u 0 = − 1 2 − 1 u 0 2 + 1 2 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 2 − 1 ν 0 2 u 0 + x i − μ 0 2 g i 2 u 0 2 = 1 2 u 0 2 − 1 2 1 n ∑ i = 1 n ν 0 + 1 x i − μ 0 2 ν 0 u 0 + g i g i 2 u 0 2 = 1 2 u 0 2 − 1 2 1 n ∑ i = 1 n ν 0 + 1 g i − ν 0 u 0 g i + ν 0 u 0 g i 2 u 0 2 = 1 2 u 0 2 − 1 2 1 n ∑ i = 1 n ν 0 + 1 g i 2 − ν 0 2 u 0 2 g i 2 u 0 2 .
Note that
ψ ′ x = d 2 d x 2 log Γ x = trigamma x
which can be directly calculated in R software by trigamma(x) [52]. In J i j i = 1 , 2 , 3 , j = 1 , 2 , 3 , the expressions involving g i are used for simplifying the R coding.
Now let us show that the MLEs are consistent estimators of the hyperparameters. From Theorem 10.1.6 in [50], we know that the MLEs are consistent estimators of the hyperparameters under some regularity conditions in Miscellanea 10.6.2 in [50]. The regularity conditions are listed below:
(C1). 
We observe X 1 , X 2 , … , X n , where X i ∼ m x | μ 0 , ν 0 , u 0 are iid.
(C2). 
The parameter is identifiable; that is, if μ 0 , ν 0 , u 0 ≠ μ 0 ′ , ν 0 ′ , u 0 ′ , then m x | μ 0 , ν 0 , u 0 ≠ m x | μ 0 ′ , ν 0 ′ , u 0 ′ .
(C3). 
The densities m x | μ 0 , ν 0 , u 0 have common support, and m x | μ 0 , ν 0 , u 0 is differentiable in μ 0 , ν 0 , and u 0 .
(C4). 
The parameter space Ω contains an open set ω of which the true parameter value μ 00 , ν 00 , u 00 is an interior point.
It remains to show that the marginal distribution m x | μ 0 , ν 0 , u 0 satisfies all the regularity conditions. Let X = − ∞ , ∞ be the support set of m x | μ 0 , ν 0 , u 0 .
First, (C1) is satisfied, as X 1 , X 2 , … , X n is a random sample from m x | μ 0 , ν 0 , u 0 .
Second, let us show that (C2) is satisfied. The parameter is identifiable
⇔ μ 0 , ν 0 , u 0 ≠ μ 0 ′ , ν 0 ′ , u 0 ′ ⇒ m x | μ 0 , ν 0 , u 0 ≠ m x | μ 0 ′ , ν 0 ′ , u 0 ′ for some x ∈ X
⇔ m x | μ 0 , ν 0 , u 0 = m x | μ 0 ′ , ν 0 ′ , u 0 ′ for all x ∈ X ⇒ μ 0 , ν 0 , u 0 = μ 0 ′ , ν 0 ′ , u 0 ′ .
We have
m x | μ 0 , ν 0 , u 0 = m x | μ 0 ′ , ν 0 ′ , u 0 ′ for all x ∈ X
⇔ m x | μ 0 , ν 0 , u 0 m x | μ 0 ′ , ν 0 ′ , u 0 ′ = 1 for all x ∈ X .
Note that
m x | μ 0 , ν 0 , u 0 = Γ ν 0 + 1 2 Γ ν 0 2 π ν 0 u 0 1 + 1 ν 0 x − μ 0 2 u 0 − ν 0 + 1 2 ,
and thus
m x | μ 0 ′ , ν 0 ′ , u 0 ′ = Γ ν 0 ′ + 1 2 Γ ν 0 ′ 2 π ν 0 ′ u 0 ′ 1 + 1 ν 0 ′ x − μ 0 ′ 2 u 0 ′ − ν 0 ′ + 1 2 .
Therefore, (A14) is equivalent to
Γ ν 0 + 1 2 Γ ν 0 2 π ν 0 u 0 Γ ν 0 ′ 2 π ν 0 ′ u 0 ′ Γ ν 0 ′ + 1 2 1 + 1 ν 0 x − μ 0 2 u 0 − ν 0 + 1 2 1 + 1 ν 0 ′ x − μ 0 ′ 2 u 0 ′ − ν 0 ′ + 1 2 = 1 for all x ∈ X
⇔ Γ ν 0 + 1 2 Γ ν 0 ′ 2 π ν 0 ′ u 0 ′ Γ ν 0 ′ + 1 2 Γ ν 0 2 π ν 0 u 0 1 + 1 ν 0 ′ x − μ 0 ′ 2 u 0 ′ ν 0 ′ + 1 2 1 + 1 ν 0 x − μ 0 2 u 0 ν 0 + 1 2 = 1 for all x ∈ X ,
which implies
Γ ν 0 + 1 2 Γ ν 0 ′ 2 π ν 0 ′ u 0 ′ Γ ν 0 ′ + 1 2 Γ ν 0 2 π ν 0 u 0 = 1 c 1 , 1 + 1 ν 0 ′ x − μ 0 ′ 2 u 0 ′ ν 0 ′ + 1 2 1 + 1 ν 0 x − μ 0 2 u 0 ν 0 + 1 2 = c 1 for all x ∈ X ,
where c 1 is a constant which does not depend on x but may depend on μ 0 , ν 0 , u 0 , μ 0 ′ , ν 0 ′ , and u 0 ′ . From (A15), we obtain
μ 0 = μ 0 ′
and
ν 0 u 0 = ν 0 ′ u 0 ′ .
Substituting (A16) and (A17) into (A15), we obtain
1 + x − μ 0 2 ν 0 u 0 ν 0 ′ − ν 0 2 = c 1 for all x ∈ X ,
which implies
ν 0 = ν 0 ′ .
Substituting (A18) into (A17), we obtain
u 0 = u 0 ′ .
Therefore,
μ 0 , ν 0 , u 0 = μ 0 ′ , ν 0 ′ , u 0 ′ .
Consequently, (A13) is correct, and (C2) is satisfied.
Third, (C3) is satisfied, as the densities m x | μ 0 , ν 0 , u 0 have common support X = − ∞ , ∞ , and m x | μ 0 , ν 0 , u 0 is differentiable in μ 0 , ν 0 , and u 0 .
Finally, (C4) is satisfied, as the true parameter value
μ 00 , ν 00 , u 00 ∈ ω = Ω = − ∞ , ∞ × 0 , ∞ × 0 , ∞ ,
which is an open set.
Therefore, the marginal densities m x | μ 0 , ν 0 , u 0 satisfy all the regularity conditions, and the MLEs are consistent estimators of the hyperparameters.
The proof of the theorem is complete. □

Appendix A.5. The Proof of Theorem 5

The Proof of Theorem 5.
The proof of this theorem is simple. By the consistencies of the moment estimators of hyperparameters in Theorem 3, we have
δ s , m o m e n t π , θ n + 1 x n + 1 = 1 2 1 ν 01 ( n ) + 1 ν 01 ( n ) u 01 ( n ) + x n + 1 − μ 01 ( n ) 2 ⟶ p 1 2 1 ν 0 + 1 ν 0 u 0 + x n + 1 − μ 0 2 = δ s , o r a c l e π , θ n + 1 x n + 1 ,
as n → ∞ , for all x n + 1 ∈ R . Similarly, by the consistencies of the MLEs of hyperparameters in Theorem 4, we obtain
δ s , M L E π , θ n + 1 x n + 1 = 1 2 1 ν 02 ( n ) + 1 ν 02 ( n ) u 02 ( n ) + x n + 1 − μ 02 ( n ) 2 ⟶ p 1 2 1 ν 0 + 1 ν 0 u 0 + x n + 1 − μ 0 2 = δ s , o r a c l e π , θ n + 1 x n + 1 ,
as n → ∞ , for all x n + 1 ∈ R .
The proof of the theorem is complete. □

References

  1. Berger, J.O. Statistical Decision Theory and Bayesian Analysis, 2nd ed.; Springer: New York, NY, USA, 1985. [Google Scholar]
  2. Maritz, J.S.; Lwin, T. Empirical Bayes Methods, 2nd ed.; Chapman & Hall: London, UK, 1989. [Google Scholar]
  3. Carlin, B.P.; Louis, A. Bayes and Empirical Bayes Methods for Data Analysis, 2nd ed.; Chapman & Hall: London, UK, 2000. [Google Scholar]
  4. Robbins, H. An empirical Bayes approach to statistics. In Proceedings of the Third Berkeley Symposium on Mathematical Statistics and Probability; University of California Press: Berkeley, CA, USA, 1955; Volume 1. [Google Scholar]
  5. Robbins, H. The empirical Bayes approach to statistical decision problems. Ann. Math. Stat. 1964, 35, 1–20. [Google Scholar] [CrossRef] [Scilit]
  6. Robbins, H. Some thoughts on empirical Bayes estimation. Ann. Stat. 1983, 1, 713–723. [Google Scholar] [CrossRef] [Scilit]
  7. Deely, J.J.; Lindley, D.V. Bayes empirical Bayes. J. Am. Stat. Assoc. 1981, 76, 833–841. [Google Scholar] [CrossRef]
  8. Morris, C. Parametric empirical Bayes inference: Theory and applications. J. Am. Stat. Assoc. 1983, 78, 47–65. [Google Scholar] [CrossRef]
  9. Maritz, J.S.; Lwin, T. Assessing the performance of empirical bayes estimators. Ann. Inst. Stat. Math. 1992, 44, 641–657. [Google Scholar] [CrossRef] [Scilit]
  10. Carlin, B.P.; Louis, A. Empirical Bayes: Past, present and future. J. Am. Stat. Assoc. 2000, 95, 1286–1290. [Google Scholar] [CrossRef]
  11. Pensky, M. Locally adaptive wavelet empirical Bayes estimation of a location parameter. Ann. Inst. Stat. Math. 2002, 54, 83–99. [Google Scholar] [CrossRef] [Scilit]
  12. Coram, M.; Tang, H. Improving population-specific allele frequency estimates by adapting supplemental data: An empirical Bayes approach. Ann. Appl. Stat. 2007, 1, 459–479. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Efron, B. Tweedie’s formula and selection bias. J. Am. Stat. Assoc. 2011, 106, 1602–1614. [Google Scholar] [CrossRef] [Scilit]
  14. van Houwelingen, H.C. The role of empirical Bayes methodology as a leading principle in modern medical statistics. Biom. J. 2014, 56, 919–932. [Google Scholar] [CrossRef] [Scilit]
  15. Ghosh, M.; Kubokawa, T.; Kawakubo, Y. Benchmarked empirical Bayes methods in multiplicative area-level models with risk evaluation. Biometrika 2015, 102, 647–659. [Google Scholar] [CrossRef] [Scilit]
  16. Satagopan, J.M.; Sen, A.; Zhou, Q.; Lan, Q.; Rothman, N.; Langseth, H.; Engel, L.S. Bayes and empirical Bayes methods for reduced rank regression models in matched case-control studies. Biometrics 2016, 72, 584–595. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Martin, R.; Mess, R.; Walker, S.G. Empirical Bayes posterior concentration in sparse high-dimensional linear models. Bernoulli 2017, 23, 1822–1847. [Google Scholar] [CrossRef] [Scilit]
  18. Mikulich-Gilbertson, S.K.; Wagner, B.D.; Grunwald, G.K.; Riggs, P.D.; Zerbe, G.O. Using empirical Bayes predictors from generalized linear mixed models to test and visualize associations among longitudinal outcomes. Stat. Methods Med. Res. 2019, 28, 1399–1411. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Zhang, Y.Y.; Rong, T.Z.; Li, M.M. The empirical Bayes estimators of the mean and variance parameters of the normal distribution with a conjugate normal-inverse-gamma prior by the moment method and the MLE method. Commun. Stat.-Theory Methods 2019, 48, 2286–2304. [Google Scholar] [CrossRef] [Scilit]
  20. Zhang, Y.Y.; Wang, Z.Y.; Duan, Z.M.; Mi, W. The empirical Bayes estimators of the parameter of the Poisson distribution with a conjugate gamma prior under Stein’s loss function. J. Stat. Comput. Simul. 2019, 89, 3061–3074. [Google Scholar] [CrossRef] [Scilit]
  21. Sun, J.; Zhang, Y.Y.; Sun, Y. The empirical Bayes estimators of the rate parameter of the inverse gamma distribution with a conjugate inverse gamma prior under Stein’s loss function. J. Stat. Comput. Simul. 2021, 91, 1504–1523. [Google Scholar] [CrossRef] [Scilit]
  22. Zhou, M.Q.; Zhang, Y.Y.; Sun, Y.; Sun, J.; Rong, T.Z.; Li, M.M. The empirical Bayes estimators of the probability parameter of the beta-negative binomial model under Zhang’s loss function. Chin. J. Appl. Probab. Stat. 2021, 37, 478–494. [Google Scholar]
  23. Sun, Y.; Zhang, Y.Y.; Sun, J. The empirical Bayes estimators of the parameter of the uniform distribution with an inverse gamma prior under Stein’s loss function. Commun. Stat.-Simul. Comput. 2024, 53, 3027–3045. [Google Scholar] [CrossRef] [Scilit]
  24. Zhang, Y.Y.; Zhang, Y.Y.; Wang, Z.Y.; Sun, Y.; Sun, J. The empirical Bayes estimators of the variance parameter of the normal distribution with a conjugate inverse gamma prior under Stein’s loss function. Commun. Stat.-Theory Methods 2024, 53, 170–200. [Google Scholar] [CrossRef] [Scilit]
  25. Mao, S.S.; Tang, Y.C. Bayesian Statistics, 2nd ed.; China Statistics Press: Beijing, China, 2012.
  26. Chen, M.H. Bayesian Statistics Lecture; Statistics Graduate Summer School, School of Mathematics and Statistics, Northeast Normal University: Changchun, China, 2014. [Google Scholar]
  27. James, W.; Stein, C. Estimation with Quadratic Loss. In Proceedings of the Fourth Berkeley Symposium on Mathematical Statistics and Probability; University of California: Berkeley, CA, USA, 1961; Volume 1, pp. 361–380. [Google Scholar]
  28. Zhang, Y.Y. The Bayes rule of the variance parameter of the hierarchical normal and inverse gamma model under Stein’s loss. Commun. Stat.-Theory Methods 2017, 46, 7125–7133. [Google Scholar] [CrossRef] [Scilit]
  29. Xie, Y.H.; Song, W.H.; Zhou, M.Q.; Zhang, Y.Y. The Bayes posterior estimator of the variance parameter of the normal distribution with a normal-inverse-gamma prior under Stein’s loss. Chin. J. Appl. Probab. Stat. 2018, 34, 551–564. [Google Scholar]
  30. Zhang, Y.Y.; Xie, Y.H.; Song, W.H.; Zhou, M.Q. Three strings of inequalities among six Bayes estimators. Commun. Stat.-Theory Methods 2018, 47, 1953–1961. [Google Scholar] [CrossRef] [Scilit]
  31. Good, I.J. Turing’s anticipation of empirical Bayes in connection with the cryptanalysis of the naval enigma. J. Stat. Comput. Simul. 2000, 66, 101–111. [Google Scholar] [CrossRef] [Scilit]
  32. Noma, H.; Matsui, S. Empirical Bayes ranking and selection methods via semiparametric hierarchical mixture models in microarray studies. Stat. Med. 2013, 32, 1904–1916. [Google Scholar] [CrossRef] [Scilit]
  33. Pan, W.; Jeong, K.S.; Xie, Y.; Khodursky, A. A nonparametric empirical Bayes approach to joint modeling of multiple sources of genomic data. Stat. Sin. 2008, 18, 709–729. [Google Scholar]
  34. Zhang, Q.; Xu, Z.; Lai, Y. An empirical Bayes approach for the identification of long-range chromosomal interaction from Hi-C data. Stat. Appl. Genet. Mol. Biol. 2021, 20, 1–15. [Google Scholar] [CrossRef] [Scilit]
  35. Soloff, J.A.; Guntuboyina, A.; Sen, B. Multivariate, heteroscedastic empirical Bayes via nonparametric maximum likelihood. J. R. Stat. Soc. Ser. B-Stat. Methodol. 2024, 87, 1–32. [Google Scholar] [CrossRef] [Scilit]
  36. Zhang, Y.Y.; Rong, T.Z.; Li, M.M. The Bayes estimator of the positive restricted parameter under the power-power loss with an application. Chin. J. Appl. Probab. Stat. 2023, 39, 159–177. [Google Scholar]
  37. Adler, D.; Murdoch, D. rgl: 3D Visualization Using OpenGL, R Package Version 0.98.1. 2017.
  38. Conover, W.J. Practical Nonparametric Statistics. New York: John Wiley & Sons. Pages 295–301 (one-sample Kolmogorov test), 309–314 (two-sample Smirnov test). In Proceedings of the Practical Nonparametric Statistics; Wiley: New York, NY, USA, 1971. [Google Scholar]
  39. Durbin, J. Distribution Theory for Tests Based on the Sample Distribution Function; SIAM: Philadelphia, PA, USA, 1973. [Google Scholar]
  40. Marsaglia, G.; Tsang, W.W.; Wang, J.B. Evaluating Kolmogorov’s distribution. J. Stat. Softw. 2003, 8, 1–4. [Google Scholar] [CrossRef] [Scilit]
  41. Aldirawi, H.; Yang, J.; Metwally, A.A. Identifying appropriate probabilistic models for sparse discrete omics data. In Proceedings of the IEEE EMBS International Conference on Biomedical and Health Informatics (BHI), Chicago, IL, USA, 19–22 May 2019. [Google Scholar]
  42. Dimitrova, D.S.; Kaishev, V.K.; Tan, S. Computing the Kolmogorov-Smirnov distribution when the underlying cdf is purely discrete, mixed or continuous. J. Stat. Softw. 2020, 95, 1–42. [Google Scholar] [CrossRef] [Scilit]
  43. Santitissadeekorn, N.; Lloyd, D.J.B.; Short, M.B.; Delahaies, S. Approximate filtering of conditional intensity process for Poisson count data: Application to urban crime. Comput. Stat. Data Anal. 2020, 144, 106850. [Google Scholar] [CrossRef] [Scilit]
  44. Anderson, T.W.; Darling, D.A. A test of goodness of fit. J. Am. Stat. Assoc. 1954, 49, 765–769. [Google Scholar] [CrossRef]
  45. Braun, H. A simple method for testing goodness-of-fit in the presence of nuisance parameters. J. R. Stat. Soc. Ser. B-Stat. Methodol. 1980, 42, 53–63. [Google Scholar] [CrossRef] [Scilit]
  46. Marsaglia, G.; Marsaglia, J. Evaluating the Anderson-Darling distribution. J. Stat. Softw. 2004, 9, 1–5. [Google Scholar] [CrossRef] [Scilit]
  47. Csorgo, S.; Faraway, J.J. The exact and asymptotic distributions of Cramer-von Mises statistics. J. R. Stat. Soc. Ser. B-Stat. Methodol. 1996, 58, 221–234. [Google Scholar] [CrossRef] [Scilit]
  48. Berger, J.O. The case for objective Bayesian analysis. Bayesian Anal. 2006, 1, 385–402. [Google Scholar] [CrossRef] [Scilit]
  49. Berger, J.O.; Bernardo, J.M.; Sun, D.C. Overall objective priors. Bayesian Anal. 2015, 10, 189–221. [Google Scholar] [CrossRef] [Scilit]
  50. Casella, G.; Berger, R.L. Statistical Inference, 2nd ed.; Duxbury: Pacific Grove, CA, USA, 2002. [Google Scholar]
  51. Robert, C.P. The Bayesian Choice: From Decision-Theoretic Motivations to Computational Implementation, 2nd ed.; Springer: New York, NY, USA, 2007. [Google Scholar]
  52. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2026. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.