-
Notifications
You must be signed in to change notification settings - Fork 1
/
summary.tex
388 lines (294 loc) · 12.8 KB
/
summary.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
\documentclass[x11names,11pt,a4paper,openany]{book}
\usepackage{ctex}
%以下为所使用的宏包
\usepackage{ulem}%下划线
\usepackage{amsmath,amsfonts,amssymb,amsthm,amsbsy}%数学符号
\usepackage{bm}%数学符号粗体
\usepackage[dvipsnames]{xcolor}%颜色包
\usepackage{graphicx}%插入图片
\usepackage{booktabs}%三线表
%\usepackage{indentfirst}%首行缩进
\usepackage{tikz}%作图
\usetikzlibrary{shapes,arrows,chains}
\usepackage{appendix}%附录
\usepackage{array}%多行公式/数组
\usepackage{tabularx}%绘制定宽表格
\usepackage{makecell}%表格缩并
\usepackage{siunitx}%SI单位
\usepackage{mathrsfs}%数学字体
\usepackage{enumitem}%列表间距
\usepackage{multirow}%列表横向合并单元格
\usepackage{nameref}%交叉引用格式设置
\usepackage{float}%图片、表格位置排版
\usepackage{pict2e,keyval,fp,diagbox}%带有斜线的表格
\usepackage{fancyvrb,listings}%设置代码插入环境
\usepackage{minted}%代码环境设置
\usepackage{fontspec}%字体设置
\usepackage{color}%颜色包
\usepackage{extarrows}
\usepackage{titlesec}%标题格式设置
\usepackage{authblk}%titlepage作者信息
\usepackage{nicematrix}%更好的矩阵标定
\usepackage{fbox}%更多浮动体盒子
\usepackage{tkz-graph}%制图 graph
\usepackage{nomencl}%生成记号表
\makenomenclature % 编译命令 makeindex summary.nlo -s nomencl.ist -o summary.nls -t summary.nlg
\usepackage{makeidx}\makeindex %索引 编译命令 makeindex summary.idx
\usepackage{etoolbox}%记号表中的分组
\usepackage{hologo}%for xetex logo
%页边距设置
% \usepackage[left=0.5in,right=0.5in,top=0.7in,bottom=0.57in]{geometry}
% if book
\usepackage[twoside,
left=16mm, right=16mm, top=25mm, bottom=18mm,
bindingoffset=5mm, headsep=5mm, footskip=7mm]{geometry}
%段行设置
\linespread{1.4}%行距
\setlength{\parskip}{0.1\baselineskip}%段距
\setlength{\parindent}{2em}%缩进
%字体设置
\setmainfont{Times New Roman}
\newfontfamily\consolas{Consolas}
%其他环境、符号自定义设置
\newenvironment{point}{\raggedright$\Box $ \bfseries}{}%新环境point,用于标示重点内容
\newenvironment{rcode}{\raggedright$ \vartriangleright $ \lstinline|R.| \textbf{Code} \\}{}%新环境rcode,用于建立R语言命令段落
\renewenvironment{proof}{{\noindent$\square$\,\it Proof: }}{\hfill $\square$\par}% 证明环境回退到英文版 以proof开头
\newenvironment{algorithm}[1]{\vspace{12pt} \hrule\hrule \vspace{3pt} \noindent\textbf{\color[HTML]{E63F00}Algorithm } \,\textit{#1} \vspace{3pt} \hrule\vspace{6pt}
}{\vspace{6pt}\hrule\hrule \vspace{12pt}} % 算法伪代码格式环境
\newcolumntype{Y}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}X}%tabularx中的居中表格格式
\allowdisplaybreaks[2]%跨页公式
\newcommand{\independent}{\bot\!\!\!\bot} % 简易的“独立于”符号
%页眉页脚设置
\usepackage{fancyhdr} % 页眉页脚格式包
\fancypagestyle{TitlePage}{
\fancyhead{}
\fancyhead[LO,RE]{} % 位置 左中右LCR + 奇偶 OE
\fancyhead[RO,LE]{\textit{Compiled using \textnormal{\hologo{XeTeX}} engine.}}
\fancyhead[C]{}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\fancypagestyle{preContent}{
\fancyhead{}
\fancyhead[LO,RE]{Tuorui Peng} % 位置 左中右LCR + 奇偶 OE
\fancyhead[RO,LE]{\thepage}
\fancyhead[CO,CE]{目录}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0.5pt} % 页眉线粗细
\renewcommand{\footrulewidth}{0.5pt} % 页脚线粗细
}
\fancypagestyle{Main}{
\fancyhead{}
\fancyhead[LO]{Tuorui Peng}
\fancyhead[RE]{v1ncent19}
\fancyhead[RO,LE]{\thepage}
\fancyhead[CO]{\kaishu\leftmark}
\fancyhead[CE]{\kaishu\leftmark}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
}
\fancypagestyle{SectionPage}{
\fancyhead{}
\fancyhead[LO,RE]{Tuorui Peng}
\fancyhead[RO,LE]{\thepage}
\fancyhead[CO,CE]{}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
}
\fancypagestyle{postContent}{
\fancyhead{}
\fancyhead[LO,RE]{Tuorui Peng}
\fancyhead[RO,LE]{\thepage}
\fancyhead[C]{\kaishu\leftmark}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
}
%代码环境\lst设置
\definecolor{CodeBlue}{HTML}{268BD2}
\definecolor{CodeBlue2}{HTML}{0000CD}
\definecolor{CodeGreen}{HTML}{60A0B0}
\definecolor{CodeRed}{HTML}{CB4B16}
\definecolor{CodeYellow}{HTML}{B58900}
\definecolor{CodePurPle}{HTML}{D33682}
\definecolor{CodeGreen2}{HTML}{859900}
\lstset{
language=R,
basicstyle=\tt,%\fontspec{Consolas},
numbers=left, %设置行号位置
numberstyle=\tiny\color{black}, %设置行号大小
extendedchars=false, %解决代码跨页时,章节标题,页眉等汉字不显示的问题
frame=single,
breaklines,
tabsize=2,
xleftmargin=2em,xrightmargin=2em, aboveskip=1em,
stringstyle=\color{gray},
otherkeywords={0,1,2,3,4,5,6,7,8,9},
morekeywords={TRUE,FALSE},
deletekeywords={data,frame,length,as,character},
keywordstyle=\color{CodeBlue},
commentstyle=\color{CodeGreen},
emph={TRUE,FALSE,NULL,NAN,NaN,Inf,NA,\$,<-},emphstyle=\color{CodeBlue2} ,%逻辑符
emph={[2]in,for,if,else,ifelse,function,return,stopifnot,switch,stop,c},emphstyle=[2]\color{purple} ,%流程控制
emph={[3]0,1,2,3,4,5,6,7,8,9},emphstyle=[3]\color{CodeGreen} ,%数字
}
% numbers=left, %设置行号位置
% numberstyle=\tiny\color{black}, %设置行号大小
% keywordstyle=\color{black}, %设置关键字颜色
% stringstyle=\color{gray}, %设置字符串颜色
% commentstyle=\color{CodeGreen}, %设置注释颜色
% frame=single, %设置边框格式
% columns=fixed,
% escapeinside=``, %逃逸字符(1左面的键),用于显示中文
% %breaklines, %自动折行
% extendedchars=false, %解决代码跨页时,章节标题,页眉等汉字不显示的问题
% xleftmargin=2em,xrightmargin=2em, aboveskip=1em, %设置边距
% tabsize=4, %设置tab空格数
% showspaces=false, %不显示空格
% emph={TRUE,FALSE,NULL,NAN,NaN,Inf,NA,\$,<-},emphstyle=\color{CodeBlue2} ,%逻辑符
% emph={[2]in,for,if,else,ifelse,function,return,stopifnot,switch,stop,c},emphstyle=[2]\color{purple} ,%流程控制
% }
% tikz制图
% \tikzset{
% LabelStyle/.style = { draw, rectangle, rounded corners, fill = white},
% VertexStyle/.append style = { font = \bfseries, fill = white},
% EdgeStyle/.append style = {->, bend left} }
\usepackage[colorlinks,linkcolor=blue,anchorcolor=blue,citecolor=green]{hyperref}%超链接引用,最后插入以避免问题
% 节标题格式设置
\titleformat{\chapter}[block]{\centering\LARGE\bfseries}{Chapter. \Roman{chapter} }{1em}{}[]
\titleformat{\section}[block]{\Large\bfseries}{Section \arabic{chapter}.\arabic{section}}{1em}{}[]
\titleformat{\subsection}[block]{\large\bfseries}{\arabic{chapter}.\arabic{section}.\arabic{subsection}}{1em}{}[]
% 节标题、公式交叉引用格式设置
\renewcommand{\equationautorefname}{equation}%公式引用格式
\renewcommand{\figureautorefname}{figure}%图片引用格式
\renewcommand{\tableautorefname}{table}
\renewcommand{\chapterautorefname}{Chapter}%章节引用格式
\renewcommand{\sectionautorefname}{section}%章节引用格式
\renewcommand{\subsectionautorefname}{section}%章节引用格式
\renewcommand{\pageautorefname}{page}
% \titleformat{\paragraph}[block]{\small\bfseries}{[\arabic{paragraph}]}{1em}{}[]
% \\titleformat{\\chaptercommand}[shape]{format}{title-label}{sep}{before-title}[after-title]
\let\oldautoref\autoref
\renewcommand{\autoref}[1]{\oldautoref{#1}\,\textasciitilde\,\autopageref{#1}}%交叉引用格式,引用时显示页码。
% \begin{titlepage}
% \title{
% \settowidth{\unitlength}{\huge A Brief Summary of Statistics Minor Courses}
% \rule{\unitlength}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt}
% \rule{\unitlength}{0.4pt}\\begin{align}\baselineskip]
% \LARGE\textbf{A Brief Summary of Statistics Minor Courses}\\\Large\heiti 清华大学统计学辅修课程知识总结\\begin{align}0.3\baselineskip]
% \rule{\unitlength}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt}
% \rule{\unitlength}{1.6pt}\\begin{align}\baselineskip]
% }
% \author[*]{\scshape Tuorui Peng\thanks{E-mail: {[email protected]} | HomePage: {https://v1ncent19.github.io}}}
% \affil[*]{\small Department of Physics, Tsinghua University, Beijing, China}
% \affil[*]{\small Department of Statistics and Data Science, Northwestern University, Evanston, IL, USA}
% \end{titlepage}
% ==================================================================================================
% ==================================================================================================
% ==================================================================================================
% Document Begins
% ==================================================================================================
% ==================================================================================================
% Command to run to generate index:
% makeindex summary.idx
% Command to run to generate denotation:
% makeindex summary.nlo -s nomencl.ist -o summary.nls -t summary.nlg
\begin{document}
\begin{titlepage}
\thispagestyle{TitlePage}
\begin{center}
\vspace*{4cm}
{ \settowidth{\unitlength}{\Huge A Brief Summary of Statistics Minor Courses}
\rule{\unitlength}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt}
\rule{\unitlength}{0.4pt}\\[\baselineskip]
\huge\textbf{A Brief Summary of Statistics Minor Courses}\\\LARGE\heiti 清华大学统计学辅修课程知识总结\\[0.3\baselineskip]
\rule{\unitlength}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt}
\rule{\unitlength}{1.6pt}\\[\baselineskip]}
\vspace{1.5cm}
{ \large\scshape Tuorui Peng\\
\ttfamily\normalsize v1ncent19}
\vspace{1.5cm}
{ \normalshape\normalfont\small
Department of Physics, Tsinghua University, Beijing, China.\\
Department of Statistics and Data Science, Northwestern University, Evanston, IL, USA.}
\vspace{1.5cm}
\end{center}
\end{titlepage}
\newpage
\thispagestyle{empty}
\begin{titlepage}
\thispagestyle{TitlePage}
\begin{center}
\vspace*{4cm}
{ \settowidth{\unitlength}{\Huge A Brief Summary of Statistics Minor Courses}
\rule{\unitlength}{1.6pt}\vspace*{-\baselineskip}\vspace*{2pt}
\rule{\unitlength}{0.4pt}\\[\baselineskip]
\huge\textbf{A Brief Summary of Statistics Minor Courses}\\\LARGE\heiti 清华大学统计学辅修课程知识总结\\[0.3\baselineskip]
\rule{\unitlength}{0.4pt}\vspace*{-\baselineskip}\vspace{3.2pt}
\rule{\unitlength}{1.6pt}\\[\baselineskip]}
\vspace{1.5cm}
{ \large\scshape Tuorui Peng\footnote{E-mail: {[email protected]} \textbf{|} HomePage: {https://v1ncent19.github.io}}\\
\ttfamily\normalsize v1ncent19}
\vspace{1.5cm}
{ \normalshape\normalfont\small
$ ^1 $Department of Physics, Tsinghua University, Beijing, China.\\
$ ^1 $Department of Statistics and Data Science, Northwestern University, Evanston, IL, USA.}
\vspace{1.5cm}
\today
\end{center}
\end{titlepage}
\include{sections/前言}
\pagestyle{preContent}
\phantomsection
\addcontentsline{toc}{chapter}{目录}
\tableofcontents
\newpage
% =================================================
% Set up a few colours
\colorlet{lcfree}{Green3}
\colorlet{lcnorm}{Blue3}
\colorlet{lccong}{Red3}
% -------------------------------------------------
% Set up a new layer for the debugging marks, and make sure it is on
% top
\pgfdeclarelayer{marx}
\pgfsetlayers{main,marx}
% A macro for marking coordinates (specific to the coordinate naming
% scheme used here). Swap the following 2 definitions to deactivate
% marks.
\providecommand{\cmark}[2][]{%
\begin{pgfonlayer}{marx}
\node [nmark] at (c#2#1) {#2};
\end{pgfonlayer}{marx}
}
\providecommand{\cmark}[2][]{\relax}
% -------------------------------------------------
\pagestyle{SectionPage}
\include{sections/记号}
\pagestyle{Main}
\thispagestyle{SectionPage}
\include{sections/初等概率论}
\include{sections/统计推断}
\include{sections/线性回归分析}
\include{sections/多元统计分析}
\include{sections/统计计算与软件}
\include{sections/数据科学导论}
\include{sections/可靠性数据与生存分析}
\include{sections/生物统计学概论}
\include{sections/统计学习导论}
\include{sections/应用时间序列分析}
\include{sections/因果推断导论}
\include{sections/应用随机过程}
\include{sections/贝叶斯统计导论}
\include{sections/实验设计与分析}
\pagestyle{postContent}
\include{sections/ReferenceBook}
\include{sections/后记}
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{索引}
\printindex
\end{document}