% -*- root: main.tex -*-
\section{Combining Sketches}
\label{sec:combining}
\subsection{Adding Sketches}

When assuming that the variables are independent, as in the TIDB model, it is a known result that 
\[
\varParam{X + Y} = \varParam{X} + \varParam{Y}.
\]
By \eqref{eq:sub-bounds-final} it immediately follows that adding $n$ base (base meaning a sketch that has not previously been added to another sketch) sketches results in the following variance:
\[
3n\left(\frac{\sqrt{\norm{\genV}_\infty}\left(|\pw|\right)}{\sqrt{\norm{\genV}_0\norm{\genV}_1} \epsilon^2} + \frac{1}{\epsilon^2}\right).
\]

\subsection{Multiplying Sketches}
There are various ways we might 'consider' the multiplication of sketches.  First, estimates might be multiplied, second, the sketches can be multiplied pointwise, taking then the estimate of the resultant sketch (this is the correct way), and finally we could consider an estimate to be the multiplication of corresponding buckets.  Stated formally the above variations are
\begin{align*}
&\est{1} = \sum_{\wVec \in \pw}\sCom{1}{\hashP{\wVec}}\polP{\wVec} \cdot \sCom{2}{\hashP{\wVec}}\polP{\wVec}\\
&\est{2} = \sum_{\wVec \in \pw }\left(\sCom{1}{\hashP{\wVec}} \cdot \sCom{2}{\hashP{\wVec}}\right)\polP{\wVec}\\
&\est{3} = \sum_{j \in \sketchCols}\sCom{1}{j} \cdot \sCom{2}{j}. 
\end{align*}

Calculating the expectation for $\est{1}$ for a product of two terms evaluates to
\begin{align*}
&\expect{\sum_{\wVec \in \pw}\sCom{1}{\hashP{\wVec}}\polP{\wVec} \cdot \sCom{2}{\hashP{\wVec}}\polP{\wVec}}\\
=& \expect{\sum_{\wVec \in \pw}\polP{\wVec}\polP{\wVec}\sum_{\substack{\wOne \in \pw \st\\																							\hashP{\wOne} = 																						\hashP{\wVec}}} \genV_1\paramBox{\wOne}\polP{\wOne} \sum_{\substack{\wTwo \in \pw \st\\																							\hashP{\wTwo} = 																						\hashP{\wVec}}}\genV_2\paramBox{\wTwo}\polP{\wTwo}}\\
=& \mathbb{E}\big[\sum_{\wVec \in \pw}\polP{\wVec}^2\left(\genV_1\paramBox{\wVec}\polP{\wVec} +\sum_{\substack{\wOne \in \pw \st\\
																			\wOne \neq \wVec,\\
																			\hashP{\wOne} = \hashP{\wVec}}}   \genV_1\paramBox{\wOne}\polP{\wOne} \right)\\
& \qquad \left(\genV_2\paramBox{\wVec}\polP{\wVec} +\sum_{\substack{\wTwo \in \pw \st\\
						\wTwo\neq \wVec,\\
						\hashP{\wTwo} = \hashP{\wVec}}} \genV_2\paramBox{\wTwo}\polP{\wTwo} \right)\big]\\
=& \mathbb{E}\big[\sum_{\wVec \in \pw}\polP{\wVec}^2\big(\gVP{1}{\wVec}\gVP{2}{\wVec}\polP{\wVec}^2 + \\
&\qquad \gVP{1}{\wVec}\polP{\wVec}\sum_{\substack{\wTwo \in \pw \st\\
										\hashP{\wTwo} = \hashP{\wVec},\\
										\wTwo \neq \wVec}}\gVP{2}{\wTwo}\polP{\wTwo} + \\
&\qquad \gVP{2}{\wVec}\polP{\wVec}\sum_{\substack{\wOne \in \pw \st\\
										\hashP{\wOne} = \hashP{\wVec},\\
										\wOne\neq \wVec}}\gVP{1}{\wVecPrime}\polP{\wVecPrime} + \\
&\qquad \sum_{\substack{\wOne \in \pw \st\\
					\hashP{\wOne} = \hashP{\wVec},\\
					\wOne\neq \wVec}}\gVP{1}{\wOne}\polP{\wOne}\sum_{\substack{\wTwo \in \pw \st\\
																	\hashP{\wTwo} = \hashP{\wVec},\\
																	\wTwo \neq \wVec}}\gVP{2}{\wTwo}\polP{\wTwo}\big)\big]\\%\polP{\wVec}\genV_1\paramBox{\wVec}\polP{\wVec}\genV_2\paramBox{\wVec}\polP{\wVec}}\\
