JDEConomics
JDEConomics
  • 52
  • 1 107 687
Add oil to Dynamic Stochastic General Equilibrium (DSGE) Models
Add oil to Dynamic Stochastic General Equilibrium (DSGE) Models
In this video, I teach you how to add oil to DSGE models. To do this, we will expand the simple real business cycle (RBC) model that we set up in previous tutorials.
The model is straightforward: we add oil as an input in the production function of firms. Now, firms demand capital, labor, and oil to produce output. From the maximization problem, we derive the oil price.
For simplicity, we use an exogenous oil supply, but I explain in more detail the difference between endogenous and exogenous oil supply.
Finally, in the model, we define oil supply and oil demand shocks. We can see how, when the productivity of firms increases, they demand more inputs to produce goods. As the demand for oil increases, the price of oil rises.
When there is a supply shock, the oil supply exceeds oil demand, resulting in a decrease in oil prices. Since the oil supply is exogenous, we cannot determine with certainty what causes it to expand. It follows a random process (AR 1). While simple, this assumption can also be considered realistic. In reality, we cannot accurately predict when an event will result in a change in oil supply. Historically, oil shocks have been associated with war, political instability, COVID-19, the discovery of new oil reserves, the loss of oil transportation at sea, and many other unexpected events that can have a significant impact on oil prices.
------------------------------------------------------------------------------
👉You can learn step by step how to estimate the model in stata here:
ua-cam.com/video/-n2MC26-WEA/v-deo.html
👉If you would like to contact me for research or job proposals, feel free to do so at juandamico@jdeconomics.com
I can provide assistance to international agencies, banks and/or firms.
----------------------------------------------------------------------------
👉Buy the Complete STATA Do file + math solution + math notation from the video at:
jdeconomicstore.com/b/rbc-model-with-oil
👉Download the Dataset for Free at:
jdeconomicstore.com/b/rbc-model-with-oil
👉You can get access to the MAtlab-Dynare course which includes the slides and math for the oil model in this video at:
jdeconomicstore.com/b/dsge-dynare-course
👉Subsctibe my memberships and support more content creation:
ua-cam.com/channels/5P21WGFO4WRUlAiGLcwymg.htmljoin
👉Learn simple RBC DSGE model in Stata:
ua-cam.com/video/sOG3YW0iCQg/v-deo.html&pp=gAQB
👉Learn DSGE Models in Matlab:
ua-cam.com/video/SAfLK8Ji2ZM/v-deo.html&pp=ygUKZHNnZW1hdGxhYg%3D%3D
Переглядів: 1 066

Відео

