-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslii-solutions.tex
57 lines (50 loc) · 1.51 KB
/
eslii-solutions.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
\documentclass{article}
\usepackage{amsmath,amssymb, amsthm}
\usepackage{xltxtra,xunicode}
\usepackage{fontspec}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{bm}
\usepackage{verbatim}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{tikzscale}
\usepackage[backend=biber, style=authoryear]{biblatex}
\addbibresource{eslii-solutions.bib}
\title{Solutions of exercises in \\\textit{The Elements of Statistical Learning}}
\date{\today}
\author{Lin Ziyuan}
\newtheoremstyle{solution}% name
{}% Space above, empty = `usual value'
{}% Space below
{}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{}% Punctuation after thm head
{\newline}% Space after thm head: \newline = linebreak
{}% Thm head spec
\theoremstyle{solution}
\newtheorem{sol}{Solution}[section]
\renewcommand{\thefigure}{\thesection.\arabic{figure}}
\usepackage[figurewithin=section]{caption}
\DeclareMathOperator*{\argmin}{arg\,min\,}
\DeclareMathOperator*{\argmax}{arg\,max\,}
\DeclareMathOperator*{\st}{s.t.\ }
\DeclareMathOperator{\E}{E}
\DeclareMathOperator{\var}{Var}
\DeclareMathOperator{\cov}{Cov}
\DeclareMathOperator{\corr}{Corr}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\vect}{vec}
\newcommand{\Tr}[1]{\ensuremath{#1^{\mathrm{T}}}}
\DeclareMathOperator{\sign}{sign}
\begin{document}
\maketitle
\setcounter{section}{1}
\input{chapter02.tex}
\clearpage
\input{chapter03.tex}
\clearpage
\printbibliography
\end{document}