8
8
< meta name ="generator " content ="slidify " />
9
9
< meta name ="apple-mobile-web-app-capable " content ="yes ">
10
10
< meta http-equiv ="X-UA-Compatible " content ="chrome=1 ">
11
- < link rel ="stylesheet " href ="../../libraries /frameworks/io2012/css/default.css " media ="all " >
12
- < link rel ="stylesheet " href ="../../libraries /frameworks/io2012/phone.css "
11
+ < link rel ="stylesheet " href ="../../librariesNew /frameworks/io2012/css/default.css " media ="all " >
12
+ < link rel ="stylesheet " href ="../../librariesNew /frameworks/io2012/css /phone.css "
13
13
media ="only screen and (max-device-width: 480px) " >
14
- < link rel ="stylesheet " href ="../../libraries/frameworks/io2012/css/slidify.css " >
15
- < link rel ="stylesheet " href ="../../libraries/highlighters/highlight.js/css/tomorrow.css " />
16
- < base target ="_blank "> <!-- This amazingness opens all links in a new tab. -->
17
- < script data-main ="../../libraries/frameworks/io2012/js/slides "
18
- src ="../../libraries/frameworks/io2012/js/require-1.0.8.min.js ">
14
+ < link rel ="stylesheet " href ="../../librariesNew/frameworks/io2012/css/slidify.css " >
15
+ < link rel ="stylesheet " href ="../../librariesNew/highlighters/highlight.js/css/tomorrow.css " />
16
+ < base target ="_blank "> <!-- This amazingness opens all links in a new tab. -->
17
+
18
+ <!-- Grab CDN jQuery, fall back to local if offline -->
19
+ < script src ="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js "> </ script >
20
+ < script > window . jQuery || document . write ( '<script src="../../librariesNew/widgets/quiz/js/jquery.js"><\/script>' ) </ script >
21
+ < script data-main ="../../librariesNew/frameworks/io2012/js/slides "
22
+ src ="../../librariesNew/frameworks/io2012/js/require-1.0.8.min.js ">
19
23
</ script >
20
24
21
- < link rel ="stylesheet " href = "../../assets/css/custom.css ">
22
- < link rel ="stylesheet " href = "../../assets/css/custom.css.BACKUP.546.css ">
23
- < link rel ="stylesheet " href = "../../assets/css/custom.css.BASE.546.css ">
24
- < link rel ="stylesheet " href = "../../assets/css/custom.css.LOCAL.546.css ">
25
- < link rel ="stylesheet " href = "../../assets/css/custom.css.orig ">
26
- < link rel ="stylesheet " href = "../../assets/css/custom.css.REMOTE.546.css ">
27
- < link rel ="stylesheet " href = "../../assets/css/ribbons.css ">
25
+
28
26
29
27
</ head >
30
28
< body style ="opacity: 0 ">
31
29
< slides class ="layout-widescreen ">
32
30
33
31
<!-- LOGO SLIDE -->
34
- <!-- END LOGO SLIDE -->
32
+ < slide class ="title-slide segue nobackground ">
33
+ < aside class ="gdbar ">
34
+ < img src ="../../assetsNew/img/bloomberg_shield.png ">
35
+ </ aside >
36
+ < hgroup class ="auto-fadein ">
37
+ < h1 > Some basic notation and background</ h1 >
38
+ < h2 > Regression</ h2 >
39
+ < p > Brian Caffo, PhD< br /> Johns Hopkins Bloomberg School of Public Health</ p >
40
+ </ hgroup >
41
+ < article > </ article >
42
+ </ slide >
35
43
36
44
37
- <!-- TITLE SLIDE -->
38
- <!-- Should I move this to a Local Layout File? -->
39
- < slide class ="title-slide segue nobackground ">
40
- < aside class ="gdbar ">
41
- < img src ="../../assets/img/bloomberg_shield.png ">
42
- </ aside >
43
- < hgroup class ="auto-fadein ">
44
- < h1 > Some basic notation and background</ h1 >
45
- < h2 > Regression</ h2 >
46
- < p > Brian Caffo, PhD< br /> Johns Hopkins Bloomberg School of Public Health</ p >
47
- </ hgroup >
48
- </ slide >
49
-
50
45
<!-- SLIDES -->
51
- < slide class ="" id ="slide-1 " style ="background:; ">
46
+ < slide class ="" id ="slide-1 " style ="background:; ">
52
47
< hgroup >
53
48
< h2 > Some basic definitions</ h2 >
54
49
</ hgroup >
55
- < article >
50
+ < article data-timings ="" >
56
51
< ul >
57
52
< li > In this module, we'll cover some basic definitions and notation used throughout the class.</ li >
58
53
< li > We will try to minimize the amount of mathematics required for this class.</ li >
@@ -63,11 +58,11 @@ <h2>Some basic definitions</h2>
63
58
<!-- Presenter Notes -->
64
59
</ slide >
65
60
66
- < slide class ="" id ="slide-2 " style ="background:; ">
61
+ < slide class ="" id ="slide-2 " style ="background:; ">
67
62
< hgroup >
68
63
< h2 > Notation for data</ h2 >
69
64
</ hgroup >
70
- < article >
65
+ < article data-timings ="" >
71
66
< ul >
72
67
< li > We write \(X_1, X_2, \ldots, X_n\) to describe \(n\) data points.</ li >
73
68
< li > As an example, consider the data set \(\{1, 2, 5\}\) then
@@ -78,24 +73,17 @@ <h2>Notation for data</h2>
78
73
< li > We often use a different letter than \(X\), such as \(Y_1, \ldots , Y_n\).</ li >
79
74
< li > We will typically use Greek letters for things we don't know.
80
75
Such as, \(\mu\) is a mean that we'd like to estimate.</ li >
81
- < li > We will use capital letters for conceptual values of the variables and lowercase letters for realized values.
82
-
83
- < ul >
84
- < li > So this way we can write \(P(X_i > x)\). </ li >
85
- < li > \(X_i\) is a conceptual random variable.</ li >
86
- < li > \(x\) is a number that we plug into.</ li >
87
- </ ul > </ li >
88
76
</ ul >
89
77
90
78
</ article >
91
79
<!-- Presenter Notes -->
92
80
</ slide >
93
81
94
- < slide class ="" id ="slide-3 " style ="background:; ">
82
+ < slide class ="" id ="slide-3 " style ="background:; ">
95
83
< hgroup >
96
84
< h2 > The empirical mean</ h2 >
97
85
</ hgroup >
98
- < article >
86
+ < article data-timings ="" >
99
87
< ul >
100
88
< li > Define the empirical mean as
101
89
\[
@@ -105,9 +93,8 @@ <h2>The empirical mean</h2>
105
93
\[
106
94
\tilde X_i = X_i - \bar X.
107
95
\]
108
- The the mean of the \(\tilde X_i\) is 0.</ li >
96
+ The mean of the \(\tilde X_i\) is 0.</ li >
109
97
< li > This process is called "centering" the random variables.</ li >
110
- < li > The mean is a measure of central tendancy of the data.</ li >
111
98
< li > Recall from the previous lecture that the mean is
112
99
the least squares solution for minimizing
113
100
\[
@@ -119,11 +106,11 @@ <h2>The empirical mean</h2>
119
106
<!-- Presenter Notes -->
120
107
</ slide >
121
108
122
- < slide class ="" id ="slide-4 " style ="background:; ">
109
+ < slide class ="" id ="slide-4 " style ="background:; ">
123
110
< hgroup >
124
111
< h2 > The emprical standard deviation and variance</ h2 >
125
112
</ hgroup >
126
- < article >
113
+ < article data-timings ="" >
127
114
< ul >
128
115
< li > Define the empirical variance as
129
116
\[
@@ -133,22 +120,19 @@ <h2>The emprical standard deviation and variance</h2>
133
120
< li > The empirical standard deviation is defined as
134
121
\(S = \sqrt{S^2}\). Notice that the standard deviation has the same units as the data.</ li >
135
122
< li > The data defined by \(X_i / s\) have empirical standard deviation 1. This is called "scaling" the data.</ li >
136
- < li > The empirical standard deviation is a measure of spread.</ li >
137
- < li > Sometimes people divide by \(n\) rather than \(n-1\) (the latter
138
- produces an unbiased estimate.)</ li >
139
123
</ ul >
140
124
141
125
</ article >
142
126
<!-- Presenter Notes -->
143
127
</ slide >
144
128
145
- < slide class ="" id ="slide-5 " style ="background:; ">
129
+ < slide class ="" id ="slide-5 " style ="background:; ">
146
130
< hgroup >
147
131
< h2 > Normalization</ h2 >
148
132
</ hgroup >
149
- < article >
133
+ < article data-timings ="" >
150
134
< ul >
151
- < li > The the data defined by
135
+ < li > The data defined by
152
136
\[
153
137
Z_i = \frac{X_i - \bar X}{s}
154
138
\]
@@ -163,11 +147,11 @@ <h2>Normalization</h2>
163
147
<!-- Presenter Notes -->
164
148
</ slide >
165
149
166
- < slide class ="" id ="slide-6 " style ="background:; ">
150
+ < slide class ="" id ="slide-6 " style ="background:; ">
167
151
< hgroup >
168
152
< h2 > The empirical covariance</ h2 >
169
153
</ hgroup >
170
- < article >
154
+ < article data-timings ="" >
171
155
< ul >
172
156
< li > Consider now when we have pairs of data, \((X_i, Y_i)\).</ li >
173
157
< li > Their empirical covariance is
@@ -176,8 +160,6 @@ <h2>The empirical covariance</h2>
176
160
\frac{1}{n-1}\sum_{i=1}^n (X_i - \bar X) (Y_i - \bar Y)
177
161
= \frac{1}{n-1}\left( \sum_{i=1}^n X_i Y_i - n \bar X \bar Y\right)
178
162
\]</ li >
179
- < li > Some people prefer to divide by \(n\) rather than \(n-1\) (the latter
180
- produces an unbiased estimate.)</ li >
181
163
< li > The correlation is defined is
182
164
\[
183
165
Cor(X, Y) = \frac{Cov(X, Y)}{S_x S_y}
@@ -190,11 +172,11 @@ <h2>The empirical covariance</h2>
190
172
<!-- Presenter Notes -->
191
173
</ slide >
192
174
193
- < slide class ="" id ="slide-7 " style ="background:; ">
175
+ < slide class ="" id ="slide-7 " style ="background:; ">
194
176
< hgroup >
195
177
< h2 > Some facts about correlation</ h2 >
196
178
</ hgroup >
197
- < article >
179
+ < article data-timings ="" >
198
180
< ul >
199
181
< li > \(Cor(X, Y) = Cor(Y, X)\)</ li >
200
182
< li > \(-1 \leq Cor(X, Y) \leq 1\)</ li >
@@ -209,34 +191,77 @@ <h2>Some facts about correlation</h2>
209
191
210
192
< slide class ="backdrop "> </ slide >
211
193
</ slides >
212
-
213
- <!--[if IE]>
194
+ < div class ="pagination pagination-small " id ='io2012-ptoc ' style ="display:none; ">
195
+ < ul >
196
+ < li >
197
+ < a href ="# " target ="_self " rel ='tooltip '
198
+ data-slide =1 title ='Some basic definitions '>
199
+ 1
200
+ </ a >
201
+ </ li >
202
+ < li >
203
+ < a href ="# " target ="_self " rel ='tooltip '
204
+ data-slide =2 title ='Notation for data '>
205
+ 2
206
+ </ a >
207
+ </ li >
208
+ < li >
209
+ < a href ="# " target ="_self " rel ='tooltip '
210
+ data-slide =3 title ='The empirical mean '>
211
+ 3
212
+ </ a >
213
+ </ li >
214
+ < li >
215
+ < a href ="# " target ="_self " rel ='tooltip '
216
+ data-slide =4 title ='The emprical standard deviation and variance '>
217
+ 4
218
+ </ a >
219
+ </ li >
220
+ < li >
221
+ < a href ="# " target ="_self " rel ='tooltip '
222
+ data-slide =5 title ='Normalization '>
223
+ 5
224
+ </ a >
225
+ </ li >
226
+ < li >
227
+ < a href ="# " target ="_self " rel ='tooltip '
228
+ data-slide =6 title ='The empirical covariance '>
229
+ 6
230
+ </ a >
231
+ </ li >
232
+ < li >
233
+ < a href ="# " target ="_self " rel ='tooltip '
234
+ data-slide =7 title ='Some facts about correlation '>
235
+ 7
236
+ </ a >
237
+ </ li >
238
+ </ ul >
239
+ </ div > <!--[if IE]>
214
240
<script
215
241
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
216
242
</script>
217
243
<script>CFInstall.check({mode: 'overlay'});</script>
218
244
<![endif]-->
219
245
</ body >
220
- <!-- Grab CDN jQuery, fall back to local if offline -->
221
- < script src ="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js "> </ script >
222
- < script > window . jQuery || document . write ( '<script src="../../libraries/widgets/quiz/js/jquery-1.7.min.js"><\/script>' ) </ script >
223
- <!-- Load Javascripts for Widgets -->
224
- <!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
225
- < script type ="text/x-mathjax-config ">
226
- MathJax . Hub . Config ( {
227
- tex2jax : {
228
- inlineMath : [ [ '$' , '$' ] , [ '\\(' , '\\)' ] ] ,
229
- processEscapes : true
230
- }
231
- } ) ;
232
- </ script >
233
- < script type ="text/javascript " src ="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML "> </ script >
234
- <!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
235
- </script> -->
236
- < script > window . MathJax || document . write ( '<script type="text/x-mathjax-config">MathJax.Hub.Config({"HTML-CSS":{imageFont:null}});<\/script><script src="../../libraries/widgets/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><\/script>' )
246
+ <!-- Load Javascripts for Widgets -->
247
+
248
+ <!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
249
+ < script type ="text/x-mathjax-config ">
250
+ MathJax . Hub . Config ( {
251
+ tex2jax : {
252
+ inlineMath : [ [ '$' , '$' ] , [ '\\(' , '\\)' ] ] ,
253
+ processEscapes : true
254
+ }
255
+ } ) ;
256
+ </ script >
257
+ < script type ="text/javascript " src ="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML "> </ script >
258
+ <!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
259
+ </script> -->
260
+ < script > window . MathJax || document . write ( '<script type="text/x-mathjax-config">MathJax.Hub.Config({"HTML-CSS":{imageFont:null}});<\/script><script src="../../librariesNew/widgets/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><\/script>' )
237
261
</ script >
238
262
<!-- LOAD HIGHLIGHTER JS FILES -->
239
- < script src ="../../libraries/highlighters/highlight.js/highlight.pack.js "> </ script >
240
- < script > hljs . initHighlightingOnLoad ( ) ; </ script >
241
- <!-- DONE LOADING HIGHLIGHTER JS FILES -->
242
- </ html >
263
+ < script src ="../../librariesNew/highlighters/highlight.js/highlight.pack.js "> </ script >
264
+ < script > hljs . initHighlightingOnLoad ( ) ; </ script >
265
+ <!-- DONE LOADING HIGHLIGHTER JS FILES -->
266
+
267
+ </ html >
0 commit comments