Download and Install R and R Studio in Simple Steps
Переглядів 9 тис.6 місяців тому
Download and Install R and R Studio in Quick and Simple Steps! In this video I show you How to Install R and RStudio on Windows: Step-by-Step! Link to download R: cran.rstudio.com/ Link to download R Studio: posit.co/download/rstudio-desktop/ Else you can access both easility at: www.jdeconomics.com/r-course/download-r About R and RStudio R is a programming language and software environment spe...
Confidence Bands in Stata Tutorial
Переглядів 3237 місяців тому
Confidence Bands in Stata Tutorial. In this short video I show you how you can shade the area of your forecast confidence bands. In the original Stata tutorial, we had forecasted Brent cude oil prices using a simple AR Model. Then we calculated and added the forecast confidence bands. In that example, the bands were not shaded. Instead t was a plain dash line. Some users have asked me how to sh...
How to calculate the Inflation rate using the CPI series
Переглядів 1,5 тис.9 місяців тому
How to calculate the Inflation rate using the CPI series in Stata In this hands-on tutorial in Stata, I teach you how to calculate the 12-month inflation rate change and the 1-month inflation rate change using the Consumer Price Index (CPI) for the USA. I also teach you how to plot the two series together and make it look professional. In the tutorial, I cover the commands to generate lagged va...
Three Equations New Keynesian DSGE Model
Переглядів 5 тис.11 місяців тому
Three Equations New Keynesian DSGE Model In this session, we'll break down the fundamental equations of the New Keynesian DSGE model in simple terms. Link to buy PART 2: jdeconomicstore.com/b/nk-dsge-model The New Keynesian DSGE model revolves around three main equations that help us understand how the economy works: Output Gap Equation: This equation shows how the difference between actual and...
Time Series Analysis in Stata - AR Forecast
Переглядів 8 тис.Рік тому
Time Series Analisys in Stata - AR Forecast Produce a time series forecast in STATA using an autoregressive (AR) model. In this time series analysis in stata video tutorial, you will learn how to produce an AR forecast using STATA''s built in forecasting tool. Learn how to Estimate and forecast Crude oil Prices! As an example, we will use Brent Crude oil prices series. The series is transformed...
Create and Edit Economics Graphs in Stata
Переглядів 3,9 тис.Рік тому
Create and Edit Economics Graphs in Stata In this tutorial, I will teach you how to create and edit economics graphs in Stata. Creating graphs in Stata is not too complicated; however, it is key to understand what to include in an economics graph. Professionally editing economics graphs is crucial to presenting your data to the public and effectively making your points. In this Stata graphs vid...
Multicollinearity in Linear Regression - EViews
Переглядів 4,3 тис.Рік тому
Welcome to our in-depth tutorial on Multicollinearity in Linear Regression using EViews! 📊 In this video, we'll dive into the world of multicollinearity, a common issue that can affect the accuracy of your linear regression models. Whether you're a beginner or an experienced data analyst, this tutorial will provide you with valuable insights and practical tips on dealing with multicollinearity ...
Time Series Analysis Stationarity in Python
Переглядів 3,4 тис.Рік тому
📊 Time Series Analysis Stationarity in Python - Tutorial Learn how to test if your series is stationary and in case it is not stationary, I will show you have to transform you non stationary series into stationary. Welcome to a new tutorial on JDEConomics! In this video, we dive into the critical topic of stationarity in time series analysis using Python. If you're new here, make sure to subscr...
Test for Unit Roots on Multiple Time Series at Once EViews
Переглядів 7 тис.Рік тому
Test for Unit Roots on Multiple Time Series at Once in EViews In this tutorial, we'll explore how to conduct a unit root test on multiple time series at once in EViews, a popular econometric software package. Many people often wonder how to automate the process of running an ADF or Phillips Perron unit root test on multiple variables when working with a model that involves several variables. In...
VAR Model Example in STATA
Переглядів 13 тис.2 роки тому
VAR Model Example in STATA. Time Series VAR Tutorial: Stata. VAR Forecast Tutorial Example. VAR model Stata tutorial. Learn how to produce out of sample forecasts and add confidence bands in a vector autoregression (VAR) model in Stata. Discover how to produce accurate out-of-sample forecasts with confidence bands using VAR models in Stata. This comprehensive tutorial uses the example of analyz...
Beginners Course: Intro to DSGE models in Dynare-Matlab
Переглядів 7 тис.2 роки тому
Are you a beginner to DSGE models and Dynare-Matlab, but want to get started quickly? In this video, we will introduce the basics of DSGE modeling and provide an easy-to-follow course on how to set up and run a model in Matlab using Dynare. I will explain the steps needed to estimate parameters and solve the model as well as demonstrate some useful tips for successful implementation. 👉Link to B...
Add notes under table - Latex tutorial
Переглядів 7 тис.2 роки тому
Are you looking to add notes to tables or graphs in Latex? Look no further! This tutorial provides a simple and easy method to add notes to your tables using Latex with Overleaf. By using the "\begin{minipage}{length}" command, you can create a small box under the table where you can insert your notes. With the "\small" command, you can adjust the font size of your text, and with the "\vspace{0...
Intro to Data Analysis Visualization with Python, Matplotlib and Pandas
Переглядів 6 тис.2 роки тому
Intro to Data Analysis Visualization with Python, Matplotlib and Pandas: 📊 Introduction and Overview: Time series and forecasting in Python, covering importing data, plotting, formatting graphs, and exporting images using Jupyter Notebook, Pandas, and Matplotlib. 📊 Importing Data: Learn how to import an Excel dataset using Pandas, specifying the file path and setting the first column as the ind...
Install Anaconda Python Jupyter Notebook
Переглядів 8662 роки тому
Install Anaconda Python Jupyter Notebook
DSGE Models in Stata (8): Forecast Tutorial
Переглядів 4,7 тис.2 роки тому
DSGE Models in Stata (8): Forecast Tutorial
Hodrick-Prescott (hp) filter: EViews tutorial
Переглядів 16 тис.2 роки тому
Hodrick-Prescott (hp) filter: EViews tutorial
DSGE Models (7) - Steady State and Impulse Response Functions
Переглядів 8 тис.2 роки тому
DSGE Models (7) - Steady State and Impulse Response Functions
Data filtering and Calibration Stata tutorial
Переглядів 11 тис.2 роки тому
Data filtering and Calibration Stata tutorial
DSGE Models in Stata tutorial
Переглядів 14 тис.3 роки тому
DSGE Models in Stata tutorial
Real Business Cycle Model: Competitive Equilibrium
Переглядів 5 тис.3 роки тому
Real Business Cycle Model: Competitive Equilibrium
Real Business Cycle Model: Firms Problem
Переглядів 6 тис.3 роки тому
Real Business Cycle Model: Firms Problem
Real Business Cycle Model: Household's Problem
Переглядів 11 тис.3 роки тому
Real Business Cycle Model: Household's Problem
Learn Real Business Cycle model - Macroeconomics
Переглядів 28 тис.3 роки тому
Learn Real Business Cycle model - Macroeconomics
ARIMA model forecast with confidence interval in EViews
Переглядів 12 тис.3 роки тому
ARIMA model forecast with confidence interval in EViews
ARCH model mistakes - EViews
Переглядів 3,8 тис.3 роки тому
ARCH model mistakes - EViews
GARCH model - Eviews
Переглядів 26 тис.3 роки тому
GARCH model - Eviews
Cointegration and Error Correction Model in Stata
Переглядів 43 тис.3 роки тому
Cointegration and Error Correction Model in Stata
How to estimate arch model - eviews tutorial complete
Переглядів 40 тис.3 роки тому
How to estimate arch model - eviews tutorial complete
Easiest way to make tables in latex - shortcut
Переглядів 20 тис.3 роки тому
Easiest way to make tables in latex - shortcut

