This document contains the release notes of HARK. HARK aims to produce an open source repository of highly modular, easily interoperable code for solving, simulating, and estimating dynamic economic models with heterogeneous agents.
For more information on HARK, see our Github organization.
Release Data: TBD
- FrameAgentType for modular definitions of agents #865 #1064
- Frame relationships with backward and forward references, with plotting example #1071
- PortfolioConsumerFrameType, a port of PortfolioConsumerType to use Frames #865
- Input parameters for cyclical models now indexed by t #1039
- A IndexDistribution class for representing time-indexed probability distributions #1018.
- Adds new consumption-savings-portfolio model
RiskyContrib, which represents an agent who can save in risky and risk-free assets but faces frictions to moving funds between them. To circumvent these frictions, he has access to an income-deduction scheme to accumulate risky assets. PR: #832. See this forthcoming REMARK for the model’s details.
- ‘cycles’ agent property moved from constructor argument to parameter #1031
- Uses iterated expectations to speed-up the solution of
RiskyContribwhen income and returns are independent #1058.
ConsPortfolioSolverclass for solving portfolio choice model replaces
ConsPortfolioDiscreteSolverclass for solving portfolio choice model when allowed share is on a discrete grid #1047
ConsPortfolioJointDistSolverclass for solving portfolio chioce model when the income and risky return shocks are not independent #1047
- Using Lognormal.from_mean_std in the forward simulation of the RiskyAsset model #1019
- Fix bug in DCEGM’s primary kink finder due to numpy no longer accepting NaN in integer arrays #990.
- Add a general class for consumers who can save using a risky asset #1012.
- Add Boolean attribute ‘PerfMITShk’ to consumption models. When true, allows perfect foresight MIT shocks to be simulated. #1013.
- Track and update start-of-period (pre-income) risky and risk-free assets as states in the
- distribute_params now uses assign_params to create consistent output #1044
- The function that computes end-of-period derivatives of the value function was moved to the inside of
ConsRiskyContrib’s solver #1057
np.fill(np.nan)to clear or initialize the arrays that store simulations. #1068
- Add Boolean attribute ‘neutral_measure’ to consumption models. When true, simulations are more precise by allowing permanent shocks to be drawn from a neutral measure (see Harmenberg 2021). #1069
- Fix mathematical limits of model example in
- Fix bug in
calc_normal_style_pars_from_lognormal_parsdue to math error. #1076
- Fix bug in
AgentCountparameter is updated. #1089
Release Data: March 4, 2021
- Converts non-mathematical code to PEP8 compliant form #953
- Adds a constructor for LogNormal distributions from mean and standard deviation #891
- Uses new LogNormal constructor in ConsPortfolioModel #891
- calcExpectations method for taking the expectation of a distribution over a function [#884](https://github.com/econ-ark/HARK/pull/884/] (#897)[https://github.com/econ-ark/HARK/pull/897/)
- Implements the multivariate normal as a supported distribution, with a discretization method. See #948.
- Centralizes the definition of value, marginal value, and marginal marginal value functions that use inverse-space interpolation for problems with CRRA utility. See #888.
- MarkovProcess class used in ConsMarkovModel, ConsRepAgentModel, ConsAggShockModel #902 #929
- replace HARKobject base class with MetricObject and Model classes #903
- Add repr and eq methods to Model class #903
- Adds SSA life tables and methods to extract survival probabilities from them #986.
- Adds the U.S. CPI research series and tools to extract inflation adjustments from it #930.
- Adds a module for extracting initial distributions of permanent income (
pLvl) and normalized assets (
aNrm) from the SCF #932.
- Fix the return fields of
- Corrects location of constructor documentation to class string for Sphinx rendering #908
- Adds a module with tools for parsing and using various income calibrations from the literature. It includes the option of using life-cycle profiles of income shock variances from Sabelhaus and Song (2010). See #921, #941, #980.
- remove “Now” from model variable names #936
- remove Model.call; use Model init in Market and AgentType init to standardize on parameters dictionary #947
- Moves state MrkvNow to shocks[’Mrkv’] in AggShockMarkov and KrusellSmith models #935
init_lifecyclewith an actual life-cycle calibration #951.
- Move AgentType constructor parameters docs to class docstring so it is rendered by Sphinx.
- Remove uses of deprecated time.clock #887
- Change internal representation of parameters to Distributions to ndarray type
- Rename IncomeDstn to IncShkDstn
- AgentType simulate() method now returns history. #916
- Rename DiscreteDistribution.drawDiscrete() to draw()
- Update documentation and warnings around IncShkDstn #955
- Adds csv files to
Release Data: Nov. 05 2020
- Namespace variables for the Market class #765
- We now have a Numba based implementation of PerfForesightConsumerType model available as PerfForesightConsumerTypeFast #774
- Namespace for exogenous shocks #803
- Namespace for controls #855
- State and poststate attributes replaced with state_now and state_prev namespaces #836
Release Date: 08-08-2020
- Add a custom KrusellSmith Model #762
- Simulations now uses a dictionary
historyto store state history instead of
- Removed time flipping and time flow state, “forward/backward time” through data access #570
- Simulation draw methods are now individual distributions like
- unpackcFunc is deprecated, use unpack(parameter) to unpack a parameter after solving the model #784
- Remove deprecated Solution Class, use HARKObject across the codebase #772
- Add option to find crossing points in the envelope step of DCEGM algorithm #758
- Fix reset bug in the behaviour of AgentType.resetRNG(), implemented individual resetRNG methods for AgentTypes #757
- Seeds are set at initialisation of a distribution object rather than draw method #691 #750, #729
- Deal with portfolio share of ‘bad’ assets #749
- Fix bug in make_figs utilities function #755
- Fix typo bug in Perfect Foresight Model solver #743
- Add initial support for logging in ConsIndShockModel #714
- Speed up simulation in AggShockMarkovConsumerType #702
- Fix logic bug in DiscreteDistribution draw method #715
- Implemented distributeParams to distributes heterogeneous values of one parameter to a set of agents #692
- NelderMead is now part of estimation #693
- Fix typo bug in parallel #682
- Fix DiscreteDstn to make it work with multivariate distributions #646
- BayerLuetticke removed from HARK, is now a REMARK #603
- cstwMPC removed from HARK, is now a REMARK #666
- SolvingMicroDSOPs removed from HARK, is now a REMARK #651
- constructLogNormalIncomeProcess is now a method of IndShockConsumerType #661
- Discretize continuous distributions #657
- Data used in cstwMPC is now in HARK.datasets #622
- Refactor checkConditions by adding a checkCondition method instead of writing custom checks for each condition #568
- Examples update #768, #759, #756, #727, #698, #697, #561, #654, #633, #775
Release Date: 17-04-2020
Release Date: 24-03-2020
- Default parameters dictionaries for ConsumptionSaving models have been moved from ConsumerParameters to nearby the classes that use them. #527
- Improvements and cleanup of ConsPortfolioModel, and adding the ability to specify an age-varying list of RiskyAvg and RiskyStd. #577
- Rewrite and simplification of ConsPortfolioModel solver. #594
Release Date: 05-03-2020
- Last release to support Python 2.7, future releases of econ-ark will support Python 3.6+ #478
- Move non-reusable model code to examples directory, BayerLuetticke, FashionVictim now in examples instead of in HARK code #442
- Load default parameters for ConsumptionSaving models #466
- Improved implementaion of parallelNelderMead #300
Release Date: 12-12-2019
- Fixed slicing error in minimizeNelderMead. (#460)
- Fixed matplotlib GUI error. (#444)
- Pinned sphinx dependency. (#436)
- Fixed bug in ConsPortfolioModel in which the same risky rate of return would be drawn over and over. (#433)
- Fixed sphinx dependency errors. (#411)
- Refactored simultation.py. (#408)
- AgentType.simulate() now throws informative errors if attributes required for simulation do not exist, or initializeSim() has never been called. (#320)
Release Date: 10-03-2019
Release Date: 09-25-2019
Release Date: 09-19-2019
Release Date: 07-23-2019
Release Date: 07-20-2019
- See #302 under minor changes.
- Fixes one-asset HANK models for endowment economy (had MP wired in as the shock). (#355)
- Removes jupytext *.py files. (#354)
- Reorganizes documentation and configures it to work with Read the Docs. (#353)
- Adds notebook illustrating dimensionality reduction in Bayer and Luetticke. (#345)
- Adds notebook illustrating how the Bayer & Luetticke invoke the discrete cosine transformation(DCT) and fixed copula to reduce dimensions of the problem.(#344)
- Makes BayerLuetticke HANK tools importable as a module. (#342)
- Restores functionality of SGU_solver. (#341)
- Fixes datafile packaging issue. (#332)
- Deletes .py file from Bayer-Luetticke folder. (#329)
- Add an empty method for preSolve called checkRestrictions that can be overwritten in classes inheriting from AgentType to check for illegal parameter values. (#324)
- Adds a call to updateIncomeProcess() in preSolve() to avoid solutions being based on wrong income process specifications if some parameters change between two solve() calls. (#323)
- Makes checkConditions() less verbose when the checks are not actually performed by converting a print statement to an inline comment. (#321)
- Raises more readable exception when simultate() is called without solving first. (#315)
- Removes testing folder (part of ongoing test restructuring). (#304)
- Fixes unintended behavior in default simDeath(). Previously, all agents would die off in the first period, but they were meant to always survive. (#302) Warning: Potentially breaking change.
Release Date: 05-30-2019
No changes from 0.10.0.dev3.
Release Date: 05-18-2019
- Fixes multithreading problems by using Parallels(backend=’multiprocessing’). (287)
- Fixes bug caused by misapplication of check_conditions. (284)
- Adds functions to calculate quadrature nodes and weights for numerically evaluating expectations in the presence of (log-)normally distributed random variables. (258)
- Adds method decorator which validates that arguments passed in are not empty. (282
- Lints a variety of files. These PRs include some additional/related minor changes, like replacing an exec function, removing some lambdas, adding some files to .gitignore, etc. (274, 276, 277, 278, 281)
- Adds vim swp files to gitignore. (269)
- Adds version dunder in init. (265)
- Adds flake8 to requirements.txt and config. (261)
- Adds some unit tests for IndShockConsumerType. (256)
Release Date: 04-18-2019
Release Date: 04-12-2019
- Adds tools to solve problems that arise from the interaction of discrete and continuous variables, using the DCEGM method of Iskhakov et al., who apply the their discrete-continuous solution algorithm to the problem of optimal endogenous retirement; their results are replicated using our new tool here. (226)
- Parameters of ConsAggShockModel.CobbDouglasEconomy.updateAFunc and ConsAggShockModel.CobbDouglasMarkovEconomy.updateAFunc that govern damping and the number of discarded ‘burn-in’ periods were previously hardcoded, now proper instance-level parameters. (244)
- Improve accuracy and performance of functions for evaluating the integrated value function and conditional choice probabilities for models with extreme value type I taste shocks. (242)
- Add calcLogSum, calcChoiceProbs, calcLogSumChoiceProbs to HARK.interpolation. (209, 217)
- Create tool to produce an example “template” of a REMARK based on SolvingMicroDSOPs. (176)
- Moved old utilities tests. (245)
- Deleted old files related to “cstwMPCold”. (239)
- Set numpy floating point error level to ignore. (238)
- Fixed miscellaneous imports. (212, 224, 225)
- Improve the tests of buffer stock model impatience conditions in IndShockConsumerType. (219)
- Add basic support for Travis continuous integration testing. (208)
- Add SciPy to requirements.txt. (207)
- Fix indexing bug in bilinear interpolation. (194)
- Update the build process to handle Python 2 and 3 compatibility. (172)
- Add MPCnow attribute to ConsGenIncProcessModel. (170)
- All standalone demo files have been removed. The content that was in these files can now be found in similarly named Jupyter notebooks in the DEMARK repository. Some of these notebooks are also linked from econ-ark.org. (229, 243)
- Not all changes from 0.9.1 may be listed in these release notes. If you are having trouble addressing a breaking change, please reach out to us.