Giter VIP home page Giter VIP logo

Comments (2)

bashtage avatar bashtage commented on August 17, 2024

You are seeing constant values because for a constant mean and you are seeing the mean forecasts (which are by construction constant). If you want to look at the forecast variances, you should look at the variances attribute.

In your case:

You are looking at the wrong value. result.variance is what you want.

print(result.variance.values[-1])
[530.57831213 534.01591322 537.4535143  540.89111539 544.32871648]

Or in a more traditional dataset:

from arch.data import sp500

y = sp500.load()["Adj Close"].pct_change().dropna()
model = arch_model(y, rescale=True)
model = model.fit(disp='off')
result = model.forecast(horizon=5)
print(result.variance)
                h.1       h.2       h.3       h.4       h.5
Date
2018-12-31  3.59647  3.568502  3.540887  3.513621  3.486701

from arch.

Vasudeva-bit avatar Vasudeva-bit commented on August 17, 2024

Oh! Thanks for clarification.

from arch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.