КОМЕНТАРІ

  • @nadyaperezmartinez4251
    @nadyaperezmartinez4251 2 дні тому

    Simple and nice. Thank you!

  • @charliemboussi2296
    @charliemboussi2296 8 днів тому

    Thanks

  • @reanwithkimleng
    @reanwithkimleng 12 днів тому

    And we check stationary only for original data? Not components from decomposition?❤

  • @reanwithkimleng
    @reanwithkimleng 12 днів тому

    Sir we have to do decomposition??❤

  • @anudarib
    @anudarib 13 днів тому

    Very kind of you

  • @PaschalisTilelis-w6c
    @PaschalisTilelis-w6c 15 днів тому

    what if my c and trend aren't stat significant?

    • @JDEconomics
      @JDEconomics 15 днів тому

      You can remove them.

    • @PaschalisTilelis-w6c
      @PaschalisTilelis-w6c 15 днів тому

      @@JDEconomics thank you for answering, so when i do the unit root test, i will choose none, and then when I'll estimate equation i will exclude c?

    • @JDEconomics
      @JDEconomics 15 днів тому

      The constant in the regression can be significant while the one in the unit root test not. Base on the regression significance to decide if you include it in the regression

    • @TswoTswi
      @TswoTswi 15 днів тому

      Okay, thank you!!

  • @oscarkadjo2579
    @oscarkadjo2579 16 днів тому

    Hello! Than you so much! Please which version of E-views did you use ? Thanks!

  • @الحربضدنفسي-ط5م
    @الحربضدنفسي-ط5م 16 днів тому

    I’ve been watching your videos on applying time series analysis with EViews, and I found them super helpful! I was wondering if you could create some videos showing how to do time series analysis using R. Thanks a ton!

    • @JDEconomics
      @JDEconomics 16 днів тому

      Thanks a lot! I am considering it.

  • @zeinelabidineelbechir1421
    @zeinelabidineelbechir1421 18 днів тому

    Si la serie n 'est pas stationnaire apres une deuxieme differenntiation et la variable ne suit pas la loi normale

  • @pretty6125
    @pretty6125 23 дні тому

    If there a case like non stationary at intercept and stationary at trend & intercept. How to conclude it? Do we conclude it as stationary or non stationary?

    • @JDEconomics
      @JDEconomics 23 дні тому

      Sounds like it has a deterministic trend and you got to account for it in the model. Add a trend. The command is @trend

  • @SYASYANADHIRAHHAMEDON
    @SYASYANADHIRAHHAMEDON 24 дні тому

    If I use RStudio to analyze data, can I then use Python to forecast the model? Which one is better? RStudio for Both Analysis and Forecasting or RStudio for Analysis, Python for Forecasting?

  • @SYASYANADHIRAHHAMEDON
    @SYASYANADHIRAHHAMEDON 24 дні тому

    It it very helpful for someone like me who is not familiar with this application, thank you :)

  • @afterschool_racer
    @afterschool_racer 25 днів тому

    thanks man. you saved me from real pressure. you are the best.

    • @JDEconomics
      @JDEconomics 25 днів тому

      You’re welcome! 😊 Please feel free to subscribe and share my channel with your network. That way, you can help me 😊

  • @Coraline_stoker
    @Coraline_stoker Місяць тому

    this video really helped me out thankyou, how would i calculate multicollinearity in var model

  • @hamismiraji1894
    @hamismiraji1894 Місяць тому

    so impressive but please could You share with us the text cod ?

    • @JDEconomics
      @JDEconomics 28 днів тому

      There’s a link in the description of the video. Cheers

  • @AMALKRISHNAN.K-u3i
    @AMALKRISHNAN.K-u3i Місяць тому

    Great tutorial! Thanks for this one..

  • @reematripathy
    @reematripathy Місяць тому

    Sir vey nicely explained. Kindly let me know how to incorporate the effect of exogenous variables?

    • @JDEconomics
      @JDEconomics Місяць тому

      Thanks! There is a box in the var estimation window that says “exogenous variables”. Cheers

  • @lucasdeoto3502
    @lucasdeoto3502 Місяць тому

    Simple and straightforward! Great tutorial! Thanks!

  • @nadabedir1988
    @nadabedir1988 Місяць тому

    Hello, does the cyclical component represent the output gap? or how do I calculate output gap on e-views using HP Filter?

    • @JDEconomics
      @JDEconomics Місяць тому

      Yes it is. Its the difference between the actual gdp and the trend. Cheers

    • @adindamaulanadiningrat4089
      @adindamaulanadiningrat4089 Місяць тому

      So the result for the output gap is on the cyclical component? ​@@JDEconomics

  • @dreamofaneye8946
    @dreamofaneye8946 Місяць тому

    It realy worth my time watching it

  • @phebe1505
    @phebe1505 Місяць тому

    This video has opened my eyes. What a life savior!

  • @shailyagarwal966
    @shailyagarwal966 2 місяці тому

    It's helpful , Thank you

  • @shahnazkhatun5687
    @shahnazkhatun5687 2 місяці тому

    Sir How to write equation estimation

  • @giorgioucropina1618
    @giorgioucropina1618 2 місяці тому

    You're great!

  • @ShahrzadOLSPAcademy
    @ShahrzadOLSPAcademy 2 місяці тому

    hello what is the solution when we use macroecomic variables with structural breaks in our panel data analysis? whats the unit root test we should conduct there?

  • @alemayoaba2335
    @alemayoaba2335 2 місяці тому

    please give me do file because i can not buy it

  • @annnjeri6959
    @annnjeri6959 2 місяці тому

    How can i drop an insignificant lag in a model arima(7,0,5) without ar lag 3 & 5

  • @manjushreejh5990
    @manjushreejh5990 2 місяці тому

    Thank you sooooo much for such beautiful clear explanation

  • @manjushreejh5990
    @manjushreejh5990 2 місяці тому

    Thank you so much . Very clear explanation.

  • @meghnabaskar
    @meghnabaskar 2 місяці тому

    intuitively speaking, the result: "fed rate is not useful to predict inflation" -- does that make sense?

    • @JDEconomics
      @JDEconomics 2 місяці тому

      That’s just the hypothesis of the test. It’s rejected based on the p-values. Intuitively, under normal circumstances, inflation helps predict the rate, and vice versa.

  • @alipaf2002
    @alipaf2002 2 місяці тому

    How can we do BG test ARIMA after estimation?

  • @talakudula
    @talakudula 2 місяці тому

    Very direct, thanks

  • @its_msCool
    @its_msCool 2 місяці тому

    thank you sir

  • @inaninki
    @inaninki 2 місяці тому

    Your videos are mesmerizingly educative. I wonder if you are going to upload a video about DCC-GARCH models. I can join your channel if you have already gotten one. Please reply below this comment. Thanks in advance mate! :)

    • @JDEconomics
      @JDEconomics 2 місяці тому

      I dont have a video covering that topic yet. Sorry about that. Regards, JD

  • @bulelanjemla7894
    @bulelanjemla7894 2 місяці тому

    I have watched almost all your videos and they are good. I used your two videos on VAR model using Stata and I literally followed your guide for my time series project. I am now studying for my exams and your videos have made this course more fascinating than my course at uni has done. Thank you sir!🙇‍♀️

    • @JDEconomics
      @JDEconomics 2 місяці тому

      Great to hear! I wish you good luck at Uni! Cheers, JD

  • @bulelanjemla7894
    @bulelanjemla7894 2 місяці тому

    Best time series "lecturer" 🙇‍♀️

  • @sralaophoneshop5028
    @sralaophoneshop5028 2 місяці тому

    Thank you so much from Cambodia.

    • @JDEconomics
      @JDEconomics 2 місяці тому

      @@sralaophoneshop5028 no problem! Cheers

  • @MatteoDelfrate
    @MatteoDelfrate 3 місяці тому

    You saved my final university thesis, you will always be my hero ❤❤❤

    • @JDEconomics
      @JDEconomics 3 місяці тому

      Thanks a lot! Congratulations!!

  • @willemwavefoe553
    @willemwavefoe553 3 місяці тому

    Youre amazing

  • @thepizzaman4768
    @thepizzaman4768 3 місяці тому

    1:22 league of legends folder jumpscare

  • @madelynetabatagalvez8681
    @madelynetabatagalvez8681 3 місяці тому

    MUCHAS GRACIAS🎉🎉🎉

  • @gonzalojuaquinalepezo
    @gonzalojuaquinalepezo 3 місяці тому

    U know shit is real when indian guys are listening, instead of teaching. The best Stata VAR video so far

  • @tasospetridis872
    @tasospetridis872 3 місяці тому

    What we do the analysis with general forms of functions, like f(Kt,1-Ht) and no specific Cobb Douglas or other. How the equations are modified?

  • @paranikatharmakulasingam4174
    @paranikatharmakulasingam4174 3 місяці тому

    Hi sir immediately i need Your help

    • @JDEconomics
      @JDEconomics 3 місяці тому

      You can send me an email. Cheers

    • @paranikatharmakulasingam4174
      @paranikatharmakulasingam4174 3 місяці тому

      @@JDEconomics sir yesterday i sent the mail...sir please consider my request ...its support to do my research

    • @paranikatharmakulasingam4174
      @paranikatharmakulasingam4174 3 місяці тому

      @@JDEconomics sir i need your help immediately 😟.... there is no videos to clarify my doubt

    • @paranikatharmakulasingam4174
      @paranikatharmakulasingam4174 3 місяці тому

      @@JDEconomics sir in the diagnostics test all p values are not greater than 0.05 ....what i do? 22nd and 23rd lags have less than 0.05 residual.....sir can you give a solution?

  • @bartoyeah4226
    @bartoyeah4226 3 місяці тому

    what a legend! thanks

  • @buatkuliah-cq8qn
    @buatkuliah-cq8qn 3 місяці тому

    hello sir, i would like to ask about the VAR estimate. What should i do if the that we choose is 4 and when i estimate with "varsoc" the best estimate using lag 4, and i try again with lag 5 and the best estimate changes using lag 5. Then, what should i choose?

    • @JDEconomics
      @JDEconomics 3 місяці тому

      Hi! Use normally what the lag length suggests. Also, take into account that adding more lags may affect the impulse response functions smoothness.

  • @missedcall5426
    @missedcall5426 3 місяці тому

    I love you man.. 😅😅

  • @oluwaseunabegunde9938
    @oluwaseunabegunde9938 4 місяці тому

    Which software did you use for this please?

  • @souravsahu5129
    @souravsahu5129 4 місяці тому

    Very useful

  • @buatkuliah-cq8qn
    @buatkuliah-cq8qn 4 місяці тому

    hello sir, what if the data use lag 5 but when we write varlmar only 2 lag are appears?