my-markdown-library 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/F24LS_md/ Lecture 4 - Public.md +347 -0
- data/F24LS_md/Lecture 1 - Introduction and Overview.md +327 -0
- data/F24LS_md/Lecture 10 - Development_.md +631 -0
- data/F24LS_md/Lecture 11 - Econometrics.md +345 -0
- data/F24LS_md/Lecture 12 - Finance.md +692 -0
- data/F24LS_md/Lecture 13 - Environmental Economics.md +299 -0
- data/F24LS_md/Lecture 15 - Conclusion.md +272 -0
- data/F24LS_md/Lecture 2 - Demand.md +349 -0
- data/F24LS_md/Lecture 3 - Supply.md +329 -0
- data/F24LS_md/Lecture 5 - Production C-D.md +291 -0
- data/F24LS_md/Lecture 6 - Utility and Latex.md +440 -0
- data/F24LS_md/Lecture 7 - Inequality.md +607 -0
- data/F24LS_md/Lecture 8 - Macroeconomics.md +704 -0
- data/F24LS_md/Lecture 8 - Macro.md +700 -0
- data/F24LS_md/Lecture 9 - Game Theory_.md +436 -0
- data/F24LS_md/summary.yaml +105 -0
- data/F24Lec_MD/LecNB_summary.yaml +206 -0
- data/F24Lec_MD/lec01/lec01.md +267 -0
- data/F24Lec_MD/lec02/Avocados_demand.md +425 -0
- data/F24Lec_MD/lec02/Demand_Steps_24.md +126 -0
- data/F24Lec_MD/lec02/PriceElasticity.md +83 -0
- data/F24Lec_MD/lec02/ScannerData_Beer.md +171 -0
- data/F24Lec_MD/lec02/demand-curve-Fa24.md +213 -0
- data/F24Lec_MD/lec03/3.0-CubicCostCurve.md +239 -0
- data/F24Lec_MD/lec03/3.1-Supply.md +274 -0
- data/F24Lec_MD/lec03/3.2-sympy.md +332 -0
- data/F24Lec_MD/lec03/3.3a-california-energy.md +120 -0
- data/F24Lec_MD/lec03/3.3b-a-really-hot-tuesday.md +121 -0
- data/F24Lec_MD/lec04/lec04-CSfromSurvey-closed.md +335 -0
- data/F24Lec_MD/lec04/lec04-CSfromSurvey.md +331 -0
- data/F24Lec_MD/lec04/lec04-Supply-Demand-closed.md +519 -0
- data/F24Lec_MD/lec04/lec04-Supply-Demand.md +514 -0
- data/F24Lec_MD/lec04/lec04-four-plot-24.md +34 -0
- data/F24Lec_MD/lec04/lec04-four-plot.md +34 -0
- data/F24Lec_MD/lec05/Lec5-Cobb-Douglas.md +131 -0
- data/F24Lec_MD/lec05/Lec5-CobbD-AER1928.md +283 -0
- data/F24Lec_MD/lec06/6.1-Sympy-Differentiation.md +253 -0
- data/F24Lec_MD/lec06/6.2-3D-utility.md +287 -0
- data/F24Lec_MD/lec06/6.3-QuantEcon-Optimization.md +399 -0
- data/F24Lec_MD/lec06/6.4-latex.md +138 -0
- data/F24Lec_MD/lec06/6.5-Edgeworth.md +269 -0
- data/F24Lec_MD/lec07/7.1-inequality.md +283 -0
- data/F24Lec_MD/lec07/7.2-historical-inequality.md +237 -0
- data/F24Lec_MD/lec08/macro-fred-api.md +313 -0
- data/F24Lec_MD/lec09/lecNB-prisoners-dilemma.md +88 -0
- data/F24Lec_MD/lec10/Lec10.2-waterguard.md +401 -0
- data/F24Lec_MD/lec10/lec10.1-mapping.md +199 -0
- data/F24Lec_MD/lec11/11.1-slr.md +305 -0
- data/F24Lec_MD/lec11/11.2-mlr.md +171 -0
- data/F24Lec_MD/lec12/Lec12-4-PersonalFinance.md +590 -0
- data/F24Lec_MD/lec12/lec12-1_Interest_Payments.md +267 -0
- data/F24Lec_MD/lec12/lec12-2-stocks-options.md +235 -0
- data/F24Lec_MD/lec13/Co2_ClimateChange.md +139 -0
- data/F24Lec_MD/lec13/ConstructingMAC.md +213 -0
- data/F24Lec_MD/lec13/EmissionsTracker.md +170 -0
- data/F24Lec_MD/lec13/KuznetsHypothesis.md +219 -0
- data/F24Lec_MD/lec13/RoslingPlots.md +217 -0
- data/F24Lec_MD/lec15/vibecession.md +485 -0
- data/F24Textbook_MD/00-intro/index.md +292 -0
- data/F24Textbook_MD/01-demand/01-demand.md +152 -0
- data/F24Textbook_MD/01-demand/02-example.md +131 -0
- data/F24Textbook_MD/01-demand/03-log-log.md +284 -0
- data/F24Textbook_MD/01-demand/04-elasticity.md +248 -0
- data/F24Textbook_MD/01-demand/index.md +15 -0
- data/F24Textbook_MD/02-supply/01-supply.md +203 -0
- data/F24Textbook_MD/02-supply/02-eep147-example.md +86 -0
- data/F24Textbook_MD/02-supply/03-sympy.md +138 -0
- data/F24Textbook_MD/02-supply/04-market-equilibria.md +204 -0
- data/F24Textbook_MD/02-supply/index.md +16 -0
- data/F24Textbook_MD/03-public/govt-intervention.md +73 -0
- data/F24Textbook_MD/03-public/index.md +10 -0
- data/F24Textbook_MD/03-public/surplus.md +351 -0
- data/F24Textbook_MD/03-public/taxes-subsidies.md +282 -0
- data/F24Textbook_MD/04-production/index.md +15 -0
- data/F24Textbook_MD/04-production/production.md +178 -0
- data/F24Textbook_MD/04-production/shifts.md +296 -0
- data/F24Textbook_MD/05-utility/budget-constraints.md +166 -0
- data/F24Textbook_MD/05-utility/index.md +15 -0
- data/F24Textbook_MD/05-utility/utility.md +136 -0
- data/F24Textbook_MD/06-inequality/historical-inequality.md +253 -0
- data/F24Textbook_MD/06-inequality/index.md +15 -0
- data/F24Textbook_MD/06-inequality/inequality.md +226 -0
- data/F24Textbook_MD/07-game-theory/bertrand.md +257 -0
- data/F24Textbook_MD/07-game-theory/cournot.md +333 -0
- data/F24Textbook_MD/07-game-theory/equilibria-oligopolies.md +96 -0
- data/F24Textbook_MD/07-game-theory/expected-utility.md +61 -0
- data/F24Textbook_MD/07-game-theory/index.md +19 -0
- data/F24Textbook_MD/07-game-theory/python-classes.md +340 -0
- data/F24Textbook_MD/08-development/index.md +35 -0
- data/F24Textbook_MD/09-macro/CentralBanks.md +101 -0
- data/F24Textbook_MD/09-macro/Indicators.md +77 -0
- data/F24Textbook_MD/09-macro/fiscal_policy.md +36 -0
- data/F24Textbook_MD/09-macro/index.md +14 -0
- data/F24Textbook_MD/09-macro/is_curve.md +76 -0
- data/F24Textbook_MD/09-macro/phillips_curve.md +70 -0
- data/F24Textbook_MD/10-finance/index.md +10 -0
- data/F24Textbook_MD/10-finance/options.md +178 -0
- data/F24Textbook_MD/10-finance/value-interest.md +60 -0
- data/F24Textbook_MD/11-econometrics/index.md +16 -0
- data/F24Textbook_MD/11-econometrics/multivariable.md +218 -0
- data/F24Textbook_MD/11-econometrics/reading-econ-papers.md +25 -0
- data/F24Textbook_MD/11-econometrics/single-variable.md +483 -0
- data/F24Textbook_MD/11-econometrics/statsmodels.md +58 -0
- data/F24Textbook_MD/12-environmental/KuznetsHypothesis-Copy1.md +187 -0
- data/F24Textbook_MD/12-environmental/KuznetsHypothesis.md +187 -0
- data/F24Textbook_MD/12-environmental/MAC.md +254 -0
- data/F24Textbook_MD/12-environmental/index.md +36 -0
- data/F24Textbook_MD/LICENSE.md +11 -0
- data/F24Textbook_MD/intro.md +26 -0
- data/F24Textbook_MD/references.md +25 -0
- data/F24Textbook_MD/summary.yaml +414 -0
- metadata +155 -0
@@ -0,0 +1,440 @@
|
|
1
|
+
---
|
2
|
+
title: "Lecture 6 - Utility and Latex"
|
3
|
+
type: slides
|
4
|
+
week: 6
|
5
|
+
source_path: "/Users/ericvandusen/Documents/Data88E-ForTraining/F24LS/Lecture 6 - Utility and Latex.pptx"
|
6
|
+
---
|
7
|
+
|
8
|
+
## Slide 1: Data 88E: Economic Models
|
9
|
+
|
10
|
+
- Lecture 6: Utility (ft. LaTeX)
|
11
|
+
|
12
|
+
## Slide 2: Announcements
|
13
|
+
|
14
|
+
- Lab 5 will be posted ; it will be due this coming Tuesday PM
|
15
|
+
- Utility Optimization from Today
|
16
|
+
- LaTeX in Jupyter Notebook
|
17
|
+
- Remember project 2 !
|
18
|
+
- There’s optional Zoom office hours on Friday!
|
19
|
+
- Lecture Videos - sorry - I’ll just post to playlist
|
20
|
+
|
21
|
+
## Slide 3: Change the Path
|
22
|
+
|
23
|
+
- Update the path for this semester
|
24
|
+
- Go and find the folder in /tree
|
25
|
+
- In Jupyter ! gets you to command line
|
26
|
+
|
27
|
+
## Slide 4: (untitled)
|
28
|
+
|
29
|
+
## Slide 5: Lecture 5 Outline - Consumer Choice
|
30
|
+
|
31
|
+
- What is Utility?
|
32
|
+
- Properties of Utility
|
33
|
+
- Utility Functions
|
34
|
+
- Consumption Bundles
|
35
|
+
- Indifference Curves
|
36
|
+
- Budget Constraints
|
37
|
+
- Constrained Utility Maximization
|
38
|
+
- Demand Curves
|
39
|
+
- QuantEcon Notebook
|
40
|
+
- What is Latex? What is Markdown?
|
41
|
+
|
42
|
+
## Slide 6: What is Utility?
|
43
|
+
|
44
|
+
- Abstract and hard to measure
|
45
|
+
- “Measure of Satisfaction, Worth, Value”
|
46
|
+
- Units to measure utility??
|
47
|
+
- Utility is a method to model how individuals make decisions
|
48
|
+
- A starting point for math to model economic choices
|
49
|
+
|
50
|
+
## Slide 7: Properties of Utility
|
51
|
+
|
52
|
+
- Ordinal: ordering matters, but the numerical value in and of itself does not
|
53
|
+
- E.g. we prefer something with 3 utility units over 2 utility units, but 3 utility units in and of itself does not have any meaning!
|
54
|
+
- Utility only has meaning relative to other goods
|
55
|
+
- “Consumers are rational”
|
56
|
+
- They try to maximize their utility
|
57
|
+
- Our utility is dependent on the goods we consume, and they may affect each other
|
58
|
+
- Consumption of left and right shoes
|
59
|
+
- Consumption of doughnuts and croissants
|
60
|
+
- Transitivity: If A is preferred to B, and B is preferred to C, then A is preferred to C.
|
61
|
+
|
62
|
+
## Slide 8: Properties of Utility
|
63
|
+
|
64
|
+
- Non-negative marginal utility: More is better
|
65
|
+
- Decreasing marginal utility
|
66
|
+
|
67
|
+
## Slide 9: Calculus
|
68
|
+
|
69
|
+
- First Derivative is positive - increasing utility
|
70
|
+
- Second Derivative is negative - at a decreasing rate
|
71
|
+
- Math Models - what functions work ?
|
72
|
+
|
73
|
+
## Slide 10: Utility with 1 Good
|
74
|
+
|
75
|
+
- X: quantity of goods consumed
|
76
|
+
- Y: utility
|
77
|
+
- Does this satisfy our 2 properties?
|
78
|
+
- Non-negative marginal utility
|
79
|
+
- Decreasing marginal utility
|
80
|
+
- Increasing at a decreasing rate
|
81
|
+
|
82
|
+
## Slide 11: Utility Functions
|
83
|
+
|
84
|
+
- Utility functions consider many goods at a time:
|
85
|
+
- Ideally, when modeling a consumer’s utility we would like to consider all the goods in the world, since relationships may exist between any combination of them. But this is infeasible :(
|
86
|
+
- Instead, we simplify the world to assume that consumers only seek to maximize their utility between 2 goods.
|
87
|
+
- A ‘basket’ of goods that the consumer chooses to purchase
|
88
|
+
- We will simplify our choice set into quantities of each of 2 goods
|
89
|
+
|
90
|
+
## Slide 12: Cobb Douglas Utility Function
|
91
|
+
|
92
|
+
- Does it satisfy our 2 properties?
|
93
|
+
- Non-negative marginal utility
|
94
|
+
- Decreasing marginal utility for both good 1 (x1) and good 2 (x2)
|
95
|
+
|
96
|
+
## Slide 13: Consumption Bundles
|
97
|
+
|
98
|
+
- A ‘basket’ of goods that the consumer chooses to purchase
|
99
|
+
- We will vastly simplify our choice set into only 2 goods
|
100
|
+
- X\_1 = 2
|
101
|
+
- X\_2 = 3
|
102
|
+
|
103
|
+
## Slide 14: Each point represents a consumption bundle
|
104
|
+
|
105
|
+
- x\_1=10, x\_2=15
|
106
|
+
- Coffee
|
107
|
+
- Doughnuts
|
108
|
+
|
109
|
+
## Slide 15: Indifference Curves
|
110
|
+
|
111
|
+
- Each axis represents the quantity of a good we consume
|
112
|
+
- 2 axis = 2 goods
|
113
|
+
- Indifference curve: a line on the graph that yields the same utility.
|
114
|
+
|
115
|
+
## Slide 16: Different Indifference Curves
|
116
|
+
|
117
|
+
- A
|
118
|
+
- B
|
119
|
+
- C
|
120
|
+
- Which consumption bundle do consumers prefer the most?
|
121
|
+
|
122
|
+
## Slide 17: Different Indifference Curves
|
123
|
+
|
124
|
+
- A
|
125
|
+
- B
|
126
|
+
- C
|
127
|
+
- Bundle B is preferred to A (B offers a higher utility than A)
|
128
|
+
- Bundle C is indifferent to B (they yield the same utility)
|
129
|
+
- Thus, Bundle C is preferred to A
|
130
|
+
|
131
|
+
## Slide 18: Different Indifference Curves - Outwards is better
|
132
|
+
|
133
|
+
- A
|
134
|
+
- B
|
135
|
+
- C
|
136
|
+
|
137
|
+
## Slide 19: Indifference Curves Cannot Cross
|
138
|
+
|
139
|
+
- A
|
140
|
+
- B
|
141
|
+
- C
|
142
|
+
- D
|
143
|
+
|
144
|
+
## Slide 20: PollEV
|
145
|
+
|
146
|
+
## Slide 21: Indifference Curves Cannot Cross
|
147
|
+
|
148
|
+
- A
|
149
|
+
- B
|
150
|
+
- C
|
151
|
+
- D is preferred to A
|
152
|
+
- B is thus preferred to A
|
153
|
+
- C is preferred to B,
|
154
|
+
- but A is indifferent to C
|
155
|
+
- => This violates transitivity!
|
156
|
+
- D
|
157
|
+
|
158
|
+
## Slide 22: Indifference Curves are like Contour Maps
|
159
|
+
|
160
|
+
## Slide 23: Budget Constraints
|
161
|
+
|
162
|
+
- If consumers had no budget constraints, then they would always pick the infinitely rightmost curve.
|
163
|
+
- Income
|
164
|
+
- Price of good 1
|
165
|
+
- Quantity of good 1
|
166
|
+
- Price of good 2
|
167
|
+
- Quantity of good 2
|
168
|
+
- We will assume that consumers spend every cent they have to maximize utility.
|
169
|
+
|
170
|
+
## Slide 24: Graphing the Budget Constraint
|
171
|
+
|
172
|
+
- Donuts
|
173
|
+
- Coffee
|
174
|
+
- (M/p\_1,0)
|
175
|
+
- (0, M/p\_2 )
|
176
|
+
- Spend all your money on coffee
|
177
|
+
- What we can afford
|
178
|
+
- Spend all your money on donuts
|
179
|
+
|
180
|
+
## Slide 25: Graphing the Budget Constraint
|
181
|
+
|
182
|
+
- Donuts
|
183
|
+
- Coffee
|
184
|
+
- Less income
|
185
|
+
- More income
|
186
|
+
|
187
|
+
## Slide 26: Properties of Budget Constraints
|
188
|
+
|
189
|
+
- For any given income level, the possible points to satisfy the budget constraint forms a line.
|
190
|
+
- Slope: negative ratio of 2 prices (write x\_2 in terms of x\_1)
|
191
|
+
- Intercepts: when only 1 good is consumed.
|
192
|
+
|
193
|
+
## Slide 27: An Example
|
194
|
+
|
195
|
+
- M = $5
|
196
|
+
- P\_coffee = $2 All coffee = 2.5
|
197
|
+
- P\_donuts = $1 All donuts = 5
|
198
|
+
- Donuts
|
199
|
+
- Coffee
|
200
|
+
- (2, 1.5) also on budget constraint: 2\*1 + 1.5\*2 = 5
|
201
|
+
|
202
|
+
## Slide 28: What if...
|
203
|
+
|
204
|
+
- Income doubles (M = $10)?
|
205
|
+
- Price of coffee increases to $2.5?
|
206
|
+
- Price of donuts increases to $2?
|
207
|
+
- How does the slope and intercepts change in each of these scenarios?
|
208
|
+
|
209
|
+
## Slide 29: 1) Income Doubles (Y=10)
|
210
|
+
|
211
|
+
- 1) Income Doubles (Y=10)
|
212
|
+
- 2) Price of Coffee increases (Pc=2.5)
|
213
|
+
- 3) Price of Donuts increases(Pd=2)
|
214
|
+
- Donuts
|
215
|
+
- Coffee
|
216
|
+
|
217
|
+
## Slide 30: Constrained Utility Maximization
|
218
|
+
|
219
|
+
- Consumers will choose the bundle that gives them the highest utility that they can afford.
|
220
|
+
|
221
|
+
## Slide 31: Which Bundle Will Consumers Pick?
|
222
|
+
|
223
|
+
- B
|
224
|
+
- A
|
225
|
+
- C
|
226
|
+
|
227
|
+
## Slide 32: Which Bundle Will Consumers Pick?
|
228
|
+
|
229
|
+
- B
|
230
|
+
- A
|
231
|
+
- C
|
232
|
+
- Bundles
|
233
|
+
- A and B - can afford
|
234
|
+
- C - cannot afford
|
235
|
+
- Utilities
|
236
|
+
- C > B > A
|
237
|
+
|
238
|
+
## Slide 33: Which Bundle Will Consumers Pick?
|
239
|
+
|
240
|
+
- B
|
241
|
+
- A
|
242
|
+
- C
|
243
|
+
- Consumer will choose where the indifference curve is tangent to the budget constraint
|
244
|
+
- No point on the higher curve is affordable
|
245
|
+
- All points on lower curve are inferior
|
246
|
+
|
247
|
+
## Slide 34: Demand Curves
|
248
|
+
|
249
|
+
- Change in price of a good: doughnuts
|
250
|
+
- Hold price of Good 2 constant (coffee)
|
251
|
+
- Hold M constant (income)
|
252
|
+
- Vary price of Good 1 (doughnuts)
|
253
|
+
|
254
|
+
## Slide 35: Red = price of doughnuts = 2$
|
255
|
+
Blue = price of doughnuts= 1.5$
|
256
|
+
Green = price of doughnuts = 1$
|
257
|
+
|
258
|
+
- Red = price of doughnuts = 2$
|
259
|
+
- Blue = price of doughnuts= 1.5$
|
260
|
+
- Green = price of doughnuts = 1$
|
261
|
+
- Donuts
|
262
|
+
- Coffee
|
263
|
+
|
264
|
+
<details><summary>Speaker notes</summary>
|
265
|
+
|
266
|
+
If Y is 5$ and Price of coffee is 2$/cup - you will always be able to buy 2.5 cups of coffee
|
267
|
+
Red = price of good 2 = 2$
|
268
|
+
Blue = price of good 2= 1.5$
|
269
|
+
Green = price of good 2= 1$
|
270
|
+
|
271
|
+
</details>
|
272
|
+
|
273
|
+
## Slide 36: (untitled)
|
274
|
+
|
275
|
+
<details><summary>Speaker notes</summary>
|
276
|
+
|
277
|
+
For each of these budget lines -
|
278
|
+
we can find the point of tangency
|
279
|
+
and see how much is consumed - find the quantity that corresponds to each price
|
280
|
+
|
281
|
+
</details>
|
282
|
+
|
283
|
+
## Slide 37: A Demand Curve is Born
|
284
|
+
|
285
|
+
## Slide 38: Demand Shocks and Shifts
|
286
|
+
|
287
|
+
- Hold prices of both goods to be constant
|
288
|
+
- Income increases: budget constraint shifts, allowing us to reach a higher level of utility
|
289
|
+
|
290
|
+
## Slide 39: Y= Income increases
|
291
|
+
|
292
|
+
- Y= Income increases
|
293
|
+
|
294
|
+
<details><summary>Speaker notes</summary>
|
295
|
+
|
296
|
+
Lets look at a change in Income
|
297
|
+
The budget line shifts out in a parallel slope
|
298
|
+
We get to a higher indifference curve ( more money we are happier)
|
299
|
+
So the quantity of good 2 demanded increases from 1.2 to 1.5
|
300
|
+
|
301
|
+
</details>
|
302
|
+
|
303
|
+
## Slide 40: A New Demand Curve is Born
|
304
|
+
|
305
|
+
## Slide 41: Scooby meme
|
306
|
+
|
307
|
+
## Slide 42: Visualizing Cobb-Douglas
|
308
|
+
|
309
|
+
- Check out these 3-D
|
310
|
+
- https://data-88e.github.io/textbook/content/05-utility/utility.html
|
311
|
+
- https://data-88e.github.io/textbook/content/05-utility/budget-constraints.html
|
312
|
+
|
313
|
+
## Slide 43: For the Advanced
|
314
|
+
|
315
|
+
- Lagrangian
|
316
|
+
|
317
|
+
## Slide 44: Optimization
|
318
|
+
|
319
|
+
- We are working on finding a local maximum for 2 goods
|
320
|
+
- In a well defined space with mathematical properties
|
321
|
+
- ( Cobb Douglas)
|
322
|
+
- What about for n - goods?
|
323
|
+
- What about for non - convex functions?
|
324
|
+
- A separating hyperplane?
|
325
|
+
- What does the lambda mean?
|
326
|
+
|
327
|
+
## Slide 45: Demo - Notebook for Consumer Choice - quantecon.org
|
328
|
+
|
329
|
+
## Slide 46: QuantEcon Data Science in Python
|
330
|
+
|
331
|
+
## Slide 47: Optimization - Scipy -
|
332
|
+
|
333
|
+
## Slide 48: (untitled)
|
334
|
+
|
335
|
+
## Slide 49: (untitled)
|
336
|
+
|
337
|
+
## Slide 50: (untitled)
|
338
|
+
|
339
|
+
## Slide 51: Why LaTeX?
|
340
|
+
|
341
|
+
- We want to be able to write math equations
|
342
|
+
- We want to format documents beautifully and ‘academically’
|
343
|
+
- Open source, shareable, and cross platform software
|
344
|
+
- We think it’s a good thing for you to know about
|
345
|
+
- Economists use it
|
346
|
+
- Economics grad students use it
|
347
|
+
- Upper Div CS classes use it
|
348
|
+
|
349
|
+
## Slide 52: There are easier approaches - hostmath.com
|
350
|
+
|
351
|
+
## Slide 53: Let’s go make an overleaf account
|
352
|
+
https://www.overleaf.com/
|
353
|
+
|
354
|
+
“Sign in with Google”
|
355
|
+
Use UC Berkeley Account
|
356
|
+
|
357
|
+
## Slide 54: Overleaf - start a new file
|
358
|
+
|
359
|
+
- Copy and paste text into new document on Overleaf
|
360
|
+
- Or… download file and upload to Overleaf
|
361
|
+
- You can upload a template
|
362
|
+
- You can import other folks files
|
363
|
+
- You can do all of the formatting of the file
|
364
|
+
- Sections, Headers, Tables
|
365
|
+
- Journal Article templates
|
366
|
+
- Quiz and Homework templates
|
367
|
+
|
368
|
+
## Slide 55: Good things to know about LaTeX
|
369
|
+
|
370
|
+
- Language uses \ a lot to denote actions or unique characters
|
371
|
+
- Everything that’s part of a symbol or function is wrapped within {}
|
372
|
+
- E.g. \frac{5}{8} == ⅝
|
373
|
+
- E.g. \section{This is a section header}
|
374
|
+
|
375
|
+
## Slide 56: Titles and Imports
|
376
|
+
|
377
|
+
- TLDR: don’t worry about these
|
378
|
+
|
379
|
+
## Slide 57: Sections and Subsections
|
380
|
+
|
381
|
+
- \section{<SECTION NAME>}
|
382
|
+
- Without numbers: \section\*{<SECTION NAME>}
|
383
|
+
|
384
|
+
## Slide 58: Making a List
|
385
|
+
|
386
|
+
- \begin{enumerate}
|
387
|
+
- \item …
|
388
|
+
- \item …
|
389
|
+
- \end{enumerate}
|
390
|
+
|
391
|
+
## Slide 59: Adding Images
|
392
|
+
|
393
|
+
- Put this in the title/imports:
|
394
|
+
- \usepackage{graphicx}
|
395
|
+
- \graphicspath{ {./images/} }
|
396
|
+
- To add an image:
|
397
|
+
- Make sure an images folder is created, then to include image.png:
|
398
|
+
- \includegraphics{image.png}
|
399
|
+
|
400
|
+
## Slide 60: Typesetting Equations
|
401
|
+
|
402
|
+
- In-line: $<LATEX FORMULA>$
|
403
|
+
- As its own block: there are a few ways to do this. Two of my most commonly used:
|
404
|
+
- $$<LATEX FORMULA>$$
|
405
|
+
- \begin{align\*}<LHS> &<OP> <RHS> \\etc.
|
406
|
+
- \end{align\*}
|
407
|
+
|
408
|
+
## Slide 61: Formulas
|
409
|
+
|
410
|
+
- Let’s do four examples:
|
411
|
+
- The quadratic formula
|
412
|
+
- Partial Derivative:
|
413
|
+
- Integral: (Does this seem familiar?)
|
414
|
+
- Simplify in 2 steps using align
|
415
|
+
|
416
|
+
## Slide 62: You can paste this into Jupyter
|
417
|
+
|
418
|
+
- For standalone formulas:
|
419
|
+
- $$YOUR EQUATION HERE$$
|
420
|
+
- For in-line typesetting:
|
421
|
+
- $YOUR MATH HERE$
|
422
|
+
|
423
|
+
## Slide 63: And Markdown ( bc Juptyer)
|
424
|
+
|
425
|
+
- https://www.markdownguide.org/cheat-sheet/
|
426
|
+
|
427
|
+
## Slide 64: Markdown - Headings
|
428
|
+
|
429
|
+
## Slide 65: Markdown - Style
|
430
|
+
|
431
|
+
## Slide 66: Markdown Tables
|
432
|
+
|
433
|
+
## Slide 67: (untitled)
|
434
|
+
|
435
|
+
## Slide 68: Edgeworth Demo
|
436
|
+
|
437
|
+
- Two consumers
|
438
|
+
- Fixed endowment of two goods
|
439
|
+
- Indifference curves starting from different corners
|
440
|
+
|