Skip to content

Commit e835a8f

Browse files
committed
Deploying to gh-pages from @ c9f11c3 🚀
1 parent 45b128c commit e835a8f

27 files changed

Lines changed: 1310 additions & 166 deletions

404.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/index.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
### All vignettes
44

5-
- [Penalized Precision Matrix
6-
Estimation](https://shiying-xiao.com/grasps/articles/pen_est.md):
5+
- [Penalized Precision Matrix Estimation in
6+
grasps](https://shiying-xiao.com/grasps/articles/pen_est.md):

articles/pen_est.html

Lines changed: 207 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

articles/pen_est.md

Lines changed: 138 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,160 @@
1-
# Penalized Precision Matrix Estimation
1+
# Penalized Precision Matrix Estimation in grasps
22

33
## Preliminary
44

55
Consider the following setting:
66

77
- Gaussian graphical model (GGM) assumption:
8-
The data $X_{n \times p}$ consists of independent and identically
9-
distributed samples $X_{1},\ldots,X_{n} \sim N_{p}(0,\Sigma)$.
8+
The data $X_{n \times d}$ consists of independent and identically
9+
distributed samples $X_{1},\ldots,X_{n} \sim N_{d}(\mu,\Sigma)$.
1010

1111
- Disjoint group structure:
12-
The $p$ variables can be partitioned into disjoint groups.
12+
The $d$ variables can be partitioned into disjoint groups.
1313

1414
- Goal:
1515
Estimate the precision matrix
16-
$\Omega = \Sigma^{- 1} = \left( \omega_{ij} \right)_{p \times p}$.
16+
$\Omega = \Sigma^{- 1} = \left( \omega_{ij} \right)_{d \times d}$.
1717

18-
## Bi-level penalty
18+
## Sparse-Group Estimator
19+
20+
\$\$ \begin{gather} \hat{\Omega}(\lambda,\alpha,\gamma) =
21+
\operatorname\*{arg\\min}\_{\Omega \succ 0} \Bigl\\ - \log\det(\Omega) +
22+
\operatorname{tr}(S\Omega) + P\_{\lambda,\alpha,\gamma}(\Omega) \Bigr\\,
23+
\\ \\ P\_{\lambda,\alpha,\gamma}(\Omega) = \alpha
24+
P^\text{individual}\_{\lambda,\gamma}(\Omega) + (1-\alpha)
25+
P^\text{group}\_{\lambda,\gamma}(\Omega), \\ \\
26+
P^\text{individual}\_{\lambda,\gamma}(\Omega) = \sum\_{i,j}
27+
p\_{\lambda,\gamma}(\vert\omega\_{ij}\vert), \\ \\
28+
P^\text{group}\_{\lambda,\gamma}(\Omega) = \sum\_{g,g^\prime}
29+
p\_{\lambda,\gamma}(\Vert\Omega\_{gg^\prime}\Vert_F), \end{gather} \$\$
1930

20-
$$\widehat{\Omega} = \operatorname{arg\,min}\limits_{\Omega \succ 0}\left\{ - \log\det(\Omega) + \operatorname{tr}(S\Omega) + \alpha P_{\text{individual}} + (1 - \alpha)P_{\text{group}} \right\},$$
2131
where:
2232

23-
- $\alpha \in \lbrack 0,1\rbrack$ controls the balance between
24-
element-wise and block-wise penalties.
25-
- $P_{\text{individual}}$ denotes the element-wise individual penalty
26-
term.
27-
- $P_{\text{group}}$ denotes the block-wise group penalty term.
33+
- $S = n^{- 1}\sum_{i = 1}^{n}\left( X_{i} - \bar{X} \right)\left( X_{i} - \bar{X} \right)^{\top}$
34+
is the empirical covariance matrix.
35+
36+
- $\lambda \geq 0$ is the global regularization parameter controlling
37+
overall shrinkage.
38+
39+
- $\alpha \in \lbrack 0,1\rbrack$ is the mixing parameter controlling
40+
the balance between element-wise and block-wise penalties.
41+
42+
- $\gamma$ is the additional parameter controlling the curvature and
43+
effective degree of nonconvexity of the penalty.
44+
45+
- $P_{\lambda,\alpha,\gamma}(\Omega)$ is a generic bi-level penalty
46+
template that can incorporate convex or non-convex regularizers while
47+
preserving the intrinsic group structure among variables.
48+
49+
- $P_{\lambda,\gamma}^{\text{individual}}(\Omega)$ is the element-wise
50+
individual penalty term.
51+
52+
- $P_{\lambda,\gamma}^{\text{group}}(\Omega)$ is the block-wise group
53+
penalty term.
54+
55+
- $p_{\lambda,\gamma}( \cdot )$ is a penalty function parameterized by
56+
$\lambda$ and $\gamma$.
57+
58+
- $\Omega_{gg^{\prime}}$ is the submatrix of $\Omega$ with the rows from
59+
group $g$ and columns from group $g^{\prime}$.
60+
61+
- The Frobenius norm $\|\Omega\|_{F}$ is defined as
62+
$\|\Omega\|_{F} = \left( \sum_{i,j}|\omega_{ij}|^{2} \right)^{1/2} = \left\lbrack \operatorname{tr}\left( \Omega^{\top}\Omega \right) \right\rbrack^{1/2}$.
63+
64+
**Note**: For convex penalties, the parameter $\gamma$ is not required,
65+
and the penalty function $p_{\lambda,\gamma}( \cdot )$ simplifies to
66+
$p_{\lambda}( \cdot )$.
2867

2968
## Penalties
3069

31-
The package **grasps** estimates precision matrices using the following
32-
penalties:
70+
1. Lasso: Least absolute shrinkage and selection operator ([Tibshirani
71+
1996](#ref-tibshirani1996regression); [Friedman, Hastie, and
72+
Tibshirani 2008](#ref-friedman2008sparse))
3373

34-
1. Adaptive lasso (Zou 2006; Fan, Feng, and Wu 2009)
74+
$$p_{\lambda}\left( \omega_{ij} \right) = \lambda|\omega_{ij}|.$$
3575

36-
$$P_{\text{individual}} = \lambda\sum\limits_{i,j}\frac{|\omega_{ij}|}{|v_{ij}|}\quad\text{and}\quad P_{\text{group}} = \lambda\sum\limits_{g,g^{\prime}}\frac{\|\Omega_{gg^{\prime}}\|_{2}}{\| V_{gg^{\prime}}\|_{2}}$$
76+
2. Adaptive lasso ([Zou 2006](#ref-zou2006adaptive); [Fan, Feng, and Wu
77+
2009](#ref-fan2009network))
3778

38-
2. Lasso (Tibshirani 1996; Friedman, Hastie, and Tibshirani 2008)
79+
$$p_{\lambda}\left( \omega_{ij} \right) = \lambda\frac{|\omega_{ij}|}{v_{ij}},$$
80+
where
81+
$V = \left( v_{ij} \right)_{d \times d} = \left( |{\widetilde{\omega}}_{ij}|^{\gamma} \right)_{d \times d}$
82+
is a matrix of adaptive weights, and ${\widetilde{\omega}}_{ij}$ is the
83+
initial estimate obtained using `penalty = "lasso"`.
3984

40-
$$P_{\text{individual}} = \lambda\|\Omega\|_{1}\quad\text{and}\quad P_{\text{group}} = \lambda\sum\limits_{g,g^{\prime}}\|\Omega_{gg^{\prime}}\|_{2}$$
85+
3. Atan: Arctangent type penalty ([Wang and Zhu
86+
2016](#ref-wang2016variable))
4187

42-
3. Minimax concave penalty (MCP) (Zhang 2010)
88+
$$p_{\lambda,\gamma}\left( \omega_{ij} \right) = \lambda\left( \gamma + \frac{2}{\pi} \right)\arctan\left( \frac{|\omega_{ij}|}{\gamma} \right),\quad\gamma > 0.$$
4389

44-
$$P_{\text{individual}} = \sum\limits_{i,j}\xi_{\lambda,\gamma}\left( |\omega_{ij}| \right)\quad\text{and}\quad P_{\text{group}} = \sum\limits_{g,g^{\prime}}\xi_{\lambda,\gamma}\left( \|\Omega_{gg^{\prime}}\|_{2} \right)$$
90+
4. Exp: Exponential type penalty ([Wang, Fan, and Zhu
91+
2018](#ref-wang2018variable))
4592

46-
4. Smoothly clipped absolute deviation (SCAD) (Fan and Li 2001; Fan,
47-
Feng, and Wu 2009)
93+
$$p_{\lambda,\gamma}\left( \omega_{ij} \right) = \lambda\left\lbrack 1 - \exp\left( - \frac{|\omega_{ij}|}{\gamma} \right) \right\rbrack,\quad\gamma > 0.$$
4894

49-
$$P_{\text{individual}} = \sum\limits_{i,j}\psi_{\lambda,\gamma}\left( |\omega_{ij}| \right)\quad\text{and}\quad P_{\text{group}} = \sum\limits_{g,g^{\prime}}\psi_{\lambda,\gamma}\left( \|\Omega_{gg^{\prime}}\|_{2} \right)$$
95+
5. Lq ([Frank and Friedman 1993](#ref-frank1993statistical); [Fu
96+
1998](#ref-fu1998penalized); [Fan and Li
97+
2001](#ref-fan2001variable))
5098

51-
where:
99+
$$p_{\lambda,\gamma}\left( \omega_{ij} \right) = \lambda|\omega_{ij}|^{\gamma},\quad 0 < \gamma < 1.$$
52100

53-
- $\Omega_{gg^{\prime}}$ denotes the submatrix of $\Omega$ with the rows
54-
from group $g$ and columns from group $g^{\prime}$.
101+
6. LSP: Log-sum penalty ([Candès, Wakin, and Boyd
102+
2008](#ref-candes2008enhancing))
55103

56-
- The norms are defined as
57-
$$\|\Omega\|_{1} = \sum\limits_{i,j}|\omega_{ij}|\quad\text{and}\quad\|\Omega\|_{2} = \|\Omega\|_{F} = \sqrt{\sum\limits_{i,j}|\omega_{ij}|^{2}} = \sqrt{\operatorname{tr}\left( \Omega^{\top}\Omega \right)}.$$
104+
$$p_{\lambda,\gamma}\left( \omega_{ij} \right) = \lambda\log\left( 1 + \frac{|\omega_{ij}|}{\gamma} \right),\quad\gamma > 0.$$
58105

59-
- $\lambda > 0$ is a regularization parameter.
106+
7. MCP: Minimax concave penalty ([Zhang 2010](#ref-zhang2010nearly))
60107

61-
- $V = \left( v_{ij} \right)_{p \times p}$ is a matrix of adaptive
62-
weights, which is the estimate from `penalty = "lasso"`.
108+
$$p_{\lambda,\gamma}\left( \omega_{ij} \right) = \begin{cases}
109+
{\lambda|\omega_{ij}| - \frac{\omega_{ij}^{2}}{2\gamma},} & {{\text{if}\mspace{6mu}}|\omega_{ij}| \leq \gamma\lambda,} \\
110+
{\frac{1}{2}\gamma\lambda^{2},} & {{\text{if}\mspace{6mu}}|\omega_{ij}| > \gamma\lambda.}
111+
\end{cases}\quad\gamma > 1.$$
63112

64-
- $\xi_{\lambda,\gamma}$ is the penalty function of MCP.
113+
8. SCAD: Smoothly clipped absolute deviation ([Fan and Li
114+
2001](#ref-fan2001variable); [Fan, Feng, and Wu
115+
2009](#ref-fan2009network))
65116

66-
- $\psi_{\lambda,\gamma}$ is the penalty function of SCAD.
117+
$$p_{\lambda,\gamma}\left( \omega_{ij} \right) = \begin{cases}
118+
{\lambda|\omega_{ij}|} & {{\text{if}\mspace{6mu}}|\omega_{ij}| \leq \lambda,} \\
119+
\frac{2\gamma\lambda|\omega_{ij}| - \omega_{ij}^{2} - \lambda^{2}}{2(\gamma - 1)} & {{\text{if}\mspace{6mu}}\lambda < |\omega_{ij}| < \gamma\lambda,} \\
120+
\frac{\lambda^{2}(\gamma + 1)}{2} & {{\text{if}\mspace{6mu}}|\omega_{ij}| \geq \gamma\lambda.}
121+
\end{cases}\quad\gamma > 2.$$
122+
123+
## Illustrative Visualization
124+
125+
Figure 1 illustrates a comparison of various penalty functions
126+
$p(\omega)$ evaluated over a range of $\omega$ values. The main panel
127+
(right) provides a wider view of the penalty functions’ behavior for
128+
larger $|\omega|$, while the inset panel (left) magnifies the region
129+
near zero $\lbrack - 1,1\rbrack$.
130+
131+
![Figure 1: Illustrative penalty
132+
functions.](pen_est_files/figure-html/pen-1.png)
133+
134+
Figure 1: Illustrative penalty functions.
135+
136+
Figure 2 displays the derivative function $p^{\prime}(\omega)$
137+
associated with a range of penalty types. The Lasso exhibits a constant
138+
derivative, corresponding to uniform shrinkage. For MCP and SCAD, the
139+
derivatives are piecewise: initially equal to the Lasso derivative, then
140+
decreasing over an intermediate region, and eventually dropping to zero,
141+
indicating that large $|\omega|$ receive no shrinkage. Other non-convex
142+
penalties show smoothly diminishing derivatives as $|\omega|$ increases,
143+
reflecting their tendency to shrink small $|\omega|$ strongly while
144+
exerting little to no shrinkage on large ones.
145+
146+
![Figure 2: Illustrative penalty
147+
derivatives.](pen_est_files/figure-html/unnamed-chunk-2-1.png)
148+
149+
Figure 2: Illustrative penalty derivatives.
67150

68151
## Reference
69152

153+
Candès, Emmanuel J., Michael B. Wakin, and Stephen P. Boyd. 2008.
154+
“Enhancing Sparsity by Reweighted $\ell_{1}$ Minimization.” *Journal of
155+
Fourier Analysis and Applications* 14 (5): 877–905.
156+
<https://doi.org/10.1007/s00041-008-9045-x>.
157+
70158
Fan, Jianqing, Yang Feng, and Yichao Wu. 2009. “Network Exploration via
71159
the Adaptive LASSO and SCAD Penalties.” *The Annals of Applied
72160
Statistics* 3 (2): 521–41. <https://doi.org/10.1214/08-aoas215>.
@@ -76,15 +164,32 @@ Penalized Likelihood and Its Oracle Properties.” *Journal of the
76164
American Statistical Association* 96 (456): 1348–60.
77165
<https://doi.org/10.1198/016214501753382273>.
78166

167+
Frank, Lldiko E., and Jerome H. Friedman. 1993. “A Statistical View of
168+
Some Chemometrics Regression Tools.” *Technometrics* 35 (2): 109–35.
169+
<https://doi.org/10.1080/00401706.1993.10485033>.
170+
79171
Friedman, Jerome, Trevor Hastie, and Robert Tibshirani. 2008. “Sparse
80172
Inverse Covariance Estimation with the Graphical Lasso.” *Biostatistics*
81173
9 (3): 432–41. <https://doi.org/10.1093/biostatistics/kxm045>.
82174

175+
Fu, Wenjiang J. 1998. “Penalized Regressions: The Bridge Versus the
176+
Lasso.” *Journal of Computational and Graphical Statistics* 7 (3):
177+
397–416. <https://doi.org/10.1080/10618600.1998.10474784>.
178+
83179
Tibshirani, Robert. 1996. “Regression Shrinkage and Selection via the
84180
Lasso.” *Journal of the Royal Statistical Society: Series B
85181
(Methodological)* 58 (1): 267–88.
86182
<https://doi.org/10.1111/j.2517-6161.1996.tb02080.x>.
87183

184+
Wang, Yanxin, Qibin Fan, and Li Zhu. 2018. “Variable Selection and
185+
Estimation Using a Continuous Approximation to the $L_{0}$ Penalty.”
186+
*Annals of the Institute of Statistical Mathematics* 70 (1): 191–214.
187+
<https://doi.org/10.1007/s10463-016-0588-3>.
188+
189+
Wang, Yanxin, and Li Zhu. 2016. “Variable Selection and Parameter
190+
Estimation with the Atan Regularization Method.” *Journal of Probability
191+
and Statistics* 2016: 6495417. <https://doi.org/10.1155/2016/6495417>.
192+
88193
Zhang, Cun-Hui. 2010. “Nearly Unbiased Variable Selection Under Minimax
89194
Concave Penalty.” *The Annals of Statistics* 38 (2): 894–942.
90195
<https://doi.org/10.1214/09-AOS729>.
174 KB
Loading
81.4 KB
Loading

authors.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extra.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ body {
1717
padding-left: 5rem;
1818
}
1919
}
20+
21+
.note {
22+
border: 1px solid #ccc;
23+
/* background-color: #f0f7fb; */
24+
border-left: solid 4px #F43F5E;
25+
padding: 10px;
26+
margin-bottom: 20px;
27+
}

0 commit comments

Comments
 (0)