=& \sum_{\wVec \in \pw}\left(\genV_1\paramBox{\wVec}\genV_2\paramBox{\wVec} + \sum_{\substack{\wOne \in \pw \st \\
													\wOne \neq \wVec}}\gVP{1}{\wOne}\gVP{2}{\wOne}\right).
\end{align*}
This result for three sketches in the product is
\begin{align*}
&\sum_{\wVec \in \pw}\gVP{1}{\wVec}\gVP{2}{\wVec}\gVP{3}{\wVec} + \gVP{1}{\wVec}\sum_{\substack{\wTwo \in \pw \st \\
																			\hashP{\wTwo} = \hashP{\wVec}\\
																			\wTwo \neq \wVec}} \gVP{2}{\wTwo}\gVP{3}{\wTwo}\\
&\qquad +\gVP{2}{\wVec}\sum_{\substack{\wOne\in \pw \st \\																							\hashP{\wOne} = \hashP{\wVec}\\
						\wOne \neq \wVec}} \gVP{1}{\wOne}\gVP{3}{\wOne}\\
&\qquad + \gVP{3}{\wVec}\sum_{\substack{\wOne'\in \pw \st \\																							\hashP{\wOne} = \hashP{\wVec}\\
						\wOne \neq \wVec}} \gVP{1}{\wOne}\gVP{2}{\wOne}.
\end{align*}
In expectation $\est{2}$ results in 
\begin{align*}
&\expect{\sum_{\wVec \in \pw }\left(\sCom{1}{\hashP{\wVec}} \cdot \sCom{2}{\hashP{\wVec}}\right)\polP{\wVec}}\\
= &\expect{\sum_{\wVec \in \pw}\left(\sum_{\substack{\wVecPrime \in \pw \st\\
										\hashP{\wVecPrime} = \hashP{\wVec}}} \genV_1\paramBox{\wVecPrime}\polP{\wVecPrime}\sum_{\substack{\wVecPrime \in \pw \st\\
										\hashP{\wVecPrime} = \hashP{\wVec}}}\genV_2\paramBox{\wVecPrime}\polP{\wVecPrime}\right)\polP{\wVec}}\\
= &\mathbb{E}\big[\sum_{\wVec \in \pw}\polP{\wVec}\left(\sum_{\substack{\wVecPrime \in \pw \st\\ \hashP{\wVecPrime} = \hashP{\wVec}\\\wVecPrime \neq \wVec}}\genV_1\paramBox{\wVecPrime}\polP{\wVecPrime} + \genV_1\paramBox{\wVec}\polP{\wVec}\right)\\
&\qquad\left(\sum_{\substack{\wVecPrime \in \pw \st\\ \hashP{\wVecPrime} = \hashP{\wVec}\\\wVecPrime \neq \wVec}}\genV_2\paramBox{\wVecPrime}\polP{\wVecPrime} + \genV_2\paramBox{\wVec}\polP{\wVec}\right)\big]\\
= &\expect{\sum_{\wVec \in \pw}\polP{\wVec}\genV_1\paramBox{\wVec}\polP{\wVec}\genV_2\paramBox{\wVec}\polP{\wVec}}\\
= & 0.
\end{align*}
Note that with an odd number of sketches being multiplied, such as 3, we get the same as for three sketches in $\est{1}$,
\begin{align*}
&\sum_{\wVec \in \pw}\gVP{1}{\wVec}\gVP{2}{\wVec}\gVP{3}{\wVec} + \gVP{1}{\wVec}\sum_{\substack{\wTwo \in \pw \st \\
																			\hashP{\wTwo} = \hashP{\wVec}\\
																			\wTwo \neq \wVec}} \gVP{2}{\wTwo}\gVP{3}{\wTwo}\\
&\qquad +\gVP{2}{\wVec}\sum_{\substack{\wOne\in \pw \st \\																							\hashP{\wOne} = \hashP{\wVec}\\
						\wOne \neq \wVec}} \gVP{1}{\wOne}\gVP{3}{\wOne}\\
&\qquad + \gVP{3}{\wVec}\sum_{\substack{\wOne'\in \pw \st \\																							\hashP{\wOne} = \hashP{\wVec}\\
						\wOne \neq \wVec}} \gVP{1}{\wOne}\gVP{2}{\wOne}.
