

\def\CTeXPreproc{Created by ctex v0.2.13, don't edit!}
\documentclass[cjk,t,compress,12pt]{standalone}
%\documentclass{article}
%\usepackage{beamerarticle}
\usepackage{pstricks}
\usepackage{etex}
\usepackage{eso-pic,graphicx}
\usepackage{fancybox}
\usepackage{amsmath,amssymb}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage{CJK}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{hyperref}

\usetikzlibrary{arrows,decorations.pathreplacing}
\usetikzlibrary{shadows} % LATEX and plain TEX when using Tik Z


\usepgflibrary{arrows} % LATEX and plain TEX and pure pgf
\usetikzlibrary{arrows} % LATEX and plain TEX when using Tik Z
\usetikzlibrary{decorations}
\usetikzlibrary{arrows,shapes}

\usetikzlibrary{decorations.text}
\usetikzlibrary{positioning,fit,calc}

\usetikzlibrary{mindmap,backgrounds} % mind map

\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\definecolor{ublue}{rgb}{0.152,0.250,0.545}
\definecolor{ugreen}{rgb}{0,0.5,0}

\begin{document}
\begin{CJK}{UTF8}{you}


%%% outline
%-------------------------------------------------------------------------


\begin{tabular}{c|c}
	\multicolumn{1}{c|}{$x_i$} & c($x_i$) \\ \hline
	\multicolumn{1}{c|}{$x_1$} & 2        \\
	\multicolumn{1}{c|}{$x_2$} & 1        \\
	\multicolumn{1}{c|}{$x_3$} & 5        \\ \hline
	\multicolumn{2}{c}{$c(X)=8$}         
\end{tabular}


 \begin{tabular}{cccc}
\multicolumn{1}{c|}{$x_i$} & c($x_i$) & P($x_i$) & $c(x_i)\cdot$P($x_i$) \\ \hline
\multicolumn{1}{c|}{$x_1$} & 2        & 0.1      & 0.2                   \\
\multicolumn{1}{c|}{$x_2$} & 1        & 0.3      & 0.3                   \\
\multicolumn{1}{c|}{$x_3$} & 5        & 0.2      & 1.0                   \\ \hline
\multicolumn{4}{c}{$c(X)=0.2+0.3+1.0=1.5$}                                
\end{tabular}
 


%---------------------------------------------------------------------
\end{CJK}
\end{document}


