Skip to content

Commit 31cb69a

Browse files
committedSep 23, 2024·
Built site for gh-pages
1 parent c1f880b commit 31cb69a

File tree

10 files changed

+107
-19
lines changed

10 files changed

+107
-19
lines changed
 

‎.nojekyll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d615ba80
1+
21a773f7

‎asymptotics/indistribution.html

+3-3
Large diffs are not rendered by default.

‎asymptotics/resid.html

+1-1
Large diffs are not rendered by default.

‎identification/identification.html

+83-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<meta name="generator" content="quarto-1.5.57">
1212

1313
<meta name="author" content="Paul Schrimpf">
14-
<meta name="dcterms.date" content="2024-09-18">
14+
<meta name="dcterms.date" content="2024-09-23">
1515
<title>ECON 626 – Identification</title>
1616
<meta name="apple-mobile-web-app-capable" content="yes">
1717
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
@@ -30,6 +30,71 @@
3030
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
3131
vertical-align: middle;
3232
}
33+
/* CSS for syntax highlighting */
34+
pre > code.sourceCode { white-space: pre; position: relative; }
35+
pre > code.sourceCode > span { line-height: 1.25; }
36+
pre > code.sourceCode > span:empty { height: 1.2em; }
37+
.sourceCode { overflow: visible; }
38+
code.sourceCode > span { color: inherit; text-decoration: inherit; }
39+
div.sourceCode { margin: 1em 0; }
40+
pre.sourceCode { margin: 0; }
41+
@media screen {
42+
div.sourceCode { overflow: auto; }
43+
}
44+
@media print {
45+
pre > code.sourceCode { white-space: pre-wrap; }
46+
pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; }
47+
}
48+
pre.numberSource code
49+
{ counter-reset: source-line 0; }
50+
pre.numberSource code > span
51+
{ position: relative; left: -4em; counter-increment: source-line; }
52+
pre.numberSource code > span > a:first-child::before
53+
{ content: counter(source-line);
54+
position: relative; left: -1em; text-align: right; vertical-align: baseline;
55+
border: none; display: inline-block;
56+
-webkit-touch-callout: none; -webkit-user-select: none;
57+
-khtml-user-select: none; -moz-user-select: none;
58+
-ms-user-select: none; user-select: none;
59+
padding: 0 4px; width: 4em;
60+
}
61+
pre.numberSource { margin-left: 3em; padding-left: 4px; }
62+
div.sourceCode
63+
{ color: #f8f8f2; }
64+
@media screen {
65+
pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; }
66+
}
67+
code span { color: #f8f8f2; } /* Normal */
68+
code span.al { color: #f07178; background-color: #2a0f15; font-weight: bold; } /* Alert */
69+
code span.an { color: #d4d0ab; } /* Annotation */
70+
code span.at { color: #00e0e0; } /* Attribute */
71+
code span.bn { color: #d4d0ab; } /* BaseN */
72+
code span.bu { color: #abe338; } /* BuiltIn */
73+
code span.cf { color: #ffa07a; font-weight: bold; } /* ControlFlow */
74+
code span.ch { color: #abe338; } /* Char */
75+
code span.cn { color: #ffd700; } /* Constant */
76+
code span.co { color: #f8f8f2; font-style: italic; } /* Comment */
77+
code span.cv { color: #ffd700; } /* CommentVar */
78+
code span.do { color: #f8f8f2; } /* Documentation */
79+
code span.dt { color: #ffa07a; } /* DataType */
80+
code span.dv { color: #d4d0ab; } /* DecVal */
81+
code span.er { color: #f07178; text-decoration: underline; } /* Error */
82+
code span.ex { color: #00e0e0; font-weight: bold; } /* Extension */
83+
code span.fl { color: #d4d0ab; } /* Float */
84+
code span.fu { color: #ffa07a; } /* Function */
85+
code span.im { color: #abe338; } /* Import */
86+
code span.in { color: #d4d0ab; } /* Information */
87+
code span.kw { color: #ffa07a; font-weight: bold; } /* Keyword */
88+
code span.op { color: #ffa07a; } /* Operator */
89+
code span.ot { color: #00e0e0; } /* Other */
90+
code span.pp { color: #dcc6e0; } /* Preprocessor */
91+
code span.re { color: #00e0e0; background-color: #f8f8f2; } /* RegionMarker */
92+
code span.sc { color: #abe338; } /* SpecialChar */
93+
code span.ss { color: #abe338; } /* SpecialString */
94+
code span.st { color: #abe338; } /* String */
95+
code span.va { color: #00e0e0; } /* Variable */
96+
code span.vs { color: #abe338; } /* VerbatimString */
97+
code span.wa { color: #dcc6e0; } /* Warning */
3398
/* CSS for citations */
3499
div.csl-bib-body { }
35100
div.csl-entry {
@@ -363,7 +428,7 @@ <h1 class="title">Identification</h1>
363428
</div>
364429
</div>
365430

366-
<p class="date">2024-09-18</p>
431+
<p class="date">2024-09-23</p>
367432
</section>
368433
<section id="reading" class="slide level2">
369434
<h2>Reading</h2>
@@ -748,6 +813,22 @@ <h2>Example: Regression</h2>
748813
\]</span></li>
749814
</ul>
750815
</section>
816+
<section id="caution" class="slide level2">
817+
<h2>Caution</h2>
818+
<ul>
819+
<li><p>Regression being a linear approximation to <span class="math inline">\(\Er[Y|X]\)</span> does not mean <span class="math inline">\(\beta = \Er[X X']^{-1} \Er[X Y]\)</span> necessarily has the sign you want</p></li>
820+
<li><p>In example below, <span class="math inline">\(\Er[Y|x_1=1, x_2] &gt; \Er[Y|x_1=9,x_2]\)</span>, but <span class="math inline">\(\beta_1 &lt; 0\)</span></p></li>
821+
</ul>
822+
<div class="sourceCode" id="cb1"><pre class="sourceCode numberSource {julia} number-lines code-with-copy"><code class="sourceCode"><span id="cb1-1"><a></a>using LinearAlgebra</span>
823+
<span id="cb1-2"><a></a>n = 10_000</span>
824+
<span id="cb1-3"><a></a>EYX(x) = x[2]&gt;0 ? -1.0 + 1.0*x[1] : (1.0 + 0.1*x[1])</span>
825+
<span id="cb1-4"><a></a>x2 = randn(n)</span>
826+
<span id="cb1-5"><a></a>x1 = (x2*3 + randn(n) .&gt; 0)</span>
827+
<span id="cb1-6"><a></a>X = hcat(x1,x2)</span>
828+
<span id="cb1-7"><a></a>y = EYX.(eachrow(X)) + randn(n)</span>
829+
<span id="cb1-8"><a></a>X = hcat(ones(n), X)</span>
830+
<span id="cb1-9"><a></a>β = (X'*X) \ (X'*y)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
831+
</section>
751832
<section id="example-potential-outcomes-3" class="slide level2">
752833
<h2>Example: Potential Outcomes</h2>
753834
<ul>

‎iv/iv.html

+2-2
Large diffs are not rendered by default.

‎measure/measure.html

+1-1
Large diffs are not rendered by default.

‎problemsets/03/ps03.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

9-
<meta name="dcterms.date" content="2023-09-29">
9+
<meta name="dcterms.date" content="2024-09-30">
1010

1111
<title>ECON 626: Problem Set 3 – ECON 626</title>
1212
<style>
@@ -192,7 +192,7 @@ <h1 class="title">ECON 626: Problem Set 3</h1>
192192
<div>
193193
<div class="quarto-title-meta-heading">Published</div>
194194
<div class="quarto-title-meta-contents">
195-
<p class="date">September 29, 2023</p>
195+
<p class="date">September 30, 2024</p>
196196
</div>
197197
</div>
198198

‎search.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,13 @@
377377
"section": "Example: Regression",
378378
"text": "Example: Regression\n\nIf relevant moments exist (no linear model required) population regression solves \\[\n\\Er[ X X']^{-1} \\Er[ X Y] \\in \\mathrm{arg}\\min_b \\Er[ (X'b - \\Er[Y|X])^2 ]\n\\]"
379379
},
380+
{
381+
"objectID": "identification/identification.html#caution",
382+
"href": "identification/identification.html#caution",
383+
"title": "Identification",
384+
"section": "Caution",
385+
"text": "Caution\n\nRegression being a linear approximation to \\(\\Er[Y|X]\\) does not mean \\(\\beta = \\Er[X X']^{-1} \\Er[X Y]\\) necessarily has the sign you want\nIn example below, \\(\\Er[Y|x_1=1, x_2] &gt; \\Er[Y|x_1=9,x_2]\\), but \\(\\beta_1 &lt; 0\\)\n\nusing LinearAlgebra\nn = 10_000\nEYX(x) = x[2]&gt;0 ? -1.0 + 1.0*x[1] : (1.0 + 0.1*x[1])\nx2 = randn(n)\nx1 = (x2*3 + randn(n) .&gt; 0)\nX = hcat(x1,x2)\ny = EYX.(eachrow(X)) + randn(n)\nX = hcat(ones(n), X)\nβ = (X'*X) \\ (X'*y)"
386+
},
380387
{
381388
"objectID": "identification/identification.html#example-potential-outcomes-3",
382389
"href": "identification/identification.html#example-potential-outcomes-3",
@@ -1901,7 +1908,7 @@
19011908
"href": "slides.html",
19021909
"title": "Slides",
19031910
"section": "",
1904-
"text": "Asymptotic Theory of Least Squares\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nConvergence in Distribution\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nConvergence in Probability\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nDifference in Diffferences\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Final - Solutions\n\n\n\n\n\n\n\n\n\n\n\nDec 16, 2022\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Final - Solutions\n\n\n\n\n\n\n\n\n\n\n\nDec 13, 2023\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Midterm Review\n\n\n\n\n\n\n\n\n\n\n\nOct 24, 2022\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Midterm Solutions\n\n\n\n\n\n\n\n\n\n\n\nOct 26, 2022\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 1\n\n\n\n\n\n\n\n\n\n\n\nSep 12, 2024\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 2\n\n\n\n\n\n\n\n\n\n\n\nSep 23, 2024\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 3\n\n\n\n\n\n\n\n\n\n\n\nSep 29, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 4\n\n\n\n\n\n\n\n\n\n\n\nOct 13, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 5\n\n\n\n\n\n\n\n\n\n\n\nOct 20, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 6\n\n\n\n\n\n\n\n\n\n\n\nNov 9, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 7\n\n\n\n\n\n\n\n\n\n\n\nDec 1, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 7\n\n\n\n\n\n\n\n\n\n\n\nDec 6, 2022\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 8\n\n\n\n\n\n\n\n\n\n\n\nDec 6, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nEndogeneity\n\n\n\n\n\n\n\n\n\n\n\nNov 16, 2022\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nEstimation\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nGeneralized Method of Moments\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nIdentification\n\n\n\n\n\n\n\n\n\n\n\nSep 18, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nInstrumental Variables Estimation\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nLeast Squares as a Projection\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nMeasure\n\n\n\n\n\n\n\n\n\n\n\nSep 9, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nMidterm Solutions 2023\n\n\n\n\n\n\n\n\n\n\n\nOct 25, 2023\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nProbability\n\n\n\n\n\n\n\n\n\n\n\nSep 16, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\nNo matching items"
1911+
"text": "Asymptotic Theory of Least Squares\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nConvergence in Distribution\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nConvergence in Probability\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nDifference in Diffferences\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Final - Solutions\n\n\n\n\n\n\n\n\n\n\n\nDec 16, 2022\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Final - Solutions\n\n\n\n\n\n\n\n\n\n\n\nDec 13, 2023\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Midterm Review\n\n\n\n\n\n\n\n\n\n\n\nOct 24, 2022\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Midterm Solutions\n\n\n\n\n\n\n\n\n\n\n\nOct 26, 2022\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 1\n\n\n\n\n\n\n\n\n\n\n\nSep 12, 2024\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 2\n\n\n\n\n\n\n\n\n\n\n\nSep 23, 2024\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 3\n\n\n\n\n\n\n\n\n\n\n\nSep 30, 2024\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 4\n\n\n\n\n\n\n\n\n\n\n\nOct 13, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 5\n\n\n\n\n\n\n\n\n\n\n\nOct 20, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 6\n\n\n\n\n\n\n\n\n\n\n\nNov 9, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 7\n\n\n\n\n\n\n\n\n\n\n\nDec 1, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 7\n\n\n\n\n\n\n\n\n\n\n\nDec 6, 2022\n\n\n\n\n\n\n\n\n\n\n\n\nECON 626: Problem Set 8\n\n\n\n\n\n\n\n\n\n\n\nDec 6, 2023\n\n\n\n\n\n\n\n\n\n\n\n\nEndogeneity\n\n\n\n\n\n\n\n\n\n\n\nNov 16, 2022\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nEstimation\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nGeneralized Method of Moments\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nIdentification\n\n\n\n\n\n\n\n\n\n\n\nSep 23, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nInstrumental Variables Estimation\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nLeast Squares as a Projection\n\n\n\n\n\n\n\n\n\n\n\nSep 3, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nMeasure\n\n\n\n\n\n\n\n\n\n\n\nSep 9, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nMidterm Solutions 2023\n\n\n\n\n\n\n\n\n\n\n\nOct 25, 2023\n\n\nPaul Schrimpf\n\n\n\n\n\n\n\n\n\n\n\n\nProbability\n\n\n\n\n\n\n\n\n\n\n\nSep 16, 2024\n\n\nPaul Schrimpf\n\n\n\n\n\n\nNo matching items"
19051912
},
19061913
{
19071914
"objectID": "measure/measure.html#references",

‎sitemap.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</url>
77
<url>
88
<loc>https://ubcecon.github.io/626/identification/identification.html</loc>
9-
<lastmod>2024-09-18T15:33:29.068Z</lastmod>
9+
<lastmod>2024-09-23T13:36:53.392Z</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://ubcecon.github.io/626/iv/iv.html</loc>
@@ -42,7 +42,7 @@
4242
</url>
4343
<url>
4444
<loc>https://ubcecon.github.io/626/problemsets/03/ps03.html</loc>
45-
<lastmod>2023-09-24T17:44:41.623Z</lastmod>
45+
<lastmod>2024-09-20T20:34:25.863Z</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://ubcecon.github.io/626/problemsets/01/ps01.html</loc>

‎slides.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ <h3 class="no-anchor listing-title">
506506
</a>
507507
</div>
508508
</div>
509-
<div class="quarto-post image-right" data-index="10" data-listing-date-sort="1695970800000" data-listing-file-modified-sort="1695577481623" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="179">
509+
<div class="quarto-post image-right" data-index="10" data-listing-date-sort="1727679600000" data-listing-file-modified-sort="1726864465863" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="179">
510510
<div class="thumbnail">
511511
<p><a href="./problemsets/03/ps03.html" class="no-external"></a></p><a href="./problemsets/03/ps03.html" class="no-external">
512512
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
@@ -529,7 +529,7 @@ <h3 class="no-anchor listing-title">
529529
<div class="metadata">
530530
<a href="./problemsets/03/ps03.html" class="no-external">
531531
<div class="listing-date">
532-
Sep 29, 2023
532+
Sep 30, 2024
533533
</div>
534534
</a>
535535
</div>
@@ -803,7 +803,7 @@ <h3 class="no-anchor listing-title">
803803
</a>
804804
</div>
805805
</div>
806-
<div class="quarto-post image-right" data-index="20" data-listing-date-sort="1726673609000" data-listing-file-modified-sort="1726673609068" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="9" data-listing-word-count-sort="1759">
806+
<div class="quarto-post image-right" data-index="20" data-listing-date-sort="1727098613000" data-listing-file-modified-sort="1727098613392" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="10" data-listing-word-count-sort="1826">
807807
<div class="thumbnail">
808808
<p><a href="./identification/identification.html" class="no-external"></a></p><a href="./identification/identification.html" class="no-external">
809809
<div class="listing-item-img-placeholder card-img-top" >&nbsp;</div>
@@ -823,7 +823,7 @@ <h3 class="no-anchor listing-title">
823823
<div class="metadata">
824824
<a href="./identification/identification.html" class="no-external">
825825
<div class="listing-date">
826-
Sep 18, 2024
826+
Sep 23, 2024
827827
</div>
828828
<div class="listing-author">
829829
Paul Schrimpf

0 commit comments

Comments
 (0)
Please sign in to comment.