\end{align*}
The even case can be reduced to the odd case by including the one's vector as an operand in the product, whose sketch is simply $\gIJ = \sum_{\wVec \in \pw}\polP{\wVec}$.  The expectation then works out to
\begin{align*}
&\sum_{\wVec \in \pw}\gVP{1}{\wVec}\gVP{2}{\wVec} + \gVP{1}{\wVec}\sum_{\substack{\wTwo \in \pw \st \\ \wTwo \neq \wVec}}\gVP{2}{\wTwo} + \\
&\qquad\gVP{2}{\wVec}\sum_{\substack{\wOne \in \pw \st\\\wOne \neq \wVec}}\gVP{1}{\wOne} + \sum_{\substack{\wOne \in \pw \st\\\wOne \neq \wVec}}\gVP{1}{\wOne}\gVP{2}{\wOne}.
\end{align*}
For $\est{3}$, multiplying two sketches yields
\begin{align}
&\expect{\sum_{j \in \sketchCols}\sCom{1}{j} \cdot \sCom{2}{j}} \nonumber\\
=&\expect{\sum_{j \in \sketchCols}\left(\sum_{\substack{\wOne \in \pw \st\\\hashP{\wOne} = j}}\gVP{1}{\wOne}\polP{\wOne}\cdot \sum_{\substack{\wTwo \in \pw \st\\\hashP{\wTwo} = j}}\gVP{2}{\wTwo}\polP{\wTwo}\right)} \nonumber\\
=&\mathbb{E}\big[\sum_{j \in \sketchCols}\sum_{\substack{\wOne, \wTwo \in \pw \st\\\hashP{\wOne} = j\\\wOne = \wTwo}}\gVP{1}{\wOne}\gVP{2}{\wOne}\polP{\wOne}\polP{\wOne} + \nonumber\\
&\qquad \gVP{1}{\wOne}\polP{\wOne}\sum_{\substack{\wOne, \wTwo \in \pw \st\\\hashP{\wOne} = j\\\wOne \neq \wTwo}}\gVP{2}{\wTwo}\polP{\wTwo}\big] \nonumber\\
=&\expect{\sum_{\wOne \in \pw}\gVP{1}{\wOne}\gVP{2}{\wOne}} \nonumber \\
=&\sum_{\wOne \in \pw}\gVP{1}{\wOne}\gVP{2}{\wOne}\label{eq:two-sk-prod}
\end{align}
Following the reversal of the pattern of $\est{2}$, an odd number of sketches would produce an expectation of $0$, since each product in the sum has an operand whose expectation evaluates to $0$, as seen in the following, 
\begin{align*}
&\expect{\sum_{\wVec \in \pw}\gVP{1}{\wVec}\polP{\wVec} \cdot \sum_{\wVecPrime \in \pw}\gVP{2}{\wVecPrime}\polP{\wVecPrime}\cdot\sum_{\wVec'' \in \pw}\gVP{3}{\wVec''}\polP{\wVec''}}\\
= &\mathbb{E}\big[\sum_{\wVec \in \pw}\gVP{1}{\wVec}\polP{\wVec} \left(\gVP{2}{\wVec}\polP{\wVec} + \sum_{\substack{\wVecPrime \in \pw \st\\\wVecPrime \neq \wVec}}\gVP{2}{\wVecPrime}\polP{\wVecPrime}\right)\\
&\qquad \left(\gVP{3}{\wVec}\polP{\wVec} + \sum_{\substack{\wVecPrime' \in \pw \st\\\wVecPrime' \neq \wVec}}\gVP{3}{\wVecPrime'}\polP{\wVecPrime'}\right)\big]\\
= &\mathbb{E}\big[\sum_{\w \in \pw}\gVP{1}{\w}\polP{\w}\gVP{2}{\w}\polP{\w}\gVP{3}{\w}\polP{\w} + \\
&\qquad \gVP{1}{\w}\polP{\w}\gVP{2}{\w}\polP{\w}\sum_{\substack{\w'' \in \pw\st\\\w''\neq\w}}\gVP{3}{\w''}\polP{\w''} + \\
&\qquad\gVP{1}{\w}\polP{\w}\gVP{3}{\w}\polP{\w}\sum_{\substack{\wVecPrime \in \pw\st\\\wVecPrime\neq\w\\}}\gVP{2}{\wVecPrime}\polP{\wVecPrime} + \\
&\qquad \gVP{1}{\w}\polP{\w}\sum_{\substack{\wVecPrime \in \pw\st\\\wVecPrime\neq\w\\}}\gVP{2}{\wVecPrime}\polP{\wVecPrime}\sum_{\substack{\w'' \in \pw\st\\\w''\neq\w}}\gVP{3}{\w''}\polP{\w''}\big] \\
= & 0.
\end{align*}

