{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## DeLong: Teaching Economics \n", "\n", "Last edited: 2019-10-09\n", "\n", "# Introduction: Math Tools \n", "\n", "#### Due ???? via upload to ??? \n", "\n", "### J. Bradford DeLong \n", "\n", " \n", "\n", "You should have gotten to this point vis this link: \n", "\n", " \n", "\n", "This second introductory notebook will remind—well, at least familiarize—you with some math tools useful in economics:\n", "\n", " \n", "\n", "### Table of Contents \n", "\n", "1. [Math Review](#math)\n", "2. [Economics Review: Measuring the Economy](#chapter_2)\n", "3. [Economics Review: Economic Thought](#thought)\n", "\n", " " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "There will be some questions for you in the notebook. For free response questions, write your answers in the provided markdown cell that starts with ANSWER:. Do not change the heading, and write your entire answer in that one cell. \n", "\n", "For questions that are to be answered numerically, there is a code cell that starts with: \n", "\n", " __# ANSWER__ \n", " \n", "and has a line in which there is a variable (like \"X\") currently set to underscores so:\n", "\n", " X = ___\n", " \n", "Replace those underscores with your final answer. It is okay to make other computations in that cell and others, so long as you set the variable to your answer.\n", " \n", " " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Math as a Tool " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Suppose a quantity grows at a steady proportional rate of 3% per year...\n", "\n", "...How long will it take to double?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# ANSWER\n", "import math\n", "n=math.log(2)/math.log(1.03)\n", "print(n)\n", "TIME_TO_DOUBLE = 23.45" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Quadruple?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# ANSWER\n", "import math\n", "n=math.log(4)/math.log(1.03)\n", "print(n)\n", "TIME_TO_QUADRUPLE = 46.90" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Grow 1024-fold?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# ANSWER\n", "import math\n", "n=math.log(1024)/math.log(1.03)\n", "print(n)\n", "TIME_TO_1024 = 234.50" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Suppose we have a quantity x(t) that varies over time following the equation: \n", "\n", "$ \\frac{dx(t)}{dt} = -(0.06)x + 0.36 $\n", "\n", "$ \\frac{dx(t)}{dt} - \\frac{d(6)}{dt} = -(0.06)(x - 6) $\n", "\n", "$ \\frac{dx(t)}{dt} = -(0.06)(x - 6) $\n", "\n", "$ \\frac{dy(t)}{dt} = -(0.06)y $" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Without integrating the equation:\n", "\n", "\n", "$1.$ Tell me what the long-run steady-state value of $x$--that is, the limit of $x$ as $t$ approaches in infinity--is going to be." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "steady_state_val = 6" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ Suppose that the value of $x$ at time $t=0$, $x(0)$ equals 12. Once again, without integrating the equation, tell me how long it will take x to close half the distance between its initial value of 12 and its steady-state value. " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "half_dist_time = 12\n", "import math\n", "t=math.log(16)/0.06\n", "print(t)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ How long will it take to close 3/4 of the distance? " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "three_fourth_time = 23" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$4.$ $7/8$ of the distance? " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "seven_eighth_time = 35" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$5.$ $15/16$ of the distance?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "fifteen_sixteenth = 46" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now you are allowed to integrate $\\frac{dx(t)}{dt} = -(0.06)x + 0.36$.\n", "\n", "$1.$ Write down and solve the indefinite integral." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "$ \\frac{dx(t)}{dt} - \\frac{d(6)}{dt} = -(0.06)(x - 6)$\n", " \n", "$ \\frac{dy(t)}{dt} = -(0.06)y $\n", "\n", "$\\int \\frac{dy(t)}{y} = \\int -(0.06)dt$\n", "\n", "$\\ln y = -0.06t + c$\n", "\n", "$y=c_{1}e^{-0.06t}$\n", "\n", "$x=c_{1}e^{-0.06t}+6$\n", "\n", "\n", " \n", "\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ Write down and solve the definite integral for the initial condition $x(0) = 12$." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "$x=c_{1}e^{-0.06t}+6$\n", " \n", "$x(0)=12$\n", "\n", "$c_{1}=6$\n", "\n", "$x=6e^{-0.06t}+6$\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ Write down and solve the definite integral for the initial condition $x(0) = 6$." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "$x=c_{1}e^{-0.06t}+6$\n", " \n", "$x(0)=6$\n", "\n", "$c_{1}=0$\n", "\n", "$x=6$ \n", "\n", "\n", "\n", "" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Suppose we have a quantity $z = (\\frac{x}{y})^\\beta$\n", "\n", "Suppose $x$ is growing at 4% per year and that $\\beta=1/4$:\n", "\n", "$1.$ How fast is $z$ growing if $y$ is growing at 0% per year? " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "zero_per_growth = 1%" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ If $y$ is growing at 2% per year?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "two_per_growth = 0.5%" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ If $y$ is growing at 4% per year?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "four_per_growth = 0%" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Rule of 72 (Use it for the next four questions)\n", "\n", "1. If a quantity grows at about 3% per year, how long will it take to double?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "time_to_double = 24" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ If a quantity shrinks at about 4% per year, how long will it take it to halve itself?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "time_to_half = 18" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ If a quantity doubles five times, how large is it relative to its original value?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "doubled_five_times_ratio = 32" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$4.$ If a quantity halves itself three times, how large is it relative to its original value?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "halved_three_times_ratio = 0.125" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Interactive Model for Rule of 72" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In future problem sets, you will build models of your own, but for now, look over this code. Its a simple model that shows what happens as you adjust a single parameter (the interest rate) and its effect on the outcome (the time to double). First we need to make sure all of our packages are imported." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", "import numpy as np\n", "from ipywidgets import interact, IntSlider\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Our model is going to be graph that shows what happens as the interest rate varies." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def graph_rule_of_72(interest_rate):\n", " # np.linspace takes values evenly spaced between a stop and end point. In this case,\n", " # will take 30 values between 1 and 10. These will be our x values in the graph.\n", " x = np.linspace(1,10,30)\n", " \n", " # Here we create are corresponding y values\n", " y = 72 / x\n", " \n", " print('Time to double:', 72 / interest_rate, 'years')\n", " \n", " # graphing our lines\n", " plt.plot(x,y)\n", " # graphing the specific point for our interest_rate\n", " plt.scatter(interest_rate, 72 / interest_rate, c='r')\n", " \n", " plt.xlabel('interest rate (%)')\n", " plt.ylabel('time (years)')\n", " plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "When we call `interact`, select the function that we want to interact with (`graph_rule_of_72`) and tell it what the value we want its parameters to take on. In this case, `graph_rule_of_72` only takes one parameter, `interest_rate`, and we choose to put an adjustable slider there. You can check out the [ipywidget examples](https://github.com/jupyter-widgets/ipywidgets/blob/master/docs/source/examples/Index.ipynb) for more uses." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "interact(graph_rule_of_72, interest_rate=IntSlider(min=1,max=10,step=1))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Why do DeLong and Olney think that the interest rate and the level of the stock market are important macroeconomic variables?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### What are the principal flaws in using national product per worker as a measure of material welfare? Given these flaws, why do we use it anyway?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### What is the difference between the nominal interest rate and the real interest rate? Why do DeLong and Olney think that the real interest rate is more important?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Review: Measuring the Economy Concepts and Quantities " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### National Income and Product Accounting\n", "\n", "Explain whether or not, why, and how the following items are included in the calculations of national product:\n", "\n", "$1.$ Increases in business inventories. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "yes, so that New goods that are produced but go unsold will still be counted in the year in which they are produced. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ Fees earned by real estate agents on selling existing homes." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "yes. The service of real estate agents needs to be counted." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ Social Security checks written by the government. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "no. they do not\n", "involve the production of any good or service" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$4.$ Building of a new dam by the Army Corps of Engineers." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "yes. The goods and services purchased by the government to build the dam will count in GDP." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$5.$ Interest that your parents pay on the mortgage they have on their house." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "no. It is not assumed to flow from the production of\n", "goods and services. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$6.$ Purchases of foreign-made trucks by American residents" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", "Purchases of foreign-made trucks by American residents are counted in the calculation of GDP. They enter GDP negatively through the category IM and positively through C.\n", "In reality, C may be slightly greater than IM in magnitude. The net contribution to GDP would be positive due to the production of these American services. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### In or Out of National Product? And Why\n", "\n", "Explain whether or not, why, and how the following items are included in the calculation of national product:\n", "\n", "$1.$ The sale for $\\$25,000$ of an automobile that cost $\\$20,000$ to manufacture that had been produced here at home last year and carried over in inventory." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ The sale for $\\$35,000$ of an automobile that cost $\\$25,000$ to manufacture newly- made at home this year." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", " " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ The sale for $\\$45,000$ of an automobile that cost $\\$30,000$ to manufacture that was newly-made abroad this year and imported." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$4.$ The sale for $\\$25,000$ of an automobile that cost $\\$20,000$ to manufacture that was made abroad and imported last year." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### In or Out of National Product? And Why II\n", "\n", "Explain whether or not, why, and how the following items are included in the calculation of GDP:\n", "\n", "$1.$ The purchase for \\$500 of a dishwasher produced here at home this year." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", " " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ The purchase for $500 of a dishwasher made abroad this year." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ The purchase for $500 of a used dishwasher." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", " n GNP." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$4.$ The manufacture of a new dishwasher here at home for $500 of a dishwasher that\n", "then nobody wants to buy." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", " " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Components of National Income and Product\n", "\n", "Suppose that the appliance store buys a refrigerator from the manufacturer on December 15, 2018 for $\\$600$, and that you then buy that refrigerator on January 15, 2019 for $\\$1000$:\n", "\n", "$1.$ What is the contribution to GDP in 2018? " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "contribution_2018 = " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ How is the refrigerator accounted for in the NIPA in 2019?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ What is the contribution to GDP in 2019?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "contribution_2019 =" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$4.$ How is the refrigerator accounted for in the NIPA in 2019?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "# These lines are reading in CSV files and creating dataframes from then, you don't have to change about them!\n", "\n", "import pandas as pd\n", "import numpy as np\n", "\n", "unemployment = pd.read_csv(\"data/Unemployment.csv\")\n", "quarterly_acc = pd.read_csv(\"data/Quarterly_Accounts.csv\")\n", "from_2007 = quarterly_acc.loc[(quarterly_acc[\"Year\"].isin(np.arange(2007, 2018)))]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Estimating National Product\n", "\n", "The Bureau of Economic Analysis measures national product in two different ways: as total expenditure on the economy’s output of goods and services and as the total income of everyone in the economy. Since – as you learned in earlier courses – these two things are the same, the two approaches should give the same answer. But in practice they do not.\n", "\n", "We have provided a data table `quarterly_gdp` that contains quarterly data on real GDP measured on the expenditure side (referred to in the National Income and Product Accounts as “Real Gross Domestic Product, chained dollars”) and real GDP measured on the income side (referred to as “Real Gross Domestic Income, chained dollars”). The table refers to Real Gross Dometic Product as \"Real GDP\" and to Real Gross Dometic Income as \"Real GDI\", and they are measured in billions of dollars. (Note: You will not have to use Nominal GDP)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Another table, `from_2007`, has been created from `quarterly_gdp`, and includes information from 2007 to 2017. \n", "Below is a snippet from `from_2007`:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from_2007.head(10)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$1.$ Compute the growth rate at an annual rate of each of the two series by quarter for\n", "2007:Q1–2012:Q4." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "gdi_rate = ___\n", "gdp_rate = ___\n", "from_2007" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ Describe any two things you see when you compare the two series that you find\n", "interesting, and explain why you find them interesting." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### Calculating Real Magnitudes:\n", "\n", "$1.$ When you calculate real national product, do you do so by dividing nominal national product by the price level or by subtracting the price level from nominal national product? " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", " dividing nominal national product by the price level" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ When you calculate the real interest rate, do you do so by dividing the nominal interest rate by the price level or by subtracting the inflation rate from the nominal interest rate? " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", " subtracting the inflation rate from the nominal interest rate" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ Are your answers to (a) and (b) the same? Why or why not?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:\n", " no. The interest rate is a ratio." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Unemployment Rate\n", "\n", "Use the `unemployment` table provided to answer the following questions. ***All numbers (other than percents) are in the thousands.***" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here are the first five entries of the table." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "unemployment.head()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### What, roughly, was the highest level the U.S. unemployment rate (measured as Percent Unemployed of Labor Force in the table) reached in:\n", "\n", "$1.$ The 20th century?\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "unemployment.sort_values('Percent Unemployed\\nof\\nlabor\\nforce', ascending=False)\n", "1982" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ The past fifty years? " ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "1982\n", "un2=unemployment[unemployment[\"Year\"]>=1964]\n", "un2.sort_values('Percent Unemployed\\nof\\nlabor\\nforce', ascending=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ The twenty years before 2006?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "1992\n", "un3=unemployment[39:59]\n", "un3.sort_values(\"Percent Unemployed\\nof\\nlabor\\nforce\", ascending=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$4.$ Given your answers to (1) through (3), Do you think there is a connection between your answer to the question above and the fact that Federal Reserve Chair Alan Greenspan received a five-minute standing ovation at the end of the first of many events marking his retirement in 2005?" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### The State of the Labor Market\n", "\n", "$1.$ About how many people lose or quit their jobs in an average year?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "unemployment" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ About how many people get jobs in an average year?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "average_getters = ___" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ About how many people are unemployed in an average year?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "average_unemployed = ___" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$4.$ About how many people are at work in an average year?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "average_workers = ___" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$5.$ About how many people are unemployed now?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "unemployed_now = ___" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "#### National Income Accounting:\n", "\n", "$1.$ What was the level of real GDP in 2005 dollars in 1970?" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "scrolled": true }, "outputs": [], "source": [ "quarterly_acc.loc[90:98]\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$2.$ What was the rate of inflation in the United States in 2000?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "quarterly_acc.loc[211:215]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "$3.$ Explain whether or not, how, and why the following items are included in the calculation of GDP: (i) rent you pay on an apartment, (ii) purchase of a used textbook, (iii) purchase of a new tank by the Department of Defense, (iv) watching an advertisement on youtube." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ " ANSWER:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Congratulations, you have finished your first assignment for Econ 101B! Run the cell below to submit all of your work. Make sure to check on OK to make sure that it has uploaded." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Some materials this notebook were taken from [Data 8](http://data8.org/), [CS 61A](http://cs61a.org/), and [DS Modules](http://data.berkeley.edu/education/modules) lessons." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "----\n", "\n", " \n", "\n", "## Introduction: Python and Economics \n", "\n", "\n", "\n", "### Catch Our Breath—Further Notes:\n", "\n", "
\n", "\n", "----\n", "\n", "* weblog support: \n", "* nbViewer: \n", "* datahub: \n", "\n", " \n", "\n", "----" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "\n", "\n", "" ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.1" } }, "nbformat": 4, "nbformat_minor": 4 }