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.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/F24LS_md/ Lecture 4 - Public.md +347 -0
  3. data/F24LS_md/Lecture 1 - Introduction and Overview.md +327 -0
  4. data/F24LS_md/Lecture 10 - Development_.md +631 -0
  5. data/F24LS_md/Lecture 11 - Econometrics.md +345 -0
  6. data/F24LS_md/Lecture 12 - Finance.md +692 -0
  7. data/F24LS_md/Lecture 13 - Environmental Economics.md +299 -0
  8. data/F24LS_md/Lecture 15 - Conclusion.md +272 -0
  9. data/F24LS_md/Lecture 2 - Demand.md +349 -0
  10. data/F24LS_md/Lecture 3 - Supply.md +329 -0
  11. data/F24LS_md/Lecture 5 - Production C-D.md +291 -0
  12. data/F24LS_md/Lecture 6 - Utility and Latex.md +440 -0
  13. data/F24LS_md/Lecture 7 - Inequality.md +607 -0
  14. data/F24LS_md/Lecture 8 - Macroeconomics.md +704 -0
  15. data/F24LS_md/Lecture 8 - Macro.md +700 -0
  16. data/F24LS_md/Lecture 9 - Game Theory_.md +436 -0
  17. data/F24LS_md/summary.yaml +105 -0
  18. data/F24Lec_MD/LecNB_summary.yaml +206 -0
  19. data/F24Lec_MD/lec01/lec01.md +267 -0
  20. data/F24Lec_MD/lec02/Avocados_demand.md +425 -0
  21. data/F24Lec_MD/lec02/Demand_Steps_24.md +126 -0
  22. data/F24Lec_MD/lec02/PriceElasticity.md +83 -0
  23. data/F24Lec_MD/lec02/ScannerData_Beer.md +171 -0
  24. data/F24Lec_MD/lec02/demand-curve-Fa24.md +213 -0
  25. data/F24Lec_MD/lec03/3.0-CubicCostCurve.md +239 -0
  26. data/F24Lec_MD/lec03/3.1-Supply.md +274 -0
  27. data/F24Lec_MD/lec03/3.2-sympy.md +332 -0
  28. data/F24Lec_MD/lec03/3.3a-california-energy.md +120 -0
  29. data/F24Lec_MD/lec03/3.3b-a-really-hot-tuesday.md +121 -0
  30. data/F24Lec_MD/lec04/lec04-CSfromSurvey-closed.md +335 -0
  31. data/F24Lec_MD/lec04/lec04-CSfromSurvey.md +331 -0
  32. data/F24Lec_MD/lec04/lec04-Supply-Demand-closed.md +519 -0
  33. data/F24Lec_MD/lec04/lec04-Supply-Demand.md +514 -0
  34. data/F24Lec_MD/lec04/lec04-four-plot-24.md +34 -0
  35. data/F24Lec_MD/lec04/lec04-four-plot.md +34 -0
  36. data/F24Lec_MD/lec05/Lec5-Cobb-Douglas.md +131 -0
  37. data/F24Lec_MD/lec05/Lec5-CobbD-AER1928.md +283 -0
  38. data/F24Lec_MD/lec06/6.1-Sympy-Differentiation.md +253 -0
  39. data/F24Lec_MD/lec06/6.2-3D-utility.md +287 -0
  40. data/F24Lec_MD/lec06/6.3-QuantEcon-Optimization.md +399 -0
  41. data/F24Lec_MD/lec06/6.4-latex.md +138 -0
  42. data/F24Lec_MD/lec06/6.5-Edgeworth.md +269 -0
  43. data/F24Lec_MD/lec07/7.1-inequality.md +283 -0
  44. data/F24Lec_MD/lec07/7.2-historical-inequality.md +237 -0
  45. data/F24Lec_MD/lec08/macro-fred-api.md +313 -0
  46. data/F24Lec_MD/lec09/lecNB-prisoners-dilemma.md +88 -0
  47. data/F24Lec_MD/lec10/Lec10.2-waterguard.md +401 -0
  48. data/F24Lec_MD/lec10/lec10.1-mapping.md +199 -0
  49. data/F24Lec_MD/lec11/11.1-slr.md +305 -0
  50. data/F24Lec_MD/lec11/11.2-mlr.md +171 -0
  51. data/F24Lec_MD/lec12/Lec12-4-PersonalFinance.md +590 -0
  52. data/F24Lec_MD/lec12/lec12-1_Interest_Payments.md +267 -0
  53. data/F24Lec_MD/lec12/lec12-2-stocks-options.md +235 -0
  54. data/F24Lec_MD/lec13/Co2_ClimateChange.md +139 -0
  55. data/F24Lec_MD/lec13/ConstructingMAC.md +213 -0
  56. data/F24Lec_MD/lec13/EmissionsTracker.md +170 -0
  57. data/F24Lec_MD/lec13/KuznetsHypothesis.md +219 -0
  58. data/F24Lec_MD/lec13/RoslingPlots.md +217 -0
  59. data/F24Lec_MD/lec15/vibecession.md +485 -0
  60. data/F24Textbook_MD/00-intro/index.md +292 -0
  61. data/F24Textbook_MD/01-demand/01-demand.md +152 -0
  62. data/F24Textbook_MD/01-demand/02-example.md +131 -0
  63. data/F24Textbook_MD/01-demand/03-log-log.md +284 -0
  64. data/F24Textbook_MD/01-demand/04-elasticity.md +248 -0
  65. data/F24Textbook_MD/01-demand/index.md +15 -0
  66. data/F24Textbook_MD/02-supply/01-supply.md +203 -0
  67. data/F24Textbook_MD/02-supply/02-eep147-example.md +86 -0
  68. data/F24Textbook_MD/02-supply/03-sympy.md +138 -0
  69. data/F24Textbook_MD/02-supply/04-market-equilibria.md +204 -0
  70. data/F24Textbook_MD/02-supply/index.md +16 -0
  71. data/F24Textbook_MD/03-public/govt-intervention.md +73 -0
  72. data/F24Textbook_MD/03-public/index.md +10 -0
  73. data/F24Textbook_MD/03-public/surplus.md +351 -0
  74. data/F24Textbook_MD/03-public/taxes-subsidies.md +282 -0
  75. data/F24Textbook_MD/04-production/index.md +15 -0
  76. data/F24Textbook_MD/04-production/production.md +178 -0
  77. data/F24Textbook_MD/04-production/shifts.md +296 -0
  78. data/F24Textbook_MD/05-utility/budget-constraints.md +166 -0
  79. data/F24Textbook_MD/05-utility/index.md +15 -0
  80. data/F24Textbook_MD/05-utility/utility.md +136 -0
  81. data/F24Textbook_MD/06-inequality/historical-inequality.md +253 -0
  82. data/F24Textbook_MD/06-inequality/index.md +15 -0
  83. data/F24Textbook_MD/06-inequality/inequality.md +226 -0
  84. data/F24Textbook_MD/07-game-theory/bertrand.md +257 -0
  85. data/F24Textbook_MD/07-game-theory/cournot.md +333 -0
  86. data/F24Textbook_MD/07-game-theory/equilibria-oligopolies.md +96 -0
  87. data/F24Textbook_MD/07-game-theory/expected-utility.md +61 -0
  88. data/F24Textbook_MD/07-game-theory/index.md +19 -0
  89. data/F24Textbook_MD/07-game-theory/python-classes.md +340 -0
  90. data/F24Textbook_MD/08-development/index.md +35 -0
  91. data/F24Textbook_MD/09-macro/CentralBanks.md +101 -0
  92. data/F24Textbook_MD/09-macro/Indicators.md +77 -0
  93. data/F24Textbook_MD/09-macro/fiscal_policy.md +36 -0
  94. data/F24Textbook_MD/09-macro/index.md +14 -0
  95. data/F24Textbook_MD/09-macro/is_curve.md +76 -0
  96. data/F24Textbook_MD/09-macro/phillips_curve.md +70 -0
  97. data/F24Textbook_MD/10-finance/index.md +10 -0
  98. data/F24Textbook_MD/10-finance/options.md +178 -0
  99. data/F24Textbook_MD/10-finance/value-interest.md +60 -0
  100. data/F24Textbook_MD/11-econometrics/index.md +16 -0
  101. data/F24Textbook_MD/11-econometrics/multivariable.md +218 -0
  102. data/F24Textbook_MD/11-econometrics/reading-econ-papers.md +25 -0
  103. data/F24Textbook_MD/11-econometrics/single-variable.md +483 -0
  104. data/F24Textbook_MD/11-econometrics/statsmodels.md +58 -0
  105. data/F24Textbook_MD/12-environmental/KuznetsHypothesis-Copy1.md +187 -0
  106. data/F24Textbook_MD/12-environmental/KuznetsHypothesis.md +187 -0
  107. data/F24Textbook_MD/12-environmental/MAC.md +254 -0
  108. data/F24Textbook_MD/12-environmental/index.md +36 -0
  109. data/F24Textbook_MD/LICENSE.md +11 -0
  110. data/F24Textbook_MD/intro.md +26 -0
  111. data/F24Textbook_MD/references.md +25 -0
  112. data/F24Textbook_MD/summary.yaml +414 -0
  113. metadata +155 -0
