#!/usr/bin/env python # coding: utf-8 # In[36]: import sympy as sy from sympy.solvers.solveset import linsolve import pandas_datareader as pdr import datetime as dt import statsmodels.api as sm import pandas as pd # # Terminologies Of Identification # Before discussing simultaneous-equation models, we should clarify some terminologies that are commonly seen in macroeconomic literature. # # The **identification** was originally a statistical term which describes a model with multiple sets of parameters, but generates the same distribution, therefore the parameters can't be identified by investigating the generated observations. # # In econometric research, identification concerns more about identifying the causality, especially in multiple equation models. For easy demonstration, below is a time series model of three equations. The subscript $t$ represents the time period. # # This is all called **structural model**, because they may portray the structure of economy or behaviors of an economic agent. # \begin{align} # Y_{1t} &= \quad\qquad+\beta_{12}Y_{2t}+\beta_{13}Y_{3t} + \gamma_{11} X_{1t}+ \gamma_{12} X_{2t} +\gamma_{13} X_{3t}+u_{1t}\\ # Y_{2t} &= \beta_{11}Y_{1t}\quad\quad\qquad+\beta_{13}Y_{3t} + \gamma_{21} X_{1t}+ \gamma_{22} X_{2t} +\gamma_{23} X_{3t}+u_{2t}\\ # Y_{2t} &= \beta_{11}Y_{1t}+\beta_{12}Y_{2t} +\quad\qquad+ \gamma_{31} X_{1t}+ \gamma_{32} X_{2t} +\gamma_{33} X_{3t}+u_{2t}\\ # \end{align} # $Y_1$, $Y_2$ and $Y_3$ are **endogenous** variables, i.e. values are determined within the model; $X_1$, $X_2$ and $X_3$ are the **predetermined** variables, which are treated as non-stochastic; $u_1$, $u_2$ and $u_3$ are disturbance terms. Note that we have ceased using terms such as _dependent_ or _independent_ variables as in single equation model any more. # # The _predetermined_ variables are divided into two categories: **exogenous** (such as $X_{1t}, X_{1, t-1}$) and **lagged endogenous** (such as $Y_{1, t-1}$), which are not determined by the model in the current time period. But in practice, the researchers themselves should classify variables based on theoretical grounds or experience. # A common macroeconomic practice is to convert the structural form equations into the **reduced form equations**, which express endogenous variables solely in terms of the predetermined variables and disturbance terms. # It would be considerably concise to define corresponding matrices as following # $$ # \boldsymbol{Y}_t = # \begin{bmatrix} # Y_{1t} \\ # Y_{2t}\\ # Y_{3t} # \end{bmatrix} # $$ # # $$ # \boldsymbol{X}_t = # \begin{bmatrix} # X_{1t} \\ # X_{2t}\\ # X_{3t} # \end{bmatrix} # $$ # # $$ # \boldsymbol{\beta} = # \begin{bmatrix} # 0 & \beta_{12} & \beta_{13}\\ # \beta_{11} & 0 &\beta_{13} \\ # \beta_{11} & \beta_{12} &0 # \end{bmatrix} # $$ # # $$ # \boldsymbol{\Gamma} = # \begin{bmatrix} # \gamma_{11} & \gamma_{12} & \gamma_{13}\\ # \gamma_{21} & \gamma_{22} &\gamma_{23} \\ # \gamma_{31} & \gamma_{32} &\gamma_{33} # \end{bmatrix} # $$ # # $$ # \boldsymbol{u}_t = # \begin{bmatrix} # u_{1}\\ # u_{2} \\ # u_{3} # \end{bmatrix} # $$ # Then structural model in matrix form is # $$ # \boldsymbol{Y}_t = \boldsymbol{\beta}\boldsymbol{Y}_t + \boldsymbol{\Gamma}\boldsymbol{X}_t + \boldsymbol{u}_t # $$ # Rewrite as reduced-form # $$ # \boldsymbol{Y}_t = (\boldsymbol{I}-\boldsymbol{\beta})^{-1}\boldsymbol{\Gamma}\boldsymbol{X}_t+(\boldsymbol{I}-\boldsymbol{\beta})^{-1}\boldsymbol{u}_t # $$ # # Keynesian Cross Model # Here is structural model, it describes the consumption of the economy # $$ # \begin{array}{ll} # \text { Consumption function: } & C_{t}=\beta_{0}+\beta_{1} Y_{t}+u_{t} \quad 0<\beta_{1}<1 \\ # \text { Income identity: } & Y_{t}=C_{t}+I_{t} # \end{array} # $$ # Join both equations and write as reduced form # $$ # Y_t = \frac{\beta_0}{1-\beta_1}+\frac{I_t}{1-\beta_1}+\frac{u_t}{1-\beta_1} # $$ # Or write as # $$ # Y_{t}=\Pi_{0}+\Pi_{1} I_{t}+w_{t}\\ # \begin{aligned} # \Pi_{0} &=\frac{\beta_{0}}{1-\beta_{1}} \\ # \Pi_{1} &=\frac{1}{1-\beta_{1}} \\ # w_{t} &=\frac{u_{t}}{1-\beta_{1}} # \end{aligned} # $$ # Substitute back to consumption function # $$ # \begin{gathered} # C_{t}=\Pi_{2}+\Pi_{3} I_{t}+w_{t} \\ # \Pi_{2}=\frac{\beta_{0}}{1-\beta_{1}}\\ # \Pi_{3}=\frac{\beta_{1}}{1-\beta_{1}} \\ # w_{t}=\frac{u_{t}}{1-\beta_{1}} # \end{gathered} # $$ # Once we have the reduced-form, we can estimate reduced-form coefficients by OLS without suffering from inconsistency. # # Underidentification # This is the basic demand and supply model # \begin{align} # \text{Demand function:}& \quad Q_{t}^{d}=\alpha_{0}+\alpha_{1} P_{t}+u_{1 t} \quad \alpha_{1}<0\\ # \text{Supply function:}& \quad Q_{t}^{s}=\beta_{0}+\beta_{1} P_{t}+u_{2 t} \quad \beta_{1}>0\\ # \text{Equilibrium condition:}& \quad \mathrm{Q}_{t}^{d}=\mathrm{Q}_{t}^{s} # \end{align} # If $u_{1t}$ changes, it means the demand will change due to factor other than $P_t$, which causes the demand curve shifting; so is $u_{2t}$, which causes supply curve shifting. # # However, notice that curve shifting will cause both $P$ and $Q$ change too, this means that $u_{1t}$ and $P_t$ are not independently distributed, so are $u_{2t}$ and $P_t$. This means we can't use OLS to estimate each equations independently. # # Equate the demand and supply # $$\alpha_{0}+\alpha_{1} P_{t}+u_{1 t}=\beta_{0}+\beta_{1} P_{t}+u_{2 t}$$ # Solve for equilibrium $P_t$ # $$ # \begin{gathered} # P_{t}=\Pi_{0}+v_{t} \\ # \Pi_{0}=\frac{\beta_{0}-\alpha_{0}}{\alpha_{1}-\beta_{1}} \\ # v_{t}=\frac{u_{2 t}-u_{1 t}}{\alpha_{1}-\beta_{1}} # \end{gathered} # $$ # Substitute back to demand function to solve for equilibrium quantity # $$ # \begin{gathered} # Q_{t}=\Pi_{1}+w_{t} \\ # \Pi_{1}=\frac{\alpha_{1} \beta_{0}-\alpha_{0} \beta_{1}}{\alpha_{1}-\beta_{1}} \\ # w_{t}=\frac{\alpha_{1} u_{2 t}-\beta_{1} u_{1 t}}{\alpha_{1}-\beta_{1}} # \end{gathered} # $$ # We obtain the reduced-form equations in terms of structural coefficients and disturbance term. We can estimate the reduced-form coefficients $\Pi_{0}$ and $\Pi_{1}$ by OLS. # # Let's say $\Pi_{0}=3$ and $\Pi_{1}=4$, but how do we pin down structural coefficients $\alpha_0$, $\alpha_1$, $\beta_0$ and $\beta_1$. # $$ # \Pi_{0}=\frac{\beta_{0}-\alpha_{0}}{\alpha_{1}-\beta_{1}}\\ # \Pi_{1}=\frac{\alpha_{1} \beta_{0}-\alpha_{0} \beta_{1}}{\alpha_{1}-\beta_{1}} # $$ # Two equations, but four unknowns, there are infinite amount of combination of them to satisfy the restriction, this is the exact question of identification - how to identify the structural coefficient even if we have reduced-form coefficients? # # The answer to this case: _we can't_. # # Because there is not enough information to solve the system, we call this **underidentification**. # Since the problem of underidentification is due to lack of information, how about we give it more information and test if it can be identified. # \begin{align} # \text{Demand function:}& \quad Q^d_{t}=\alpha_{0}+\alpha_{1} P_{t}+\alpha_{2} I_{t}+u_{1 t} \quad &\alpha_{1}<0, \alpha_{2}>0\\ # \text{Supply function:}&\quad Q^s_{t}=\beta_{0}+\beta_{1} P_{t}+u_{2 t} \quad &\beta_{1}>0 # \end{align} # where $I$ is the income of the family. # Equate both function # $$ # \alpha_{0}+\alpha_{1} P_{t}+\alpha_{2} I_{t}+u_{1 t}=\beta_{0}+\beta_{1} P_{t}+u_{2 t} # $$ # And solve for the equilibrium $P_t$ # $$ # P_{t}=\Pi_{0}+\Pi_{1} I_{t}+v_{t}\\ # \begin{aligned} # \Pi_{0} &=\frac{\beta_{0}-\alpha_{0}}{\alpha_{1}-\beta_{1}} \\ # \Pi_{1} &=-\frac{\alpha_{2}}{\alpha_{1}-\beta_{1}} \\ # v_{t} &=\frac{u_{2 t}-u_{1 t}}{\alpha_{1}-\beta_{1}} # \end{aligned} # $$ # Substitute back to demand function to solve for $Q_t$ # $$ # \begin{aligned} # &Q_{t}=\Pi_{2}+\Pi_{3} I_{t}+w_{t} \\ # &\Pi_{2}=\frac{\alpha_{1} \beta_{0}-\alpha_{0} \beta_{1}}{\alpha_{1}-\beta_{1}} \\ # &\Pi_{3}=-\frac{\alpha_{2} \beta_{1}}{\alpha_{1}-\beta_{1}} \\ # &w_{t}=\frac{\alpha_{1} u_{2 t}-\beta_{1} u_{1 t}}{\alpha_{1}-\beta_{1}} # \end{aligned} # $$ # Let's assume $\Pi_0 = 2$, $\Pi_1 = 3$, $\Pi_2 = 4$ and $\Pi_3 = 5$, we have a system of four equations and five unknowns # \begin{align} # 2& =\frac{\beta_{0}-\alpha_{0}}{\alpha_{1}-\beta_{1}} \\ # 3& =-\frac{\alpha_{2}}{\alpha_{1}-\beta_{1}} \\ # 4&=\frac{\alpha_{1} \beta_{0}-\alpha_{0} \beta_{1}}{\alpha_{1}-\beta_{1}} \\ # 5&=-\frac{\alpha_{2} \beta_{1}}{\alpha_{1}-\beta_{1}} # \end{align} # One free variable, the system is still underidentified! # # Exact Identification # We keep adding variables in the model, we will see if it can be identified # # \begin{align} # \text{Demand function:}& \quad Q_{t}=\alpha_{0}+\alpha_{1} P_{t}+\alpha_{2} I_{t}+u_{1 t}\\ # \text{Supply function:}& \quad Q_{t}=\beta_{0}+\beta_{1} P_{t}+\beta_{2} P_{t-1}+u_{2 t} # \end{align} # Equate both functions # $$ # \alpha_{0}+\alpha_{1} P_{t}+\alpha_{2} I_{t}+u_{1 t}=\beta_{0}+\beta_{1} P_{t}+\beta_{2} P_{t-1}+u_{2 t} # $$ # Solve for $P_t$ # $$ # \begin{gathered} # P_{t}=\Pi_{0}+\Pi_{1} I_{t}+\Pi_{2} P_{t-1}+v_{t} \\ # \Pi_{0}=\frac{\beta_{0}-\alpha_{0}}{\alpha_{1}-\beta_{1}} \\ # \Pi_{1}=-\frac{\alpha_{2}}{\alpha_{1}-\beta_{1}} \\ # \Pi_{2}=\frac{\beta_{2}}{\alpha_{1}-\beta_{1}} \\ # v_{t}=\frac{u_{2 t}-u_{1 t}}{\alpha_{1}-\beta_{1}} # \end{gathered} # $$ # Substitute back into demand function to solve for $Q_t$ # $$ # Q_{t}=\Pi_{3}+\Pi_{4} I_{t}+\Pi_{5} P_{t-1}+w_{t}\\ # \Pi_{3}=\frac{\alpha_{1} \beta_{0}-\alpha_{0} \beta_{1}}{\alpha_{1}-\beta_{1}} \\ # \Pi_{4}=-\frac{\alpha_{2} \beta_{1}}{\alpha_{1}-\beta_{1}} \\ # \Pi_{5}=\frac{\alpha_{1} \beta_{2}}{\alpha_{1}-\beta_{1}} \\ # w_{t}=\frac{\alpha_{1} u_{2 t}-\beta_{1} u_{1 t}}{\alpha_{1}-\beta_{1}} # $$ # Finally we obtain six equations and six unknowns. Assume $\Pi_0 = 2$, $\Pi_1 = -3$, $\Pi_2 = 4$, $\Pi_3 = 5$, $\Pi_4 = 6$ and $\Pi_5 = 7$, then solve the system, we obtain all the structural coefficients # In[24]: a0, a1, a2, b0, b1, b2 = sy.symbols("a0, a1, a2, b0, b1, b2") eq0 = sy.Eq(2 * (a1 - b1) - (b0 - a0), 0) eq1 = sy.Eq(-3 * (a1 - b1) + a2, 0) eq2 = sy.Eq(4 * (a1 - b1) - b2, 0) eq3 = sy.Eq(5 * (a1 - b1) - a1 * b0 + a0 * b1, 0) eq4 = sy.Eq(6 * (a1 - b1) + a2 * b1, 0) eq5 = sy.Eq(7 * (a1 - b1) - a1 * b2, 0) sy.solve([eq0, eq1, eq2, eq3, eq4, eq5], (a0, a1, a2, b0, b1, b2)) # # Over Identification # What will happen if we keep adding more variables than necessary? The system will be overidentified, here is the example # \begin{align} # \text{Demand function:}& \quad Q_{t}=\alpha_{0}+\alpha_{1} P_{t}+\alpha_{2} I_{t}+\alpha_{3} R_{t}+u_{1 t}\\ # \text{Supply function:}& \quad Q_{t}=\beta_{0}+\beta_{1} P_{t}+\beta_{2} P_{t-1}+u_{2 t} # \end{align} # Combine and solve for $P_t$ and $Q_t$ # $$ # \begin{aligned} # P_{t} &=\Pi_{0}+\Pi_{1} I_{t}+\Pi_{2} R_{t}+\Pi_{3} P_{t-1}+v_{t} \\ # Q_{t} &=\Pi_{4}+\Pi_{5} I_{t}+\Pi_{6} R_{t}+\Pi_{7} P_{t-1}+w_{t} # \end{aligned} # $$ # where $R_t$ represents wealth. # $$ # \begin{align} # \Pi_{0}&=\frac{\beta_{0}-\alpha_{0}}{\alpha_{1}-\beta_{1}} \quad &\Pi_{1}=-\frac{\alpha_{2}}{\alpha_{1}-\beta_{1}} \\ # \Pi_{2}&=-\frac{\alpha_{3}}{\alpha_{1}-\beta_{1}} \quad &\Pi_{3}=\frac{\beta_{2}}{\alpha_{1}-\beta_{1}} \\ # \Pi_{4}&=\frac{\alpha_{1} \beta_{0}-\alpha_{0} \beta_{1}}{\alpha_{1}-\beta_{1}} \quad &\Pi_{5}=-\frac{\alpha_{2} \beta_{1}}{\alpha_{1}-\beta_{1}} \\ # \Pi_{6}&=-\frac{\alpha_{3} \beta_{1}}{\alpha_{1}-\beta_{1}} \quad &\Pi_{7}=\frac{\alpha_{1} \beta_{2}}{\alpha_{1}-\beta_{1}} \\ # w_{t}&=\frac{\alpha_{1} u_{2 t}-\beta_{1} u_{1 t}}{\alpha_{1}-\beta_{1}} \quad &v_{t}=\frac{u_{2 t}-u_{1 t}}{\alpha_{1}-\beta_{1}} # \end{align} # $$ # Eight equations and seven unknowns, if you get lucky there can be a unique set of structural parameters, however mostly no unique solutions. Therefore, it doesn't mean more variables in the system is better. # # As below shows, $\beta_0$ can't be identified. # In[27]: a0, a1, a2, a3, b0, b1, b2 = sy.symbols("a0, a1, a2, a3, b0, b1, b2") eq0 = sy.Eq(2 * (a1 - b1) - (b0 - a0), 0) eq1 = sy.Eq(-3 * (a1 - b1) + a2, 0) eq2 = sy.Eq(4 * (a1 - b1) + a3, 0) eq3 = sy.Eq(5 * (a1 - b1) - b2, 0) eq4 = sy.Eq(6 * (a1 - b1) - a1 * b0 + a0 * b1, 0) eq5 = sy.Eq(7 * (a1 - b1) + a2 * b1, 0) eq6 = sy.Eq(8 * (a1 - b1) + a3 * b1, 0) eq7 = sy.Eq(9 * (a1 - b1) - a1 * b2, 0) sy.solve([eq0, eq1, eq2, eq3, eq4, eq5, eq6, eq7], (a0, a1, a2, a3, b0, b1, b2)) # # Order Condition # We will use an example to show how to perform order condition and rank condition. # # Consider an extended Keynesian model # $$ # \begin{array}{ll} # \text { Consumption function: } & C_{t} & =\beta_{1}+\beta_{2} Y_{t}-\beta_{3} T_{t}+u_{1 t} \\ # \text { Investment function: } & I_{t} & =\alpha_{0}+\alpha_{1} Y_{t-1}+u_{2 t} \\ # \text { Taxation function: } & T_{t} & =\gamma_{0}+\gamma_{1} Y_{t}+u_{3 t} \\ # \text { Income identity: } & Y_{t} & =C_{t}+I_{t}+G_{t} # \end{array} # $$ # In the model the endogenous variables are $C_t$, $I_t$, $T_t$, and $Y_t$ and the predetermined variables are $G_t$ and $Y_{t-1}$ # **Step 1:** Arrange all equations that variables stay on the left side, disturbance terms on the right side. # $$ # \begin{array}{ll} # \text { Consumption function: } & C_{t} -\beta_{1}+\beta_{2} Y_{t}+\beta_{3} T_{t}=u_{1 t} \\ # \text { Investment function: } & I_{t} -\alpha_{0}-\alpha_{1} Y_{t-1}=u_{2 t} \\ # \text { Taxation function: } & T_{t} -\gamma_{0}-\gamma_{1} Y_{t}=u_{3 t} \\ # \text { Income identity: } & Y_{t} -C_{t}-I_{t}-G_{t}=0 # \end{array} # $$ # **Step 2:** Extract the coefficient matrix like below # $$ # \qquad\quad\text{ Coefficients of the Variables }\\ # \begin{aligned} # &\begin{array}{cccccccccc} # &1 & C_{t} & I_{t} & T_{t} & Y_{t} & Y_{t-1} & G_{t}\\ # \text{Cons. Func.} & -\beta_1 & 1 & 0 & \beta_{3} & \beta_2 & 0 & 0 \\ # \text{Inv. Func.} & -\alpha_0 & 0 & 1 & 0 & 0 & -\alpha_1 & 0\\ # \text{Tax. Func.} & -\gamma_0 & 0 & 0 & 1 & -\gamma_1 & 0 & 0 \\ # \text{Inco. Id.} & 0 & -1 & -1 & 0 & 1 & 0 & -1 \\ # \end{array} # \end{aligned} # $$ # **Step 3:** To identify each equation, we follow a rule called **Order Condition**. # # In a model of $M$ simultaneous equations, in order for an equation to be identified, the number of predetermined variables excluded from the equation must not be less than the number of endogenous variables included in that equation less 1, that is, # $$ # K-k \geq m-1 # $$ # # $$ # \begin{align} # M&= \text{number of endogenous variables in the model}\\ # m&= \text{number of endogenous variables in a given equation}\\ # K&= \text{number of predetermined variables in the model}\\ # k&= \text{number of predetermined variables in a given equation} # \end{align} # $$ # # If $K-k=m-1$, the equation is exact identified, but if $K-k>m-1$, it is overidentified. # # Write a table like below # $$ # \begin{array}{cccc} # & \text { No. of Predetermined } & \text { No. of Endogenous } & \\ # &\text { Variables Excluded, } & \text { Variables Included, } & \\ # & (K-k) & \text { Less One, }(m-1) & \text { Identified? } \\ # \text{Cons. Func.} & 2-0=2 & 3-1=2 & \text { Exactly } \\ # \text{Inv. Func.} & 2-1=1 & 1-1=0 & \text { Overidentified } \\ # \text{Tax. Func.} & 2-0=2 & 2-1=1 & \text { Overidentified } \\ # \text{Inco. Id.} & 2-1=1 & 3-1=2 & \text { Underidentified } # \end{array} # $$ # # Limited Information Methods # **Limited information methods** (LIM) are estimation methods that used on each equation in the system individually, totally ignoring restrictions on other equations. In contrast, **full information methods** (FIM) estimate all equation simultaneously, taking account of restrictions from each equation. # # However, in practice FIM are seldom used for a variety of reason. Let alone computation burden, of most importance is sensitivity to specification error, if any equation out of hundreds of suffer from specification error, the whole model's estimation could be biased. # # Here we only discuss LIM, specifically there three common methods: # 1. Ordinary Least Squares # 2. Indirect Least Squares # 3. Two-Stage Least Squares # ## Ordinary Least Squares # In general, we don't use OLS for system of simultaneous equations due to interdependence of disturbance term and endogenous variables, the estimation results are biased and inconsistent. # # However there is one scenario that OLS can be applied in the contexts of simultaneous equations. This is the case of **recursive** models, consider the following model. # # $$ # \begin{array}{ll} # Y_{1 t}&=\beta_{11} &+\gamma_{11} X_{1 t}+\gamma_{12} X_{2 t}+u_{1 t} \\ # Y_{2 t}&=\beta_{21}+\beta_{22} Y_{1 t} &+\gamma_{21} X_{1 t}+\gamma_{22} X_{2 t}+u_{2 t} \\ # Y_{3 t}&=\beta_{31}+\beta_{32} Y_{1 t}+\beta_{33} Y_{2 t}&+\gamma_{31} X_{1 t}+\gamma_{32} X_{2 t}+u_{3 t} # \end{array} # $$ # where $Y$ and $X$ are endogenous and exogenous variables respectively. Assumptions of disturbance terms # $$ # \operatorname{Cov}\left(u_{1 t}, u_{2 t}\right)=\operatorname{Cov}\left(u_{1 t}, u_{3 t}\right)=\operatorname{Cov}\left(u_{2 t}, u_{3 t}\right)=0 # $$ # which can be called **zero contemporaneous correlation**, if you calculate covariance matrix of the disturbance term vector $\mathbb{u}$, it is expected to be a diagonal matrix. # Now, if you pay close attention, you can see the first equation can actually be estimated by OLS, because all exogenous variables are on right-hand side. # # The equation two has $Y_{1t}$ on the right hand side, however the $u_{1t}$ from $Y_{1t}$ and $u_{2t}$ from $Y_{2t}$ has zero covariance, again it can be estimated by OLS. # # Similarly, the third equations can also be estimated by OLS, because $Y_{1t}$ and $Y_{2t}$ are predetermined in the previous two equations. # ## Indirect Least Squares # **Indirect Least Squares** is the method for obtaining structural coefficients in exact identified model. # \begin{align} # \text{Demand function:}& \quad Q_{t}=\alpha_{0}+\alpha_{1} P_{t}+\alpha_{2} X_{t}+u_{1 t}\\ # \text{Supply function:}& \quad Q_{t}=\beta_{0}+\beta_{1} P_{t}+\beta_{2} P_{t-1}+u_{2 t} # \end{align} # $Q$ and $P$ has their conventional meaning, $X$ can be anything, for this case, we deem it as income. The reduced-form equations are # $$ # \begin{aligned} # P_{t}&=\Pi_{0}+\Pi_{1} X_{t}+\Pi_{2} P_{t-1}+v_{t} \\ # Q_{t}&=\Pi_{3}+\Pi_{4} X_{t}+\Pi_{5} P_{t-1}+w_{t} # \end{aligned} # $$ # Now, let's try with real data, which is excerpt from _Economic Report of the President 2020_. # # # (Example will be updated...) # ## Two Stage Least Squares # Will be updated... # In[ ]: