\usepackage[margin=1in]{geometry}
\usepackage{blindtext}
\usepackage{hyperref}
\hypersetup{
	colorlinks=true,
	linkcolor=blue!70!black,
	citecolor=blue!70!black,
	urlcolor=blue!70!black
}

\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{parskip}
\usepackage{caption}
\usepackage{amsmath}
% \usepackage{todonotes}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{booktabs}
\usepackage{accents}
\usepackage{algorithm}
% \usepackage[lined,boxed,ruled,norelsize,algo2e,linesnumbered]{algorithm2e}
\usepackage{bbm}
\usepackage{bbold}
\usepackage{bm}
\usepackage{graphicx}
\graphicspath{{./figs/}}

\usepackage{cleveref}
\usepackage{thm-restate}
\usepackage{algorithm}
\usepackage{algpseudocode}

\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}{Lemma}[section]
\newtheorem{fact}{Fact}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{corollary}{Corollary}[section]
\newtheorem{proposition}{Proposition}[section]
\newtheorem{claim}{Claim}[section]
\newtheorem{problem}{Problem}[section]
\newtheorem{observation}{Observation}[section]
\newtheorem{conjecture}{Conjecture}[section]
\newtheorem{assumption}{Assumption}[section]
\newtheorem{remark}{Remark}[section]
%\newcommand{\norm3}[1]{\left||#1\||}

\newcommand\blfootnote[1]{
 \begingroup
 \renewcommand\thefootnote{}\footnote{#1}
 \addtocounter{footnote}{-1}
 \endgroup
 }

\newcommand{\defeq}{:=}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\vertiii}[1]{{\left\vert\kern-0.25ex\left\vert\kern-0.25ex\left\vert #1 
    \right\vert\kern-0.25ex\right\vert\kern-0.25ex\right\vert}}

\newcommand{\vperp}{V_{\perp}}
\newcommand{\norms}[1]{\lVert#1\rVert}
\newcommand{\normop}[1]{\left\lVert#1\right\rVert_{\textup{op}}}
\newcommand{\normf}[1]{\left\lVert#1\right\rVert_{\textup{F}}}
\newcommand{\normtr}[1]{\left\lVert#1\right\rVert_{\textup{tr}}}
\newcommand{\normsop}[1]{\lVert#1\rVert_{\textup{op}}}
\newcommand{\normsf}[1]{\lVert#1\rVert_{\textup{F}}}
\newcommand{\normstr}[1]{\lVert#1\rVert_{\textup{tr}}}
\newcommand{\inprod}[2]{\left\langle#1, #2\right\rangle}
\newcommand{\inprods}[2]{\langle#1, #2\rangle}
\newcommand{\eps}{\epsilon}
\newcommand{\lam}{\lambda}
\newcommand{\0}{\mathbb{0}}
\newcommand{\argmax}{\textup{argmax}}
\newcommand{\argmin}{\textup{argmin}} 
\newcommand{\iid}{\textup{i.i.d.\ }} 
\newcommand{\R}{\mathbb{R}}
\newcommand{\C}{\mathbb{C}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\bas}[1]{\begin{align*}#1\end{align*}}
\newcommand{\ba}[1]{\begin{align}#1\end{align}}
\newcommand{\bbb}[1]{\left[#1\right]}
\newcommand{\diag}[1]{\textbf{\textup{diag}}\left(#1\right)}
\newcommand{\half}{\frac{1}{2}}
\newcommand{\thalf}{\tfrac{1}{2}}
\newcommand{\bk}{\color{black}}
\newcommand{\rd}{\color{red}}
\newcommand{\1}{\mathbbm{1}}
\newcommand{\E}{\mathbb{E}}
\newcommand{\Var}{\textup{Var}}
\newcommand{\cov}{\textup{Cov}}
\newcommand{\Vol}{\textup{Vol}}
\newcommand{\Nor}{\mathcal{N}}
\newcommand{\smax}{\textup{smax}}
\newcommand{\smin}{\textup{smin}}
\newcommand{\opt}{\textup{OPT}}
\newcommand{\xset}{\mathcal{X}}
\newcommand{\yset}{\mathcal{Y}}
\newcommand{\zset}{\mathcal{Z}}
\newcommand{\set}{\mathcal{K}}
\newcommand{\ball}{\mathbb{B}}
\newcommand{\ma}{\mathbf{A}}
\newcommand{\mm}{\mathbf{M}}
\newcommand{\mw}{\mathbf{W}}
\newcommand{\mh}{\mathbf{H}}
\newcommand{\ai}{\ma_{i:}}
\newcommand{\aj}{\ma_{:j}}
\newcommand{\id}{\mathbf{I}}
\newcommand{\bb}[1]{\left(#1\right)}
\newcommand{\jac}{\mathbf{J}}
\newcommand{\dd}{\textup{d}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\V}{\mathbb{V}}
\newcommand{\tr}[1]
{\text{trace}\left(#1\right)}
\newcommand{\enfourerror}{\frac{\log\bb{\frac{1}{\delta}}}{\epsilon^{2}\delta^{2}}\bb{\frac{d\bb{\exp\bb{-2\eta\bb{\lambda_{1}-\lambda_{2}} + \eta^{2}n\bb{\lambda_{1}^{2}+\mathcal{M}}}} }{\eta} + \frac{e\eta^{2}n^{2}\mathcal{M}^{2}\bb{1+2\log\bb{d}}}{2n\bb{\lambda_{1}-\lambda_{2}} + \eta^{2}n^{2}\bb{\lambda_{1}^{2}-\lambda_{2}^{2}-\mathcal{M}^{2}}}} + C\delta}
\newcommand{\enthreeerror}{\frac{ d\exp\bb{-2\eta_{n}n\bb{\lambda_{1}-\lambda_{2}} + \eta_{n}^{2}n\bb{\lambda_{1}^{2}+\Mtwo^{2}}} + \frac{e\eta_{n}^{3}n\Mtwo^{4}\bb{1+2\log\bb{d}}}{2\bb{\lambda_{1}-\lambda_{2}} + \eta_{n}^{2}n\bb{\lambda_{1}^{2}-\lambda_{2}^{2}-\Mtwo^{2}}} }{4\delta^3 \log^{-1}(1/\delta) \ \epsilon^2  }+\tilde{O}\bb{\frac{\rd \Mtwo^{6}}{\epsilon^6 n^3(\lambda_1-\lambda_2)^6}}}
\usepackage{xcolor}
\definecolor{burntorange}{rgb}{0.8, 0.33, 0.0}
\newcommand{\syamantak}[1]{\textcolor{blue}{\textbf{syamantak:} #1}}
\newcommand{\shourya}[1]{\textcolor{purple}{\textbf{shourya:} #1}}
\newcommand{\tO}{\widetilde{O}}
\newcommand{\nnz}{\textup{nnz}}
\newcommand{\rank}{\textup{rank}}
% \newcommand{\diag}{\textup{diag}}
\newcommand{\Prox}{\textup{Prox}}
\newcommand{\Prob}{\mathbb{P}}
\newcommand{\Par}[1]{\left(#1\right)}
\newcommand{\Brack}[1]{\left[#1\right]}
\newcommand{\Brace}[1]{\left\{#1\right\}}
\newcommand{\Abs}[1]{\left|#1\right|}
\newcommand{\Pars}[1]{(#1)}
\newcommand{\Bracks}[1]{[#1]}
\newcommand{\Braces}[1]{\{#1\}}
\newcommand{\Abss}[1]{|#1|}
\newcommand{\Cov}{\textup{Cov}}
\newcommand{\oracle}{\mathcal{O}}
\newcommand{\alg}{\mathcal{A}}
\newcommand{\mproj}{\mathbf{P}}
\newcommand{\malpha}{\bm{\alpha}}
\newcommand{\tmm}{\widetilde{\mathbf{M}}}
\newcommand{\ttmm}{\widetilde{\widetilde{\mathbf{M}}}}
\newcommand{\mb}{\mathbf{B}}
\newcommand{\mg}{\mathbf{G}}
\newcommand{\my}{\mathbf{Y}}
\newcommand{\mv}{\mathbf{V}}
\newcommand{\mvp}{\mathbf{V}_{+}}
\newcommand{\mvm}{\mathbf{V}_{-}}
\newcommand{\msig}{\boldsymbol{\Sigma}}
\newcommand{\msigp}{\boldsymbol{\Sigma}_+}
\newcommand{\msigm}{\boldsymbol{\Sigma}_-}
\newcommand{\tu}{\widetilde{u}}
\newcommand{\tmsig}{\widetilde{\msig}}
\newcommand{\tmsigp}{\widetilde{\msig}_+}
\newcommand{\tmsigm}{\widetilde{\msig}_-}
\newcommand{\mlam}{\boldsymbol{\Lambda}}
\newcommand{\mlamp}{\boldsymbol{\Lambda}_+}
\newcommand{\mlamm}{\boldsymbol{\Lambda}_-}
\newcommand{\tmlam}{\widetilde{\mlam}}
\newcommand{\tmlamp}{\widetilde{\mlam}_+}
\newcommand{\tmlamm}{\widetilde{\mlam}_-}
\newcommand{\ms}{\mathbf{S}}
\newcommand{\msp}{\mathbf{S}_{+}}
\newcommand{\msm}{\mathbf{S}_{-}}
\newcommand{\tmsp}{\widetilde{\mathbf{S}_{+}}}
\newcommand{\tmsm}{\widetilde{\mathbf{S}_{-}}}
\newcommand{\ml}{\mathbf{L}}
\newcommand{\mlp}{\mathbf{L}_{+}}
\newcommand{\mlm}{\mathbf{L}_{-}}
\newcommand{\tmlp}{\widetilde{\mathbf{L}_{+}}}
\newcommand{\tmlm}{\widetilde{\mathbf{L}_{-}}}
\newcommand{\tms}{\widetilde{\ms}}
\newcommand{\tml}{\widetilde{\ml}}
\newcommand{\hml}{\widehat{\ml}}
\newcommand{\hms}{\widehat{\ms}}
\newcommand{\mwp}{\mathbf{W}_+}
\newcommand{\mwm}{\mathbf{W}_-}
\newcommand{\mmu}{\mathbf{U}}
\newcommand{\mr}{\mathbf{R}}
\newcommand{\mrp}{\mathbf{R}_{+}}
\newcommand{\mrm}{\mathbf{R}_{-}}
\newcommand{\mq}{\mathbf{Q}}
\newcommand{\mzero}{\mathbf{0}}
\newcommand{\Sym}{\mathbb{S}}
\newcommand{\PSD}{\Sym_{\succeq \mzero}}
\newcommand{\PD}{\Sym_{\succ \mzero}}
\DeclareMathOperator{\linspan}{span}
\newcommand{\mn}{\mathbf{N}}
\newcommand{\orepca}{\oracle_{\textup{ePCA}}}
\newcommand{\orcpca}{\oracle_{\textup{cPCA}}}
\newcommand{\oopca}{\oracle_{1\textup{PCA}}}
\newcommand{\gam}{\gamma}
\newcommand{\Gam}{\Gamma}
\newcommand{\BBPCA}{\mathsf{BlackBoxPCA}}
\newcommand{\codeStyle}[1]{{\bfseries #1} }
\newcommand{\codeInput}{\codeStyle{Input:}}	
\newcommand{\codeOutput}{\codeStyle{Output:}}	
\newcommand{\codeReturn}{\codeStyle{Return:}}	
\newcommand{\codeParameter}{\codeStyle{Parameter(s):}}	
\newcommand{\md}{\mathbf{D}}
\newcommand{\inner}{\inprod}
\newcommand{\tlam}{\tilde{\lam}}
\newcommand{\poly}{\textup{poly}}
\newcommand{\Prefix}{\mathsf{Prefix}}
\newcommand{\Residual}{\mathsf{Residual}}
\newcommand{\bDelta}{\overline{\Delta}}
\newcommand{\bGamma}{\overline{\Gamma}}
\newcommand{\ind}{\mathcal{I}}
\newcommand{\gapind}{\mathcal{G}}
\newcommand{\dist}{\mathcal{D}}
\newcommand{\calP}{\mathcal{P}}
\newcommand{\polylog}{\textup{polylog}}
\newcommand{\hmsig}{\widehat{\mathbf{\Sigma}}}
\newcommand{\Oja}{\mathsf{Oja}}
\newcommand{\nubar}{\overline{\mathcal{V}}}
\newcommand{\vp}{V_{\perp}}
\newcommand{\lambp}{\Lambda_{\perp}}
\newcommand{\indep}{\perp \!\!\! \perp}
\newcommand{\ojavarest}{\mathsf{OjaVarEst}}
\newcommand{\var}{\mathsf{Var}}
\newcommand{\voja}{v_\mathsf{oja}}
\newcommand{\roja}{r_\mathsf{oja}}
\newcommand{\troja}{\tilde{r}_\mathsf{oja}}
\newcommand{\vmain}{\tilde{v}}

\newcommand{\successboost}{\mathsf{SuccessBoost}}
\newcommand{\median}{\mathsf{Median}}
\newcommand{\Res}{\mathsf{Res}}
\newcommand{\sign}{\mathsf{sign}}
\newcommand{\Tr}{\mathsf{Tr}}
\newcommand{\normpq}[1]{\left| \!\left| \!\left| #1 \right| \!\right| \!\right|}
\newcommand{\Ezero}[1]{\Psi_{#1, 0}}
\newcommand{\Eone}[1]{\Psi_{#1, 1}}
\newcommand{\Etwo}[1]{\Psi_{#1, 2}}
\newcommand{\Ethree}[1]{\Psi_{#1, 3}}
\newcommand{\Efour}[1]{\Psi_{#1, 4}}
\newcommand{\Eonetwo}[1]{\Psi_{#1, 12}}

\newcommand{\Mone}{\mathcal{M}}
\newcommand{\Mtwo}{\mathcal{M}_{2}}
\newcommand{\Mfour}{\mathcal{M}_{4}}
\newcommand{\Nu}{\mathcal{V}}

\newcommand{\eigengap}{\lambda_{1}-\lambda_{2}}

\newcommand{\errorsmall}{e_{\textsf{small}}}
\newcommand{\bootstrap}{\mathsf{BootstrapOja}}