@@ -0,0 +1,291 @@
1
+ ---
2
+ title: "Lecture 5 - Production C-D"
3
+ type: slides
4
+ week: 5
5
+ source_path: "/Users/ericvandusen/Documents/Data88E-ForTraining/F24LS/Lecture 5 - Production C-D.pptx"
6
+ ---
7
+
8
+ ## Slide 1: Data 88: Economic Models
9
+
10
+ - Lecture 5: Production & Cobb - Douglas
11
+
12
+ ## Slide 2: Announcements - Project 2
13
+
14
+ - Congrats on finishing Project 1!
15
+ - Project 2 will be released! It is a bit harder than project 1, so be sure to start early.
16
+ - Lab 4 will be released, it is due before next class. It has a portion where you upload a dataset on your own - will be useful for data analysis beyond this class!
17
+ - Don’t cheat on assignments - this includes copy-pasting things from the textbook. It’s ok to consult the textbook, but write the concepts in your own words please. Don’t paste in answers from GenAI
18
+
19
+ ## Slide 3: Sympy and fraction
20
+
21
+ - You can add the following to the sympy commands to have them report numeric / float instead of fractions
22
+ - .N()
23
+ - .evalf()
24
+
25
+ ## Slide 4: np.arange()
26
+
27
+ - numpy.arange([start, ]stop, [step, ]dtype=None)
28
+ - Parameters:
29
+ - start (optional): The starting value of the sequence. The default value is 0 if not provided.
30
+ - stop: The end value (exclusive). This means that the generated array will include numbers up to, but not including, the stop value.
31
+ - step (optional): The spacing between values. The default step is 1.
32
+ - dtype (optional): The data type of the output array. If not specified, it infers the type from the input values.
33
+ - Returns:
34
+ - A NumPy array of evenly spaced values between start and stop with spacing defined by step.
35
+ - arr = np.arange(0, 1, 0.1)
36
+ - [0. 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9]
37
+
38
+ ## Slide 5: Lecture 5 Outline
39
+
40
+ - Overview of Production
41
+ - Factors of Production
42
+ - Total Factor Productivity
43
+ - Cobb-Douglas Production Functions (3D SURFACES!!!!!)
44
+ - Cross-Country Analysis ( this is what the project is)
45
+ - Derivation
46
+ - Cobb Douglas
47
+ - Log of Equation
48
+ - Solve for one variable
49
+ - Intuition
50
+ - Shifts in A (SLIDERS!!!!!!!)
51
+ - What does alpha mean?
52
+ - Returns to scale
53
+
54
+ <details><summary>Speaker notes</summary>
55
+
56
+ Evaluation will take a while
57
+
58
+ </details>
59
+
60
+ ## Slide 6: Mathematical Model
61
+
62
+ - A mathematical relationship ~ a representation of a real world phenomenon
63
+ - How to describe a system with ( few) variables
64
+ - Assumptions - How mathematical properties can drive our model results
65
+ - Data pipeline - how to transform our data to fit the model
66
+ - https://www.econgraphs.org/graphs/micro/consumer\_theory/preferences\_and\_utility/cobb\_douglas\_utility\_3d
67
+
68
+ ## Slide 7: (untitled)
69
+
70
+ ## Slide 8: Name all of the macroeconomic indicators you know
71
+
72
+ <details><summary>Speaker notes</summary>
73
+
74
+ PPI Inflation Unemployment, GDP, Imports Exports Interest Rates, Currency Valuation, Labor Force
75
+
76
+ </details>
77
+
78
+ ## Slide 9: What is GDP?
79
+
80
+ - How do we calculate it?
81
+
82
+ <details><summary>Speaker notes</summary>
83
+
84
+ Three ways to calculate
85
+
86
+ </details>
87
+
88
+ ## Slide 10: Production in the Economy
89
+
90
+ - What is production?
91
+ - How do we quantify a country’s production?
92
+ - Image source: https://static.seattletimes.com/wp-content/uploads/2017/09/194a9290-98a7-11e7-a238-1aeeb8c083e1-780x405.jpg
93
+ - Why would it be important to calculate this?
94
+
95
+ ## Slide 11: (untitled)
96
+
97
+ ## Slide 12: Inputs (or Factors) of Production
98
+
99
+ - Let’s make a list of all the resources that go into producing and selling an iPhone:
100
+ - Chips
101
+ - Cobalt
102
+ - Lithium
103
+ - China - labor assembly
104
+ - California - labor design
105
+ - intellectual property
106
+ - Image source: https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/refurb-iphoneX-spacegray\_AV1?wid=1144&hei=1144&fmt=jpeg&qlt=80&op\_usm=0.5,0.5&.v=1548459945536
107
+
108
+ <details><summary>Speaker notes</summary>
109
+
110
+ Cobalt
111
+ Copper
112
+ Education
113
+ Worker-hours
114
+ Aluminum
115
+ Computers
116
+ Software
117
+ Ships
118
+ Trucks
119
+ Materials
120
+
121
+ </details>
122
+
123
+ ## Slide 13: 40 Bn CHIPS ACT Funding - TMSC Arizona
124
+
125
+ ## Slide 14: Fundamental Idea - simplify for a model
126
+
127
+ - A nation's output is a function of the amount of the factors of production that are utilized in its economy; that is to say output is a function of labor and capital, scaled by some value A.
128
+ - What could A be? Why is it on the outside of the production function?
129
+
130
+ ## Slide 15: Economic Model
131
+
132
+ - Could this be for a firm?
133
+ - Compare across firms?
134
+ - Could this be for an entire country ?
135
+ - Compare across countries ?
136
+ - Could this be for a State?
137
+
138
+ ## Slide 16: Total Factor Productivity (TFP)
139
+
140
+ - Technology or research and development
141
+ - A country with a high TFP can producer far more goods and services than another country with a lower TFP but the same amount of capital and labor
142
+ - Differences between TFP and other factors of production
143
+ - “Scales” production by some factor A - creates proportional increase in output
144
+ - Technology is non-rivalrous
145
+ - Technology is non-excludable
146
+ - Ordinal measure
147
+
148
+ ## Slide 17: How the equation was formulated
149
+
150
+ - Based on the graphs to the right, what would F(K, L) look like?
151
+ - Image source: Hawkins’ 100B; Lecture 4, Slide 9
152
+
153
+ ## Slide 18: Cobb Douglas Orginal Data Visualization - 1928
154
+
155
+ - https://assets.aeaweb.org/asset-server/journals/aer/top20/18.1.139-165.pdf
156
+ - Cobb, C. W.; Douglas, P. H. (1928). "A Theory of Production" . American Economic Review. 18(Supplement): 139–165. JSTOR 1811556. Retrieved 26 September 2016.
157
+
158
+ ## Slide 19: Plotting the Model outcome vs Actual outcome
159
+
160
+ ## Slide 20: Analyze the error rate of the model
161
+
162
+ ## Slide 21: Cobb-Douglas Production Functions
163
+
164
+ - For simplicity sake, Cobb Douglas assume constant returns to scale. That is, alpha + beta = 1. This allows us to rewrite the function in the following way:
165
+ - Where else do we see this function?
166
+
167
+ ## Slide 22: Lecture Notebook 1
168
+
169
+ ## Slide 23: Lecture Notebook
170
+
171
+ ## Slide 24: Capital
172
+
173
+ - A monetary value of the stock or value of all productive, physical assets in an economy (not bonds, stocks or other financial products)
174
+ - Increasing returns to capital
175
+ - At a decreasing rate
176
+ - Fix A, L, alpha
177
+ - Vary K
178
+
179
+ ## Slide 25: Behind the textbook
180
+
181
+ ## Slide 26: (untitled)
182
+
183
+ - Beta = none?
184
+ - np.arange(x,y,z)
185
+
186
+ ## Slide 27: MPK
187
+
188
+ - Diminishing marginal returns to capital
189
+ - What is the intuition behind this?
190
+
191
+ ## Slide 28: Labor
192
+
193
+ - The number of hours worked by all individuals who are willing and able to work within a country for a given year
194
+ - Increasing Returns to Scale
195
+
196
+ ## Slide 29: Marginal Product of Labor
197
+
198
+ - Diminishing Marginal Returns to Labor
199
+ - What is the intuition behind this?
200
+
201
+ ## Slide 30: Cross-Country Comparisons
202
+
203
+ - Cobb and Douglas found that a country’s output can be modeled very well as a weighted average of the log of capital and labor.
204
+ - How can we rearrange the function to only be in terms of one variable?
205
+
206
+ ## Slide 31: Cross-Country Comparisons (cont.)
207
+
208
+ - How can we use the above function to compare countries?
209
+
210
+ ## Slide 32: Shifts in A
211
+
212
+ - Supply or Technology shocks
213
+ - Natural environment
214
+ - Energy prices
215
+ - Significant financial crises
216
+ - What would happen to output?
217
+
218
+ ## Slide 33: What does alpha mean?
219
+
220
+ - Output elasticities of capital and labor: measure the responsiveness of output to a change in the levels of either labor or capital, holding all else constant.
221
+ - Let us assume constant returns to scale. What does alpha > 0.5 mean?
222
+
223
+ ## Slide 34: Returns to scale
224
+
225
+ - Constant Returns to Scale: alpha + beta = 1
226
+ - Decreasing Returns to Scale: alpha + beta < 1
227
+ - Increasing Returns to Scale: alpha + beta > 1
228
+ - What would the last two look like?
229
+
230
+ ## Slide 35: Notebooks
231
+
232
+ - Textbook Chapter - in HTML https://data88e.org/textbook/content/04-production/shifts.html
233
+ - Penn World Tables - Cobb Douglas
234
+ - Project 2
235
+
236
+ ## Slide 36: Penn World Tables File
237
+
238
+ - Download from website
239
+ - Project - transform to csv to read into datascience tables
240
+ - ( Lab - read Excel directly to pandas - then transform to table)
241
+ - Upload to website
242
+
243
+ ## Slide 37: Penn World Tables
244
+
245
+ - https://www.rug.nl/ggdc/productivity/pwt/?lang=en
246
+
247
+ ## Slide 38: Penn World Tables in the Economist
248
+
249
+ - Another tension in China’s push for self-reliance concerns productivity. Total factor productivity (ie, the amount of output per unit of labour and capital) has barely grown under Mr Xi, a marked deceleration from before the financial crisis (see chart 6). The government believes that aiming for self-sufficiency in high-tech industries will encourage innovation and so boost productivity. In fact, the opposite is more likely. In its efforts to boost domestic champions and spur trade with friendly countries, the government will probably end up conferring advantages on firms that are not the most efficient or capable suppliers of a given product, thereby denting productivity. Because lifting productivity is the only lasting way to raise living standards, that is a worrying prospect.
250
+
251
+ ## Slide 39: Penn World Tables
252
+
253
+ - Making prices comparable across economies - USD
254
+ - Different measures of GDP
255
+
256
+ ## Slide 40: Go to textbook page
257
+
258
+ ## Slide 41: Fed Meeting !! Last Wednesday
259
+
260
+ ## Slide 42: They release a set of forecasts
261
+
262
+ - https://www.federalreserve.gov/monetarypolicy/files/fomcprojtabl20240918.pdf
263
+
264
+ ## Slide 43: Fed Dot Plot
265
+
266
+ - Each Dot is an estimate
267
+ - With a lot of data and modeling
268
+
269
+ ## Slide 44: Predictions
270
+
271
+ - GDP
272
+ - Unemployment
273
+ - Inflation
274
+
275
+ ## Slide 45: Expected Inflation
276
+
277
+ ## Slide 46: What does Powell / Fed care about ?
278
+
279
+ - Inflation
280
+ - CPI
281
+ - PCE
282
+ - Core PCE
283
+ - Unemployment
284
+ - Seasonally adjusted
285
+ - Rates
286
+ - https://fred.stlouisfed.org/series/FEDFUNDS
287
+
288
+ ## Slide 47: So many data series
289
+
290
+ ## Slide 48: PCE - Release Data is Friday
291
+