The case for an odd number of sketches can likewise be reduced to the even case as in $\est{2}$.  The expectation, albeit, does not yield the ground truth,
\begin{align*}
&\expect{\sum_{j \in \sketchCols}\sCom{1}{j}\sCom{2}{j}\sCom{3}{j}\gIJ}\\
&= \sum_{j \in \sketchCols}\sum_{\substack{\wOne \in \pw \st\\
								\hashP{\wOne} = j}}\gVP{1}{\wOne}\gVP{2}{\wOne}\gVP{3}{\wOne} \\
&\qquad + \gVP{1}{\wOne}\gVP{3}{\wOne}\sum_{\substack{\wTwo \in \pw \st \\
			\hashP{\wTwo} = j,\\
			\wTwo \neq \wOne}}\gVP{2}{\wTwo}\\
&\qquad + \gVP{1}{\wOne}\gVP{2}{\wOne}\sum_{\substack{\wThree \in \pw \st\\
																				\hashP{\wThree} = j,\\
																				\wThree \neq \wOne}}\gVP{3}{\wThree} \\
&\qquad + \gVP{1}{\wOne}\sum_{\substack{\wTwo \in \pw \st\\
							\hashP{\wTwo} = j,\\
							\wTwo \neq \wOne}}\gVP{2}{\wTwo}\gVP{3}{\wTwo}.
\end{align*}
We desire an expectation which yields the ground truth.  Thus we seek to find sketch products whose expectation computes to the extraneous terms above in order to cancel them out.

One potential work around would be to store additional sketches with independent $\pol$ functions.  For the first unwanted term, assuming independent $\pol$ functions between the $\mathcal{S}_1, \mathcal{S}_2$ and $\mathcal{S}_3, \mathcal{S}_4$ pairs allows us to use linearity of expectations resulting in

\begin{align*}
&\expect{\sum_{j \in \sketchCols}\sCom{1}{j}\sCom{2}{j}\sCom{3}{j}\sCom{4}{j}}\\
%&= \expect{\sum_{j \in \sketchCols}\sCom{1}{j}\sCom{2}{j}}\expect{\sum_{j \in \sketchCols}\sCom{3}{j}\sCom{4}{j}}\\
&= \sum_{j \in \sketchCols}\expect{\sum_{\substack{\wOne, \wTwo,\\ \wThree, \wFour \in \pw \st\\\hashP{\wOne} =\hashP{\wTwo}\\=\hashP{\wThree} = \hashP{\wFour}}}\gVP{1}{\wOne}\polI{1}{\wOne}\gVP{2}{\wTwo}\polI{1}{\wTwo}\gVP{3}{\wThree}\polI{2}{\wThree}\gVP{4}{\wFour}\polI{2}{\wFour}}\\ 
&=\sum_{j \in \sketchCols}\expect{\sum_{\substack{\wOne, \wTwo \in \pw \st \\ \hashP{\wOne} = \hashP{\wTwo}}}\gVP{1}{\wOne}\polI{1}{\wOne}\gVP{2}{\wTwo}\polI{1}{\wTwo}}\\
&\qquad\cdot\expect{\sum_{\substack{\wThree, \wFour \in \pw \st \\ \hashP{\wThree} = \hashP{\wFour}}}\gVP{3}{\wThree}\polI{2}{\wThree}\gVP{4}{\wFour}\polI{2}{\wFour}}
\end{align*}
which reduces by \eqref{eq:two-sk-prod} to
\begin{equation*}
\sum_{\wOne, \wTwo \in \pw}\gVP{1}{\wOne}\gVP{2}{\wOne}\cdot \sum_{\wThree, \wFour \in \pw}\gVP{3}{\wThree}\gVP{4}{\wFour}.
\end{equation*}


