Abstract
This paper investigates the problem of sparse covariance matrix estimation while the sampling set contains sensitive information, and both the differentially private algorithm and locally differentially private algorithm are adopted to preserve privacy. It is worth noting that the requirement of the distribution assumption in our work is only the existing bounded moment. Meanwhile, we reduce the error bounds by modifying the threshold of the existing differentially private algorithms. Finally, the numerical simulations and results from a real data application are presented to support our theoretical claims.
Keywords:
differential privacy; lower-bounded moment; sparse covariance matrix; probability estimation MSC:
62F30; 62H12; 62J10
1. Introduction
The covariance matrix plays an important role in modern multivariate analysis. Many methodologies, including regression analysis, principal component analysis and discriminant analysis, rely on the estimation of the covariance matrices. Such estimation problems arise in various fields of science; for example, risk management [1], gene expressions [2], social networks [3], among others. Up to now, many methods have been developed to estimate the covariance matrix. One of the most popular approaches is to impose the sparse structure on the covariance matrix (see [4,5]).
In the big data era, sampling databases usually include personal financial or health information, such as those used in social science, biomedicine and genomics, so it is inevitable that one must deal with sensitive data. In recent years, the differentially private algorithm (DPA) and locally differentially private algorithm (LDPA) have become widely used methods that can prevent privacy leakage and defend against differential attacks, and these methods have been developed in the real world by Apple [6], Microsoft [7] and Google [8]. The DPA and LDPA aim at hiding the true information while keeping the basic property of the whole dataset. A popular idea to achieve this goal is to add some special noise into the original model [9,10,11].
This paper focuses on efficient estimation for a form of general sparse covariance matrix based on both DPA and LDPA in order to protect sensitive information. Although the study of datasets with the DPA and LDPA brings difficulties, it also makes it possible to use some special methods to break this bottleneck. In this paper, we adopt the Gaussian mechanism to keep the differentially private property of algorithms, and use the thresholding method to deal with the covariance matrix.
1.1. Related Work and Our Contributions
There are several papers developing the theory of covariance matrix estimation based on the DPA or LDPA to provide private protection. Jiang et al. [12] added Wishart-distributed noise to construct a DPA, and applied it to keep privacy while establishing the covariance matrix estimation; however, the Wishart distribution seems a strong condition. Amin et al. [13] used the Laplace mechanism to construct a DPA, and they utilized it to protect sensitive samples while estimating the covariance matrix; nonetheless, their method is just for the low-dimensional case. Kamath et al. [14] considered high-dimensional covariance matrix estimation with a DPA to protect privacy, but they did not assume the sparse structure of the covariance matrix, so it led to a large error bound. Moreover, the distribution assumption is required to be Gaussian. Recently, Wang and Xu [10] reduced the distribution assumption from Gaussian to sub-Gaussian and imposed the sparse structure on the covariance matrix, which led to a low convergence rate, while using a DPA and LDPA to preserve privacy.
Our contributions are as follows: (i) For the random vector , the requirement for the distribution of is only the existing bounded moment. However, previous work requires that is Gaussian [14] or sub-Gaussian [10], which is equivalent to any existing bounded moment of (see [15]). Moreover, if is subjected to a heavy-tailed distribution, i.e, the distribution of satisfies for any , then it is obvious that this distribution can be covered by our distribution, and cannot be handled by the existing literature. (ii) We adjust the threshold in the original algorithms of Wang and Xu [10], which leads to the error bound becoming smaller under both the DPA and LDPA (see Remarks in 3 and 7). (iii) We measure the error bounds not only by the spectral norm and matrix operator norm, but also by the Frobenius norm, which has not previously been considered as far as we know. (iv) The sparse structure of the covariance matrix in the present paper contains that of Wang and Xu under an extra condition as a special case (see Remark 1).
1.2. Notations
For a random variable and denote the expectation and variance of Z, respectively. For a vector , we define its norm by with and . For a matrix , the spectral norm is defined as the matrix norm and the Frobenius norm are defined by and , respectively. Moreover, the matrix operator norm is given by For two sequences of real numbers and , “” stands for for some constant independent of
1.3. Organization of this Paper
The remainder of this paper is outlined as follows. Section 2 introduces some important definitions and lemmas. In Section 3, we firstly establish the sparse covariance matrix estimation based on the DPA, while any component of the random vector just has a bounded moment. Then, the estimation problem is extended to utilize the LDPA. Finally, the results from several numerical experiments and a real data example are presented to support our theoretical results. All proofs are relegated to Appendix A.
2. Preliminaries
2.1. Sparse Covariance Estimation
In this paper, we always assume the real random vector satisfying the following conditions, denoted as
Condition (i) For a polynomial-type moment, assume , and for some positive constants and , it holds ,
and
Condition (ii) The covariance matrix of the random vector belongs to the -sparse space as follows:
Remark 1.
Condition (i) mainly means that the distribution of the any component of satisfies the existing bounded moment. Note that if is subjected to a multivariate normal distribution or a multivariate t-distribution with freedom , then Condition (i) holds. Moreover, the relationship is necessary for proofing Lemma 1. Meanwhile, the parameter ε controls the level of moment; can be determined if the distribution of and the covariance matrix Σ are given.
Condition (ii) is a common assumption for the high-dimensional covariance matrix Σ of (see [4] and [5]). Moreover, we find that the parameter space defined in Wang and Xu [10] is
Then, it is obvious that there exists a constant , such that
i.e., the sparse space (1) with the extra condition of can be seen as a special case of .
Let , where , then, the sample covariance matrix is given as
The following conclusion about the difference between and was acquired by [4].
Lemma 1.
For any and some ,
where
2.2. Differential Privacy: Gaussian Mechanism and Post-Processing Property
This paper adopts the differentially private mechanism to protect sensitive data, which requires no significant change in the outcome if a single data point of a dataset varies.
Definition 1
([9]). Two datasets, and , are called neighbors if they only differ in only one entry, denoted as .
A similar explanation can be found in Cai et al. [11].
Definition 2
([13]). A randomized algorithm is -differentially private (DP) if
holds for every pair of neighbors, i.e., and , where is any measurable event in the output space of .
This paper adopts the Gaussian mechanism to guarantee the algorithm being -DP.
Definition 3
([16]). For any algorithm f mapping a dataset to , the Gaussian mechanism is defined as
where with and
In fact, post-processing a differentially private algorithm preserves privacy.
Lemma 2.
Post-processing property [11]: If is a -differentially private algorithm and is any deterministic algorithm, then the composition is -differentially private.
3. Two Methods for Privacy Protection
3.1. Differentially Private Algorithm
Firstly, we introduce the -differentially private algorithm, which post-processes the perturbed sample covariance matrix by the modified threshold. After thresholding, eigenvalue selection is conducted to guarantee a positive semi-definite property. For details, see the following description of Algorithm 1. Moreover, we provide Theorem 1 to bound the errors between and the output of Algorithm 1.
| Algorithm 1 Modified DP-Thresholding |
Input: and
|
In Algorithm 1, the parameters and control the level of privacy protection, and the privacy constraint becomes more stringent as and tend to 0. The parameter is usually chosen by cross-validation in the simulation experiment in order to decrease the error.
Remark 2.
Algorithm 1 is -differentially private. Since Theorem 1 in [17] states that Step 1 in Algorithm 1 preserves -differential privacy, then this, along with Lemma 2, implies that Algorithm 1 is -differentially private. Note that the process of verifying differential privacy is long and elementary [18], so we omit it here.
Theorem 1.
For any and some , there exist positive constants , such that the output of Algorithm 1 satisfies
Remark 3.
In Theorem 1, the condition is necessary. Otherwise, may be larger than 1 for some , which leads to results (i)–(ii) being trivial. According to the results in Theorem 1, we find that when the levels of sparsity (i.e., ) and the dimension p of the random vector increase and the sample size n decreases, the errors between and the output of Algorithm 1 become larger. Moreover, if ϵ and δ become smaller, which means stronger privacy protection and noise disturbance, the errors become larger. This theoretical analysis is consistent with the results of the simulation experiments in Section 4.1.
Note that the error bound under the spectral norm over the parameter space (see (1)) in Wang and Xu [10] is , while guaranteeing DP. Theorem 1(i), together with (2), states that our error bound over is , which performs better than that of Wang and Xu if the space has an extra condition. However, the distribution assumption in our work is weaker than that of Wang and Xu, and we also consider the case with
Remark 4.
In a non-private case, result (i) of Theorem 1 reduces to
which is consistent with Theorem 1(ii) in [4], i.e., we extend the work of [4] from a non-private mechanism to a -differentially private mechanism.
Remark 5.
On the other hand, the Riesz–Thorin interpolation theorem [19] states that the operator norm of the symmetric matrix satisfies . Hence, we obtain
under event E. This, along with Lemma A1, implies that
i.e., we can provide the upper error bound under the operator norm of the matrix.
3.2. Locally Differentially Private Algorithm
Differential privacy in the local model. In the locally differentially private (LDP) model, there exists a data universe , n users who hold private data and a server. In each round, the server sends a message, each user selects a differentially private algorithm and runs it on their data in order to encrypt it, and then sends the output back to the server.
Definition 4
([20]). A randomized algorithm is -locally differentially private if
holds for all pairs of , where is any measurable event in the output space of .
In fact, the idea of Algorithm 2 is that each perturbs its sample covariance matrix in order to aggregate the noise disturbance in the algorithm.
| Algorithm 2 Modified LDP-Thresholding |
Input: and
|
Remark 6.
In fact, Step 2 in Algorithm 2 can be viewed as a special case of Algorithm 1 in [21] that keeps -locally differentially private. Then, using the post-processing property leads to Algorithm 2 being -locally differentially private. Here, we omit Step 2 to verify the preservation of local differential privacy.
Theorem 2.
For any and some , there exist positive constants , such that the output of Algorithm 2 satisfies
Remark 7.
The reason for setting and is the same as in Theorem 1. Moreover, the parameters and p are positively correlated with error bounds, and n, ϵ and δ are negatively correlated with error bounds, respectively, and these results are consistent with the simulation studies in Section 4.1.
It is easy to see that the error bound under the spectral norm over in Wang and Xu [10] is while maintaining LDP. Moreover, our Theorem 2(i) and (2) imply that the error bound under the spectral norm over differs with that of Wang and Xu only in theory. However, according to the numerical studies in Section 4, the output of our Algorithm 2 outperforms that of Wang and Xu. In addition, our assumption of the distribution is weaker than Wang and Xu’s condition, and the parameter space with is considered in our work.
Remark 8.
According to the proving process of Theorem 2, we observe that the error bounds under spectral and Frobenius norms can be and , respectively. Comparing these results with the conclusions of Theorem 1, it is easy to see that the upper bound of Theorem 2 is larger than that of Theorem 1. This is reasonable since Algorithm 2 enforces a stronger privacy protection mechanism, so it has to pay a larger price.
4. Numerical Experiments
4.1. Simulation Studies
In this subsection, we investigate the numerical performances of the outputs and of Algorithms 1 and 2, respectively. Moreover, we also compare these two estimators with the outputs and of the DP-thresholding and LDP-thresholding algorithms proposed by Wang and Xu [10], respectively.
Data generation
The following models for the covariance matrix are considered:
Model 1.
Model 2. and for .
Then, we generate samples in two different ways:
(i) ;
(ii) are independent from multivariate t-distribution with freedom .
Experimental settings
(i) Set and
(ii) Set and ;
(iii) Set and .
In each setting, we choose the tuning parameter in the threshold by 10-fold cross-validation, as proposed by Cai and Liu [4]. Moreover, we measure the errors by the spectral and Frobenius norms, respectively. We run each experiment 50 times and take the average errors as the final result (with standard errors in parentheses).
Experimental results
From Table 1 and Table 2, we find that the output of Algorithm 1 (differentially private algorithm) performs better than the output of the DP-thresholding algorithm proposed by Wang and Xu [10]. The above property also holds for our Algorithm 2 (locally differentially private algorithm) compared with the LDP-thresholding algorithm of Wang and Xu. Moreover, we observe that the dimension p increase leads to the errors becoming larger. Meanwhile, if the sample size n becomes larger, then the errors become smaller. It can also be seen that the errors under Model 1 are larger than those under Model 2, since the covariance matrix in Model 1 is more dense.
Table 1.
Comparison of different outputs of the algorithms with normal distributions.
Table 2.
Comparison of different outputs of the algorithms with t-distributions.
Table 3 and Table 4 demonstrate that if the privacy parameter increases (resulting in weaker privacy protection), the errors will become smaller. Moreover, Table 5 and Table 6 show that when the privacy parameter decreases, the errors will become larger. These phenomena are also consistent with our theoretical results. In addition, the following numerical results are in line with the theoretical findings indicated by Remark 8, i.e., the error estimation of Algorithm 1 is smaller than that of Algorithm 2.
Table 3.
Comparison of different privacy levels with normal distributions under Model 2.
Table 4.
Comparison of different privacy levels with t-distributions under Model 2.
Table 5.
Comparison of different privacy levels with normal distributions under Model 1.
Table 6.
Comparison of different privacy levels with t-distributions under Model 1.
4.2. Real Data Application
To demonstrate the performances of the outputs and of Algorithms 1 and 2, and compare them with the outputs and of the DP-thresholding and LDP-thresholding algorithms proposed by Wang and Xu [10], respectively, we use quadratic discriminant analysis (QDA) presented by Liang et al. [22]. We apply these estimators on the human gut microbiome dataset collected by Wu et al. [23], which contains 98 healthy individuals at the University of Pennsylvania. In fact, the bacterial community in the dataset was categorized into 87 genera, which appeared in at least one sample. We select bacterial genera that appeared in at least four samples. Then, according to the body mass index (BMI), we divide the dataset with 40 bacterial genera into a lean group (BMI < , ) and an obese group (BMI , ).
We randomly select 13 lean subjects and 7 obese subjects via the stratified sampling approach in order to constitute the testing set (roughly of the subjects in each group); the remaining subjects form the training set. Moreover, a two-sample t test is performed between the two groups for each bacterial genus in the training set. In the our analysis, and 40 are considered. The data are assumed to be normally distributed as , and the two groups are assumed to have the same covariance matrix but different means , for the obese group and for the lean group. Note that the parameters of the additive noise in Algorithms 1 and 2 are set as and , respectively. In addition, we set in Algorithms 1 and 2 as the tuning parameter, which is selected by cross-validation conducted on the real data.
In order to compare the advantage, the outputs and are used to replace in the following QDA score functions:
where is the proportion of group k subjects in the training set and is the within-group average vector in the training set. The classification rule is
We use the testing set to evaluate the estimation performance through the average number of misclassifications. Our result is based on 20 replications of the above procedure. Table 7 presents the average number of misclassifications for every output of the corresponding algorithms. It can be seen that the output of our Algorithm 1 performs better than the output of the DP-thresholding algorithm proposed by Wang and Xu [10]. Similarly, the output of Algorithm 2 is more effective than the output of the LDP-thresholding algorithm [10].
Table 7.
Comparison of different outputs of algorithms.
5. Discussion
In this paper, we study the problem of estimating the sparse covariance matrix under lower-bounded moment assumption while guaranteeing DP and LDP, and measure the error bounds by spectral and Frobenius norms, respectively. Furthermore, we conduct numerical experiments to support our theoretical analysis.
However, we do not derive the lower bound of the error estimation. This is possible to achieve, since there are many well-known technique methods that can be utilized, such as Fano’s lemma [24], Assuouad’s lemma [25] and Le Cam’s method [26]. Moreover, a noteworthy open problem is to consider the estimation in terms of expectation with the lower-bounded moment assumption while preserving DP and LDP. We leave these aspects as future work.
Author Contributions
H.L. conceived the study and wrote the original draft. J.W. conducted the theoretical analysis and edited the manuscript. All authors have read and agreed to the published version of the manuscript.
Funding
This paper is supported by the National Natural Science Foundation of China (No. 12171016).
Data Availability Statement
The data presented in this study are available within this paper.
Conflicts of Interest
The authors declare no conflict of interest.
Appendix A
In order to present Theorems 1 and 2, we introduce the following lemma:
Lemma A1.
Define event E as
and , where and M are given in Conditions (i)–(ii). Then, for any and some ,
Proof.
Since , it holds that
due to for in [27].
According to Condition (i), we have Therefore,
By applying the in Condition (ii), it follows that
On the other hand, Condition (i) implies that
Proof of Theorem 1.
(i) Considering that is a positive definite matrix, we have
Hence, it suffices to show that there exists the constant , such that
under event E.
Since is symmetric, this, along with the Gersgorin theorem, yields
where with and
We first estimate Clearly, it follows that
from the definition of .
The remaining work sets out to estimate . It is easy to see that
When event E occurs, we obtain
and
For , it holds that
Through the condition in Algorithm 1, we know that constant exists, such that and This, along with the definition of in (A9), leads to
On the other hand, we obtain
under event E.
Obviously, in (A16) is controlled by . For , (A15) and the assumption in Condition (i) imply is a bounded quantity. In addition, if event E occurs. Thus, in (A16) is 0 under event E. Therefore,
(ii) Similar to the discussions in (i), we derive that
Therefore, the remaining work is conducted to show that the constant exists, such that
under event E.
Obviously, it holds that
Proof of Theorem 2.
To show the conclusions (i)–(ii) of Theorem 2, we define the event as
and .
Based on Lemma 1 and for in [27], and using the similar proving process of Lemma A1, we know that for any and some ,
By considering the similar discussions used to prove Theorem 1, we deduce that constants exist, such that
and
under event . Furthermore, there exists , such that Hence, the above two inequalities reduce to
and
under event . This, along with (A20), enables us to reach the desired conclusions of Theorem 2. □
References
- Sifaou, H.; Kammoun, A.; Alouini, M.-S. High-dimensional linear discriminant analysis classifier for spiked covariance model. J. Mach. Learn. Res. 2020, 21, 4508–4531. [Google Scholar]
- Chaudhuri, S.; Drton, M.; Richardson, T. Estimation of a covariance matrix with zeros. Biometrika 2007, 94, 199–216. [Google Scholar] [CrossRef] [Scilit]
- Xu, K.; Hero, A. Dynamic stochastic blockmodels for time-evolving social networks. IEEE J. Sel. Topics Signal Process. 2014, 8, 552–562. [Google Scholar] [CrossRef] [Scilit]
- Cai, T.; Liu, W. Adaptive thresholding for sparse covariance matrix estimation. J. Amer. Statist. Assoc. 2011, 106, 672–684. [Google Scholar] [CrossRef] [Scilit]
- Belomestny, D.; Mathias, T.; Tsybakov, A. Sparse covariance matrix estimation in high-dimensional deconvolution. Bernoulli 2019, 25, 1901–1938. [Google Scholar] [CrossRef] [Scilit]
- Tang, J.; Korolova, A.; Bai, X.; Wang, X.; Wang, X. Privacy loss in Apple’s implementation of differential privacy on MacOS 10.12. arXiv 2017, arXiv:1709.02753. [Google Scholar]
- Ding, B.; Kulkarni, J.; Yekhanin, S. Collecting Telemetry Data Privately. In Proceedings of the Thirty-First Annual Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; pp. 3571–3580. [Google Scholar]
- Erlingsson, U.; Pihur, V.; Korolova, A. Randomized aggregatable privacy-preserving ordinal response. In Proceedings of the Twenty-First ACM Conference on Computer and Communications Security, Scottsdale, AZ, USA, 3–7 November 2014; pp. 1054–1067. [Google Scholar]
- Dwork, C.; McSherry, F.; Nissim, K.; Smith, A. Calibrating noise to sensitivity in private data analysis. In Proceedings of the Theory of Cryptography Conference, New York, NY, USA, 4–7 March 2006; pp. 265–284. [Google Scholar]
- Wang, D.; Xu, J. Differentially private high dimensional sparse covariance matrix estimation. Theoret. Comput. Sci. 2021, 865, 119–130. [Google Scholar] [CrossRef] [Scilit]
- Cai, T.; Wang, Y.; Zhang, L. The cost of privacy: Optimal rates of convergence for parameter estimation with differentially privacy. Ann. Statist. 2021, 49, 2825–2850. [Google Scholar] [CrossRef] [Scilit]
- Jiang, W.; Xie, C.; Zhang, Z. Wishart mechanism for differentially private principal components analysis. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, Phoenix, AZ, USA, 12–17 February 2016; pp. 1730–1736. [Google Scholar]
- Amin, K.; Dick, T.; Kulesza, A.; Munoz, A.; Vassilvitskii, S. Differentially private covariance estimation. In Proceedings of the Thirty-Third Conference on Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; pp. 14213–14222. [Google Scholar]
- Kamath, G.; Li, J.; Singhal, V.; Ullman, J. Privately learning high-dimensional distributions. In Proceedings of the Thirty-Second Annual Conference on Learning Theory, Phoenix, AZ, USA, 4–8 March 2019; pp. 1853–1902. [Google Scholar]
- Vershynin, R. Introduction to the Non-Asymptotic Analysis of Random Matrices; Cambridge University Press: Cambridge, UK, 2012; pp. 210–268. [Google Scholar]
- Dwork, C.; Kenthapadi, K.; McSherry, F.; Mironov, I.; Naor, M. Our data, ourselves: Privacy via distributed noise generation. In Proceedings of the Twenty-Fourth Annual International Conference on Theory and Applications of Cryptographic Techniques, St. Petersburg, Russia, 28 May–1 June 2006; pp. 486–503. [Google Scholar]
- Su, W.; Guo, X.; Zhang, H. Differentially private precision matrix estimation. Acta Math. Sin. 2020, 36, 1107–1124. [Google Scholar] [CrossRef] [Scilit]
- Dwork, C.; Roth, A. The algorithmic foundations of differential privacy. Found. Trends Theor. Comput. Sci. 2014, 9, 211–407. [Google Scholar] [CrossRef] [Scilit]
- Thorin, G. Generalizing those of M. riesz and hadamard with some applications. Comm. Sem. Math. Univ. Lund 1948, 9, 1–58. [Google Scholar]
- Kasiviswanathan, S.; Lee, H.; Nissim, K.; Raskhodnikova, S.; Smith, A. What can we learn privately? SIAM J. Comput. 2011, 40, 793–826. [Google Scholar] [CrossRef] [Scilit]
- Dwork, C.; Talwar, K.; Thakurta, A.; Zhang, L. Analyze gauss: Optimal bounds for privacy-preserving principal component analysis. In Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing, New York, NY, USA, 31 May–3 June 2014; pp. 11–20. [Google Scholar]
- Liang, W.; Wu, Y.; Chen, H. Sparse covariance matrix estimation for ultrahigh dimensional data. Stat 2022, 11, e479. [Google Scholar] [CrossRef] [Scilit]
- Wu, G.; Chen, J.; Hoffmann, C.; Bittinger, K.; Chen, Y.Y.; Keilbaugh, S.A.; Bewtra, M.; Knights, D.; Walters, W.A.; Knight, R.; et al. Linking Long-Term Dietary Patterns with Gut Microbial Enterotypes. Science 2011, 335, 105–108. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tsybakov, A. Introduction to Nonparametric Estimation; Springer: New York, NY, USA, 2009. [Google Scholar]
- Assouad, P. Deux remarques sur l’estimation. C. R. Acad. Sci. Paris Sér. 1983, 296, 1021–1024. [Google Scholar]
- Le Cam, L. Asymptotic Methods in Statistical Decision Theory; Springer: New York, NY, USA, 1986. [Google Scholar]
- Vershynin, R. High-Dimensional Probability: An Introduction with Applications in Data Science; Cambridge University Press: Cambridge, UK, 2018; pp. 672–684. [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. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).