To compute variance of the above product, the independence of $\pol$ functions can be exploited as follows:
\begin{align}
&\varParam{\sum_{j \in \sketchCols}\sCom{1}{j}\sCom{2}{j}\sCom{3}{j}\sCom{4}{j}}\nonumber\\
&= \varParam{\sum_{j \in \sketchCols}\sum_{\substack{\wOne, \wTwo,\\ \wThree, \wFour \in \pw \st\\\hashP{\wOne} =\hashP{\wTwo}\\=\hashP{\wThree} = \hashP{\wFour}}}\gVP{1}{\wOne}\polI{1}{\wOne}\gVP{2}{\wTwo}\polI{1}{\wTwo}\gVP{3}{\wThree}\polI{2}{\wThree}\gVP{4}{\wFour}\polI{2}{\wFour}}\nonumber \\ 
&= \sum_{j \in \sketchCols}\expect{\sum_{\substack{\wOne, \wTwo,\\ \wThree, \wFour \in \pw \st\\\hashP{\wOne} =\hashP{\wTwo}\\=\hashP{\wThree} = \hashP{\wFour}}}\gVP{1}{\wOne}\polI{1}{\wOne}\gVP{2}{\wTwo}\polI{1}{\wTwo}\gVP{3}{\wThree}\polI{2}{\wThree}\gVP{4}{\wFour}\polI{2}{\wFour}}^2 \nonumber \\
&\qquad -  \left(\sum_{\wOne, \wTwo \in \pw}\gVP{1}{\wOne}\gVP{2}{\wOne}\cdot \sum_{\wThree, \wFour \in \pw}\gVP{3}{\wThree}\gVP{4}{\wFour}\right)^2\nonumber \\
&=\sum_{j \in \sketchCols}\expect{\sum_{\substack{\wOne, \wTwo \in \pw \st \\ \hashP{\wOne} = \hashP{\wTwo}}}\gVP{1}{\wOne}\polI{1}{\wOne}\gVP{2}{\wTwo}\polI{1}{\wTwo}^2}\nonumber\\
&\qquad\cdot\expect{\sum_{\substack{\wThree, \wFour \in \pw \st \\ \hashP{\wThree} = \hashP{\wFour}}}\gVP{3}{\wThree}\polI{2}{\wThree}\gVP{4}{\wFour}\polI{2}{\wFour}^2} \nonumber \\
&~\qquad -  \left(\sum_{\wOne, \wTwo \in \pw}\gVP{1}{\wOne}\gVP{2}{\wOne}\cdot \sum_{\wThree, \wFour \in \pw}\gVP{3}{\wThree}\gVP{4}{\wFour}\right)^2\nonumber.
\end{align}

Expanding the first term, we have
\begin{align}
&\sum_{j \in \sketchCols}\expect{\sum_{\substack{\wOne, \wTwo \in \pw \st \\ \hashP{\wOne} = \hashP{\wTwo}}}\gVP{1}{\wOne}\polI{1}{\wOne}\gVP{1}{\wOne'}\polI{1}{\wOne'}\gVP{2}{\wTwo}\polI{1}{\wTwo}\gVP{2}{\wTwo'}\polI{1}{\wTwo'}}\nonumber \\
&= \sum_{\wOne \in \pw}\gVP{1}{\wOne}^2\gVP{2}{\wOne}^2 +\sum_{\substack{\wOne, \wTwo \in \pw \st\\ \wOne \neq \wTwo}}\gVP{1}{\wOne}^2\gVP{2}{\wTwo}^2 + \nonumber \\
&\qquad  2 \cdot \left(\sum_{\substack{\wOne, \wTwo \in \pw \st\\ \wOne \neq \wTwo}}\gVP{1}{\wOne}\gVP{2}{\wOne}\gVP{1}{\wTwo}\gVP{2}{\wTwo}\right). \nonumber
\end{align}
The second term expands analogously, leaving the product of the two expansions minus the expectation squared term.

The expectation and variance calculations  for the remaining additional terms can be analogously found.  
\startOld{Evaluating Estimate 2}
\newline For $\est{2}$, this would result in
\begin{align*}
&\expect{\sum_{\wVec \in \pw}\polI{1}{\wVec}\sum_{\substack{\wOne, \wTwo, \wThree \in \pw \st\\
									\hashP{\wVec} = \hashP{\wOne} =\\ \hashP{\wTwo} = \hashP{\wThree}}}\gVP{1}{\wOne}\polI{1}{\wOne}\gVP{2}{\wTwo}\polI{2}{\wTwo}\gVP{3}{\wThree}\polI{2}{\wThree}}\\
&= \mathbb{E}\big[\sum_{\wVec \in \pw}\polP{\wVec}\left(\gVP{1}{\wVec}\polI{1}{\wVec} + \sum_{\substack{\wOne \in \pw \st\\
															\hashP{\wOne} = \hashP{\wVec},\\
															\wOne \neq \wVec}}\gVP{1}{\wOne}\polI{1}{\wOne}\right)\\
&\qquad\left(\sum_{\substack{\wTwo \in \pw \st \\ 
			\hashP{\wTwo} = \hashP{\wVec}}}\gVP{2}{\wTwo}\gVP{3}{\wTwo}\polI{2}{\wTwo}^2\right)\big]\\
&= \sum_{\wVec \in \pw}\gVP{1}{\wVec}\sum_{\wTwo \in \pw}\gVP{2}{\wTwo}\gVP{3}{\wTwo}
\end{align*}
\finOld
\startOld{Old Content}
For the case of multiplication, when assumming independent variables, it is a known result that
\[
\varParam{X \cdot Y} = \expect{X^2}\expect{Y^2} - (\expect{X})^2 (\expect{Y})^2.
\]
It is necessary then to calculate the expectation of the square of the sum of estimates.  Assuming discreet variables the expectation of the square of a random variable is simply the sum of its weighted squares.  This yields
\begin{align}
&\expect{\left(\sum_{\wVec \in \pw}\sketchJParam{\hashP{\wVec}}\cdot \polP{\wVec}\right)^2}\label{eq:rand-sq}\\
=& \sum_{\wVec \in \pw}\expect{\left(\sketchJParam{\hashP{\wVec}}\cdot\polP{\wVec}\right)^2}\label{eq:rand-sq-ex-push}\\
=& \sum_{\wVec \in \pw}\expect{\left(\sum_{\substack{\wVecPrime \in \pw \st \\
									\hashP{\wVecPrime} = \hashP{\wVec}}} \genVParam{\wVecPrime}\polP{\wVecPrime}\polP{\wVec}\right)^2}\label{eq:rand-sq-equiv}\\
=& \sum_{\wVec \in \pw}\expect{\left(\genVParam{\wVec}^2\polP{\wVec}^2 + \sum_{\substack{\wVecPrime \in \pw \st \\
									\hashP{\wVecPrime} = \hashP{\wVec},
									\wVecPrime \neq \wVec}} \genVParam{\wVecPrime}\polP{\wVecPrime}\polP{\wVec}\right)^2}\label{eq:rand-sq-assoc}\\
=& \sum_{\wVec \in \pw}\expect{\genVParam{\wVec}^2}\label{eq:rand-sq-reduce}\\
=& \sum_{\wVec \in \pw}\genVParam{\wVec}^2\label{eq:rand-sq-final}.
\end{align}

\begin{Justification}
\hfill
	\begin{itemize}
		\item Starting out with \eqref{eq:rand-sq} since we need to know the expectation of the square of the sum of estimates.
		\item \eqref{eq:rand-sq-ex-push} is the sum of weighted squares, or alternatively, pushes the expectation inside the summation by linearity of expectation.
		\item \eqref{eq:rand-sq-equiv} substitutes the definition of a sketch bucket.
		\item \eqref{eq:rand-sq-assoc} uses associativity to rearrange the operands of the sum.
		\item \eqref{eq:rand-sq-reduce} reduces the second term of \eqref{eq:rand-sq-assoc} to $0$ by the property of uniform distribution of $\pol$.
		\item \eqref{eq:rand-sq-final} is obtained by the fact that the expectation of $\genVParam{\wVec}$ is simply itself.
	\end{itemize}
\end{Justification}
\begin{Assumption}
\hfill
	\begin{itemize}\item Uniform distribution of both $\hash$ and $\pol$.\end{itemize}
\end{Assumption}
It then follows that the variance corresponding to the muliplication of two base sketches is
\begin{align}
&\sum_{\wVec \in \pw}\genV_1\paramBox{\wVec}^2\sum_{\wVec \in \pw}\genV_2\paramBox{\wVec}^2 - \left(\sum_{\wVec \in \pw} \genV_1\paramBox{\wVec}\right)^2\left(\sum_{\wVec \in \pw} \genV_2\paramBox{\wVec}\right)^2\\
=&\norm{\genV_1}_2^2\cdot\norm{\genV_2}_2^2 - \norm{\genV_1}_1^2\cdot\norm{\genV_2}_1^2.
\end{align}
\AH{I don't think this equation makes sense.  Where am I missing it?}
The subscript notation for $\genV$ is used to denote sketch identity.  Substituting upper bounds obtained for the L1 norm squared from \eqref{eq:norm1-sq-cauchy} results in 
\[
\norm{\genV_1}_2^2\cdot\norm{\genV_2}_2^2 - \left(|\pw|\right)\norm{\genV_1}_2^2 \cdot \left(|\pw|\right)\norm{\genV_2}_2^2.
\]
\finOld