ifdp · May 8, 2025

Optimal Credit Market Policy

Abstract

We study optimal credit market policy in a stochastic, quantitative, general equilibrium, infinite-horizon economy with collateral constraints tied to housing prices. Collateral constraints yield a competitive equilibrium that is Pareto inefficient. Taxing housing in good states and subsidizing it in recessions leads to a Pareto-improving allocation for borrowers and savers. Quantitatively, the welfare gains afforded by the optimal tax are significant. The optimal tax reduces the covariance of collateral prices with consumption, and, by doing so, it increases asset prices on average, thus providing welfare gains both in steady state and around it. We also show that the welfare gains stem from mopping up after the crash rather than a pure ex-ante macroprudential aspect, aligning with prior research that emphasizes the importance of ex-post measures compared to preventive policies alone.

Board of Governors of the Federal Reserve System International Finance Discussion Papers ISSN 1073-2500 (Print) ISSN 2767-4509 (Online) Number 1406 May 2025 Optimal Credit Market Policy Matteo Iacoviello, Ricardo Nunes, and Andrea Prestipino Please cite this paper as: Iacoviello, Matteo, Ricardo Nunes, and Andrea Prestipino (2025). “Optimal Credit Market Policy,” International Finance Discussion Papers 1406. Washington: Board of Governors of the Federal Reserve System, https://doi.org/10.17016/IFDP.2025.1406. NOTE: International Finance Discussion Papers (IFDPs) are preliminary materials circulated to stimulate discussion and critical comment. The analysis and conclusions set forth are those of the authors and do not indicate concurrence by other members of the research staff or the Board of Governors. References in publications to the International Finance Discussion Papers Series (other than acknowledgement) should be cleared with the author(s) to protect the tentative character of these papers. Recent IFDPs are available on the Web at www.federalreserve.gov/pubs/ifdp/. This paper can be downloaded without charge from the Social Science Research Network electronic library at www.ssrn.com.

Optimal Credit Market Policy∗ Matteo Iacoviello† Ricardo Nunes‡ Andrea Prestipino§ March 28, 2025 Abstract We study optimal credit market policy in a stochastic, quantitative, general equilibrium, infinite-horizoneconomywithcollateralconstraintstiedtohousingprices. Collateralconstraints yield a competitive equilibrium that is Pareto inefficient. Taxing housing in good states and subsidizing it in recessions leads to a Pareto-improving allocation for borrowers and savers. Quantitatively, the welfare gains afforded by the optimal tax are significant. The optimal tax reducesthecovarianceofcollateralpriceswithconsumption, and,bydoingso, itincreasesasset prices on average, thus providing welfare gains both in steady state and around it. We also show that the welfare gains stem from mopping up after the crash rather than a pure ex-ante macroprudentialaspect, aligningwithpriorresearchthatemphasizestheimportanceofex-post measures compared to preventive policies alone. JEL Classification: E32, E44, G18, H23, R21. Keywords: Credit Market, Housing, Collateral Constraints, Macroprudential Policy, Fiscal Policy, Financial Crises. ∗We thank seminar participants at the Federal Reserve Board, the European Central Bank, and the Bank of Mexico for their valuable suggestions on earlier drafts of this work. We are also grateful for their comments to the participantsoftheBanquedeFranceconference“CelebratingMichelJuillard’sCareerand30YearsofDynare.”This paperservesasourpersonalhomagetoMichelJuillardforhisoutstandingcareerandpathbreakingcontributionsto macroeconomics. Ours is one of countless papers that could not have been written without Dynare, a testament to his everlasting legacy on the field. The views expressed in this paper are solely the responsibility of the authors and should not be interpreted as reflecting the views of the Board of Governors of the Federal Reserve System or of anyone else associated with the Federal Reserve System. †Federal Reserve Board of Governors and CEPR. Email: matteo.iacoviello@frb.gov ‡University of Surrey, CIMS, Centre for Macro (LSE). Email: ricardo.nunes@surrey.ac.uk §Federal Reserve Board of Governors. Email: andrea.prestipino@frb.gov

1 Introduction In the aftermath of the global financial crisis, policymakers and researchers have studied tools to address financial instability through two distinct approaches: macroprudential policies that preemptivelyrestrictlending,andex-postinterventionsthatmitigatecrisiseffectsoncetheyoccur.1 While both approaches have received significant attention separately, their relative effectiveness and quantitative merits remain open questions. In this paper we develop a quantitative dynamic stochasticgeneralequilibrium(DSGE)modelwithhousingandoccasionalfinancialcrisesandstudy optimal credit market intervention. We focus on simple tax rules on housing and debt, allowing taxes to respond to the level of productivity, in order to capture the cyclical nature of policy interventions. Our key finding is that a procyclical tax can achieve significant welfare gains. The optimal tax is positive in expansions and becomes a subsidy in recessions, thus capturing both the macroprudential and the ex-post intervention components of policy intervention. Quantitatively, we find that the welfare gains from the implementation of the tax come entirely from the subsidy part, thus pointing to an important role for ex-post intervention in our model economy. The model features two types of agents, borrowers and savers. Borrowers are impatient and rely on housing as collateral for borrowing, while savers are patient, accumulate capital, and lend to borrowers. The framework is a closed economy setting with an endogenous interest rate. The economy features financial frictions, where borrowing is constrained by a collateral requirement linking debt capacity to the value of a borrower’s housing. Financial crises in the model happen when negative productivity shocks cause a decline in house prices and lead borrowing constraints to become binding. With limited borrowing capacity, the decline in borrower’s consumption and housing investment is amplified through a financial accelerator channel. Weusethemodeltoinvestigatewhethertaxesonborrower’shousinginvestmentordebtholdings can improve welfare. With collateral constraints that depend on the value of housing, the market equilibrium is inefficient because of the presence of pecuniary externalities. Specifically, atomistic agents fail to internalize how their allocation choices affect the price of housing and hence the tightness of the borrowing constraint.2 We study whether a simple tax policy can address this pecuniary externality and deliver Pareto improvements relative to the decentralized equilibrium allocation. We choose this approach—relative to setting up the constrained planner problem— 1See Bianchi (2011), Bianchi and Mendoza (2018), Davila and Korinek (2017), Gertler, Kiyotaki, and Prestipino (2020), Jeanne and Korinek (2020), and Benigno, Chen, Otrok, Rebucci, and Young (2013) for examples of work on macroprudential policies. Gertler and Kiyotaki (2010), Gertler and Karadi (2011), Bornstein and Lorenzoni (2018) arepapersthatstudyex-postinterventionintheformofmonetarypolicyaccommodation,unconventionalmonetary policy, and credit market policies. 2Papersstudyingoptimalmacroprudentialregulationfocusonthisexternalitytoargueformacroprudentialpolicies that limit borrowing ex-ante to avoid large asset price declines when the constraint binds ex-post. These arguments are typically developed in economies with a single agent, in which the only way to address the large asset price declines due to a binding constraint is to reduce borrowing ex-ante. Our economy has different channels through which this pecuniary externality could be addressed, in particular through trade among the two agents. 2

for two reasons. First, our environment includes two agents with different discount factors, which complicatesthewelfareanalysis. Second,theoptimalallocationchoicesassociatedwiththesolution ofaconstrainedplannerproblemareusuallyimplementedwithstate-contingentpoliciesthatwould require,inpractice,averydetailedamountofinformationinthehandsoftheplanner. Ourpolicies, on the other hand, are simple enough to be easily implemented, communicated, and interpreted. In particular, westudytaxesonborrower’shousinginvestmentorborrower’sdebtwhichvarywiththe level of productivity. We also impose that the tax intervention is revenue-neutral and all revenues or subsidies are rebated back in a lump-sum fashion to the borrower. This ensures that the welfare gainsarenotachievedbecausetheplanner’sinterventionfacilitatesborrowingandlendingonbehalf of private agents. By contrast, we focus on how a distortionary, yet welfare-improving, tax policy can shift borrowers’ demand schedules for housing and debt. We show that a procyclical tax on housing or debt improves welfare for both borrowers and savers. The key mechanism driving this result is that the tax stabilizes “inefficient” house price fluctuations. Inparticular,bymitigatingsharpdeclinesinhousepricesduringdownturns,thepolicy prevents the collateral constraint from tightening as severely, thereby reducing the frequency and magnitude of fire sales that depress the price of housing. As a result, house prices also rise in normal times, as expected future house prices are higher because fire-sales are less likely to occur and less severe if they do. This mechanism is closely related to standard asset pricing models in which expectations of higher future prices raise current valuations. With higher and more stable house prices, collateral constraints are less tight and borrowers’ precautionary motives decrease, causing them to increase debt and consumption.3 The larger borrowing by borrowers is financed by savers, who lower their consumption to save more on impact, but end up consuming more in the long run thanks to a larger stock of savings. As a result, both agents are better off with the introduction of the tax policy. Wedecomposewelfarechangesintothreecomponents: (i)short-runutilityeffectsduetochanges in average consumption, (ii) long-run utility effects due to changes in average consumption, and (iii) utility effects arising from changes in consumption volatility. We find that borrowers’ welfare increases due to the first component, short-run transition path, and the third component, lower volatility. The second component is detrimental as higher borrowing leads to lower consumption in the long-run stochastic steady state. Our analysis quantifies these trade-offs and finds that the borrower is still better off. Savers are also better off, mainly because the tax system allows them to save more. As a result, they consume less on impact but more in the long run and still achieve welfare gains when the tax system is introduced. While our quantitative analysis studies housing taxes, we show that taxes on borrowing and 3There may be other benefits of less volatile house prices. For instance, Dhamija, Nunes, and Tara (2023) empiricallyshowthathouseholdstendtooverweighthousepriceinflationwhenforminginflationexpectations. Hence, more stable house prices could also lead to more stable and anchored inflation expectations. 3

taxes on housing investment are close substitutes and yield very similar welfare effects. This result occursbecausethecollateralconstraintisrelatedtotheborrowers’portfoliochoicesbetweenhousing investment and borrowing. We show that the two sets of taxes affect the optimality conditions of the borrower in a similar way. Finally, we study the effects of asymmetric taxes on housing. In particular, we look separately at the effects of introducing only positive taxes when productivity is aboveaverage,andonlysubsidies(negativetaxes)whenproductivityisbelowaverage. Weinterpret the positive-tax-only policy as a macroprudential policy that limits borrowing during booms, and the subsidy-only policy as an ex-post intervention type policy that dampens the macroeconomic effects of financial crises. We find that the policy with only subsidies achieves welfare gains very similar to the optimal symmetric policy, while the positive-tax-only policy reduces welfare for both agents. This result illustrates that, in our setup, ex-post policy intervention is more effective than macroprudential policy. Literature Review: Our model is based on a variant of the models Kiyotaki and Moore (1997) and Iacoviello (2005).4 Our contribution is to extend this model to allow for the possibility ofoccasionallybindingconstraints—inthespiritofGuerrieriandIacoviello(2017)—andtoexamine optimalpolicyinthiscontext. Acommonfindingintheliteratureisthateconomieswithborrowing constraints and multiple goods feature inefficiencies (e.g. Kehoe and Levine, 1993), an observation that in turn connects to the broader principle of inefficiency in economies with incomplete markets (e.g. Geanakoplos and Polemarchakis, 1986; Stiglitz, 1982). We apply the insights and tools of this literature to a heterogeneous agents model with natural borrowers and savers. Intheaftermathoftheglobalfinancialcrisis,therewasastrongpushtodevelopmacroprudential policies to prevent the buildup of risks associated with high debt levels, as highlighted by Bernanke (2009). Papers by Davila and Korinek (2017), Lorenzoni (2008), Bianchi (2011) and Bianchi and Mendoza (2018) made groundbreaking theoretical contributions to this literature. Davila and Korinek (2017) and Lorenzoni (2008) conducted theoretical studies of efficient borrowing choices within three-period models, while Bianchi (2011) and Bianchi and Mendoza (2018) examined small open economy models with exogenous interest rates.5 Our model differs in several important respects. First, our interest rate is endogenously determined in a full-blown infinite-horizon model, rather than exogenous like in many small-open economy models. Second, our framework incorporates two distinct types of agents, requiring that any Pareto-improving tax policy enhance welfare for both agents. Finally, our model specifically addresses housing markets, whereas Bianchi (2011) focused on foreign borrowing and collateral constraints involving prices of tradable and non-tradable goods, and Bianchi and Mendoza (2018) 4SeealsoAoki,Proudman,andVlieghe(2004)forabenchmarkmodelinthisliteratureandmorerecentlyGarriga, Kydland, and Sustek (2017). 5See also Benigno et al. (2013) and Schmitt-Groh´e and Uribe (2020). 4

concentrated on capital investment.6 Finally, our paper is also related to the literature on housing and collateral constraints. Guerrieri and Iacoviello (2017) estimated model indicates that during the housing boom from 2001 to 2006, the loosening of collateral constraints allowed increased housing wealth to contribute to consumption growth. Conversely, the subsequent housing collapse tightened these constraints, significantly worsening the recession from 2007 to 2009. The empirical relevance of housing and collateral constraints highlights the importance of the policy analysis in our paper. Theremainderofthepaperisorganizedasfollows. Section2introducesthemodel,detailingthe behavior of natural savers and natural borrowers and the market equilibrium conditions. Section 3 provides several model experiments. Section 4 examines the tax policy intervention and the decomposition of welfare. Section 5 presents extensions. Section 6 concludes. The Appendix provides additional technical details. 2 The Model We consider a discrete-time infinite-horizon model, with two private agents — natural borrowers and natural savers — in the spirit of Kiyotaki and Moore (1997). Natural borrowers represent a fraction n of the population, and natural savers make up the remaining fraction 1−n. Borrowers operate a production technology that uses housing as the only input, while savers have access to a more flexible production function that also includes capital. We assume that borrowers are more impatient than savers so that, in equilibrium, they borrow to finance consumption and housing purchases. The amount they can borrow is limited by a collateral constraint that depends on the value of housing. Finally, a tax authority sets taxes, as will be explained later. We proceed to describe the environment in detail. We start with the description of the savers’ problem. 2.1 Natural Savers Natural savers, denoted with a prime, produce a final good using capital and housing as inputs. Their production function is Cobb-Douglas: y(cid:48) = A h(cid:48)γ k(cid:48)α , (1) t t t−1 t−1 where y(cid:48) is the final good produced, h(cid:48) is the housing input, k(cid:48) is the capital input, and A is a t t−1 t−1 t technologyparametercommontotheproductiontechnologiesofsaversandborrowers. Throughout 6 Another branch of the literature has examined whether monetary policy should lean against the wind. Among others, Goodhart and Hofmann (2010), Gal´ı (2014), Walentin (2014), Svensson (2017), Schularick, ter Steege, and Ward (2021), and Bijlsma and van Ewijk (2021) examine this question. Our paper instead focuses on fiscal rather than monetary policy. Our tax prescription has elements of leaning against the wind. 5

the analysis, A is stochastic and fluctuates around its long-run mean of unity. Labor is fixed and t normalized to unity. Savers can spend their resources on consumption (c(cid:48)), investment in physical capital (k(cid:48)) and t t housing (h(cid:48)), or to save in a risk free bond (b(cid:48)). Their budget constraint is: t t c(cid:48) +k(cid:48) +q h(cid:48) +b(cid:48) = y(cid:48) +(1−δ)k(cid:48) +q h(cid:48) +R b(cid:48) , (2) t t t t t t t−1 t t−1 t−1 t−1 where q is the price of housing, R is the risk-free interest rate on bonds, and δ is the rate of t t−1 capital depreciation. Savers maximize expected utility, which is assumed to be time-separable with period utility u(c ) of the logarithmic form. Expected lifetime utility is, therefore: t ∞ (cid:88) E β(cid:48)tlogc(cid:48), (3) 0 t t=0 where β(cid:48) denotes the discount rate. Theoptimizationproblemofsaversistomaximizeexpectedlifetimeutility,equation(3),subject totheirproductionfunction,equation(1),andtheirbudgetconstraint,equation(2). Theoptimality conditions of the saver yield the following equilibrium conditions: 1 1 = β(cid:48)R E , (4) c(cid:48) t t c(cid:48) t t+1 1 1 (cid:18) y(cid:48) (cid:19) = β(cid:48)E α t+1 +1−δ , (5) c(cid:48) t c(cid:48) k(cid:48) t t+1 t q 1 (cid:18) y(cid:48) (cid:19) t = β(cid:48)E γ t+1 +q . (6) c(cid:48) t c(cid:48) h(cid:48) t+1 t t+1 t Equation (4) is the first-order condition for bond holdings that equalizes the marginal utility of consuming one unit today versus saving one unit in a bond for future consumption. Equation (5) is the first-order condition for capital. It equates marginal costs and marginal benefits of investing in y(cid:48) capital, where the marginal benefits depend on capital’s marginal productivity next period, α t+1, k(cid:48) t and its depreciated amount 1−δ. Finally, equation (6) is the optimality condition for housing and reflects how the marginal costs and benefits of housing investments also depend on fluctuations in the price of housing q and q . t t+1 2.2 Natural Borrowers The production technology of the borrower uses housing as its only input: y = A hγ , (7) t t t−1 6

where the technology parameter A is common with that of the saver in equation (1).7 Letting b t t denote the amount borrowers borrow in the bond market, the budget constraint of these agents is given by: c +q (1+τh)h −b = y +q h −R (1+τb )b +T , (8) t t t t t t t t−1 t−1 t−1 t−1 t where τh and τb are taxes on housing and borrowing, respectively, that are levied by the tax t t authority as discussed in section 2.4 below, and T are lump sum transfers. t Borrowers do not hold capital and must finance their consumption and housing investment by borrowingfromsavers. Theamounttheycanborrowissubjecttoacollateralconstraintthatlimits borrowing to a fraction m of the value of their housing, b ≤ mq h , (9) t t t where 0 ≤ m ≤ 1. Similarly to Kiyotaki and Moore (1997), this condition imposes a limit on the ability of borrowers to take on debt, which arises from an agency problem between savers and borrowers. If borrowers renege on their debt obligations, then lenders can repossess the borrowers’ assets by paying a proportional transaction cost (1−m)q h . As a result, the maximum amount b t t t that a borrower can obtain is bound by mq h . t t Similartosavers,borrowershavelogarithmicpreferencesoverconsumption. Borrowersaremore impatient and discount the future at the rate β < β(cid:48). Their expected lifetime utility is: ∞ (cid:88) E βtlogc . (10) 0 t t=0 Borrowers maximize equation (10) subject to their production function (7), budget constraint (8), and borrowing collateral constraint (9). The inequality constraint (9) needs to be dealt with the usual Karush-Kuhn-Tucker formulation and the associated complementary-slackness conditions. The optimality conditions of the borrower are (cid:18) (cid:19) 1 1 = βR (1+τb)E +λ , (11) c t t t c t t t+1 q (1+τh) (cid:18) 1 (cid:18) y (cid:19)(cid:19) t t = βE γ t+1 +q +λ mq , (12) t t+1 t t c c h t t+1 t λ ≥ 0, b ≤ mq h , λ (b −mq h ) = 0, (13) t t t t t t t t where λ is the Lagrange multiplier on the collateral constraint. t Equation (11) is the first-order condition for consumption. When the collateral constraint binds, borrowing becomes restricted and the marginal utilities of consuming and saving are no 7Itisqualitativelyinconsequentialtoincludecapitalintheproductionfunctionofborrowersandweexcludeitfor simplicity. An alternative would be to assume that borrowers provide labor and housing enters the utility function. 7

longer equalized, reflected by λ > 0. In this case, borrowers would like to borrow more, as interest t rates are relatively low, as βR (1 + τb)E ct < 1, but cannot do so because the value of their t t tct+1 housing restricts their borrowing capacity, i.e. b = mq h . Equation (12) is the optimality related t t t to housing. The last term, λ mq , reflects the extra benefit to the borrower from investing in t t housing associated with its effect on relaxing the borrowing constraint. Finally, equation (13) is the usual complementarity-slackness condition. 2.3 Implications of Collateral Constraints The collateral constraint prevents beneficial trade between borrowers and savers.8 To illustrate the inefficiencies associated with a binding collateral constraint, we consider the equilibrium with no taxes, i.e. τb = τh = 0. Combining the optimality conditions for borrowing for the saver and the t t borrower, equations (4) and (11), and using λ > 0, we get: t c(cid:48) c β(cid:48)R E t = 1 > βR E t . (14) t t c(cid:48) t t c t+1 t+1 This inequality shows that when the constraint is binding, the borrower would find it optimal to borrow more at the current interest rate. The current consumption of borrowers c is ‘too low,’ t and the borrower would like to increase borrowing and increase c , but the collateral constraint t prevents this from happening. Turning to housing investment, equations (11) and (12) with a binding constraint, i.e. λ > 0, t and zero taxes yield :  (cid:16) (cid:17) βE  c t q t+1 +γ h A 1 t t − + γ 1  > βE (cid:18) c t R (cid:19) . (15) tc q  t c t t+1 t t+1 Thisrelationshipshowsthatborrowersdonotequatethemarginalbenefitofhousinginvestment to the marginal cost of funds. The marginal return on housing is too high because the investment in housing is too low. Borrowers would like to obtain additional funds and invest in housing, which would reduce the left-hand side, but they cannot due to collateral constraints. Alternatively, one can see that the price of housing q is too low. The collateral constraint would be alleviated if q t t increases. This is one of the mechanisms that could lead to welfare gains. The welfare analysis in the next section will explore different ways in which a planner, although forced to respect collateral and all constraints, i.e., to operate through the same markets as private agents, can reduce the extent of such unexploited trade opportunities by affecting borrowers’ demand for housing and bonds with tax instruments. 8SeeAraujo,Fajardo,andPa´scoa(2005)foradiscussionontheexistenceofequilibriumandFernandesandPa´scoa (2024) for applications in the context of repo markets and macroprudential policy. 8

2.4 The Tax As it is well known, economies with endogenous borrowing constraints and multiple goods can be inefficient, which relates to the generic inefficiency result in economies with incomplete markets.9 Various papers have studied optimal policy interventions in economies with collateral constraints of the type considered in our framework by analyzing the problem of a planner that faces the same borrowing constraints as private agents, but internalizes the effects of their allocation choices on asset prices.10 Here, we are going to consider a different approach. We will restrict the set of policies available to the planner to specific simple rules and quantitatively study the optimal policy rule for the planner. We do so for two rationales. First, a constrained planner’s welfare analysis is unclear due to the differing discount factors of the two agents. Second, the optimal allocation choices derived from solving a constrained planner’s problem typically involve state-contingent policies, which in practice would demand an extremely detailed level of information available to the planner. In contrast, the policies we examine here are simple rules that are straightforward to interpret and implement. In particular, we consider tax rules of the following form: τx = εx(A −1), (16) t t for x = h,b. The parameter εx determines the elasticity of the tax with respect to TFP. For instance, a positive value of εh implies that housing holdings are taxed in good times, when A is above one, t and subsidized during recessions, when A is below one. A similar interpretation applies to taxes t on borrowing. This allows us to capture the countercyclical nature of credit market intervention, restricting housing purchases and debt in good times, and subsidizing borrowers during crises. In our policy exercises, described in section 4 below, we will study how the competitive equilibrium and agents’ welfare vary as we vary εx. We consider the tax intervention to be revenue-neutral as this allows us to focus on how to correct market failures rather than on the fiscal deficit policy of the government. Accordingly, the lump sum transfers to borrowers satisfy: T = τhq h +τb R b . (17) t t t t t−1 t−1 t−1 This equation also represents the budget constraint of the fiscal authority. Individual borrowers do not influence the lump sum rebate. This is a common assumption, which follows from considering that there is a continuum of atomistic borrowers. Since all borrowers are identical ex-post, we 9See, e.g., Kehoe and Levine (1993), Geanakoplos and Polemarchakis (1986), and Stiglitz (1982). 10See, e.g., Lorenzoni (2008), Bianchi (2011), Benigno et al. (2013), Bianchi and Mendoza (2018), and Benigno, Rebucci, and Zaretski (2024). 9

can solve the borrower’s problem as a representative borrower who optimizes for individual-level variables. 2.5 Market Clearing and Equilibrium Bonds are in zero net supply, and housing is in fixed supply, normalized to 1. Market clearing requires: nb = (1−n)b(cid:48), (18) t t nh +(1−n)h(cid:48) = 1. (19) t t The stochastic process governing total factor productivity follows: A −1 = ρ(A −1)+σε , ε ∼ N (0,1), (20) t t−1 t where |ρ| < 1. The definition of equilibrium is standard. A competitive equilibrium consists of sequences of allocationsforborrowersandsavers, includingconsumption, housing, capital, andborrowing, along with sequences of housing prices and interest rates that satisfy the optimality conditions for each agent, the borrowing constraint, and the market-clearing conditions. 2.6 Calibration ThemodelisbasedontheframeworkofKiyotakiandMoore(1997), withseveralkeymodifications. First,weadoptaparametrizationthatresultsinaborrowingconstraintthatbindsonlyoccasionally. ThisfeaturealignswiththedynamicsstudiedbyBianchi(2011),Mendoza(2010),andmorerecently Guerrieri and Iacoviello (2017), where borrowing limits become relevant only in specific states of the economy. Second, we distinguish between two types of agents by endowing natural savers with access to a distinct production technology that allows them to accumulate variable capital, unlike borrowers who rely solely on a fixed factor of production. Finally, we introduce a fully stochastic environment with recurring productivity shocks and employ global solution methods to solve the model. These methods are crucial for accurately capturing the nonlinear effects of borrowing constraints and conducting welfare analysis. We set the parameters as in Table 1. These parameters result in a steady state where the wealth-to-annualGDPratioisaround5.1,thedebt-to-annualGDPratioisaround2.3,thestandard deviation of log aggregate consumption is 5.2 percent, and the standard deviation of log GDP is 10

around 5.7 percent, broadly in line with the data.11 The standard deviation of consumption for borrowers is 8.6 percent, while for savers it is around 3.7 percent.12 Finally, the standard deviation of house prices is about 3.7 percent. We compute policy functions using the parametrized expectations algorithm. Conditional expectations are approximated as polynomial functions of state variables. The state variables are the previous period housing stock (h ), capital stock (k ), debt level (b ), and the current t−1 t−1 t−1 productivity shocks (A ). The solution of the model follows an iterative procedure: t 1. Initialize polynomial coefficients η0 using the solution from OccBin (Guerrieri and Iacoviello, 2015) as a candidate solution. 2. Solve and simulate the nonlinear equilibrium conditions for a large number of periods. 3. Generate a new set of time series conditional expectations. 4. Update polynomial coefficients via OLS. 5. Iterate until (cid:107)ηj −ηj−1(cid:107) < ζ. The Technical Appendix describes our approach in detail.13 3 Model Experiments We start by illustrating the model’s behavior in response to productivity shocks. Figure 1 shows the response of the economy to a positive and a negative shock to productivity, starting from the risk-adjusted steady state of the economy. Due to the precautionary behavior of the borrower, the constraintisnotbindingintherisk-adjustedsteadystate. However,thenegativeproductivityshock lowers house prices and pushes the economy into the region where the constraint is binding. The resultisalargerdropinconsumption, housinginvestment, anddebtafterthenegativeproductivity shock than the corresponding increases in response to the positive shock. The lower panels of Figure 1 show the responses of the economy with and without housing taxes, represented by dashed and solid lines, respectively. For this experiment we set the tax on borrowing to zero, (cid:15)b = 0, and the elasticity of the tax on housing to a value of 3 percentage points, (cid:15)h = .03.14 The responses of the economy with taxes are computed in deviation from its own risk-adjusted steady state, which, as we further discuss below, is different from the risk-adjusted steady state of the economy without taxes. Following equation (16), the tax is positive after the increase in aggregate productivity and is a 11InU.S.datafrom1947:Q1through2024:Q4,thestandarddeviationoflinearlydetrendedlogGDPis7.5percent. It drops to 6.7 percent if the sample runs from 1947:Q1 through 2019:Q4. If one applies the HP-filter to both data and model simulations (with a smoothing parameter of λ = 1,600), the standard deviations for filtered log GDP drops to around 2 percent both in the data and in the model. 12InU.S.datafrom1947:Q1through2024:Q4,thestandarddeviationoflinearlydetrendedlogpersonalconsumption is 6.9 percent. 13See den Haan and Marcet (1990) for a description of the parametrized expectation algorithm. 14As we discuss in Section 5.2, varying (cid:15)b has very similar effects to varying (cid:15)h. Therefore, we mostly focus on housing taxes in our analysis. 11

subsidy when productivity is below average. The subsidy on housing after a negative productivity shock dampens the drop in housing investment and house prices. With a smaller drop in the value of collateral, the constraint is less tight and the borrower can prevent borrowing from declining as much, thus softening the decline in consumption. The increase in taxes on housing after a positive technology shock causes housing investment by the borrower to actually drop and, hence, house prices to increase less. However, the response of borrowers’ consumption to a positive technology shock is almost identical with and without the tax. Figure 2 depicts the policy functions of the models with and without taxes. The panels show how policies depend on productivity while keeping all other state variables constant at the riskadjustedsteadystateoftheeconomywithouttaxes. Withthehousingtax,housepricesbecomeless sensitive to productivity fluctuations; in particular, the (negative) tax cushions sharp declines after negative shocks, resulting in higher prices, looser collateral constraints, and increased borrowing capacity. Conversely, housing is taxed during expansions, which lowers house prices after large technology increases. Besides a change in the slope, the policy function shifts upward, leading to slightly higher average house prices.15 The reason for this is that future house prices tend to be higher on average as the likelihood and severity of fire sales decrease, resulting in higher prices in the present. This mechanism is similar to Tobin’s Q-theory or traditional asset pricing models, where expectations of higher future prices lead to increased current valuations. In our framework, this effect is reflected in equation (6), where, all else being equal, a higher q leads to a higher q . t+1 t All told, the tax policy raises consumption of the borrower both after negative productivity shocks, because it softens the decline in house prices and allows the borrower to borrow more, and after positive productivity shocks, because it lowers housing investment. As a result, borrowers’ welfare is higher in the economy with the tax. Conversely, consumption of the saver decreases. These policy functions, however, keep the level of debt constant. As we discuss below, consumption patterns change after a transition period because the borrower and saver accumulate more debt and assets, respectively. 4 Taxes and Welfare DoesthetaxinterventionresultinwelfareParetoimprovements? Inthiseconomy,agentsonlytrade one riskless non-contingent bond; hence, state-contingent taxes on particular assets may improve welfare because they substitute for the absence of a complete set of state-contingent securities, given the presence of aggregate risk. However, the welfare improvement afforded by a particular tax policy that operates through this channel turns out to be minuscule, analogous to the wellknown result in open economy macro that, with highly correlated productivity shocks, one riskless 15Note, for instance, in Figure 2 that when productivity is at steady state, house prices are higher with the tax intervention. 12

asset comes very close to completing the markets. Here, instead, the welfare comparison is made interesting by the presence of the uninternalized pecuniary externality coming from the collateral constraint. Figure3plotsthewelfareeffectsofvaryingtheelasticityofhousingtaxestotechnology,(cid:15)h,while keeping taxes on debt fixed at zero, i.e. (cid:15)b = 0. Each point corresponds to a different elasticity of the tax rate to aggregate productivity and the origin corresponds to the allocations without taxes. All welfare changes are expressed as lifetime consumption equivalent compensation relative to the equilibrium without taxes. For each model, we evaluate welfare at a point of the state space corresponding to the stochastic steady state of the economy without taxes. Pareto improvements relativetotheno-taxequilibriumcorrespondtoalltheallocationsthatlienorth-eastofthezero-tax equilibrium. It is evident from this figure that a procyclical housing tax with intermediate values (cid:15)h leads to a Pareto improvement, whereas too low or too high values do not. For an elasticity around (cid:15)h = 0.03, the tax improves borrower’s welfare as much as a permanent change in consumption of about 0.2 percent, a value that is as large as the welfare gains of eliminating business cycles altogether in representative-agent business cycle models. In the latter class of models, the welfare gains can be shown to be proportional to half the squared variance of log consumption, as first shown by Lucas (1987).16 In the next subsection we provide a detailed decomposition of the origin of the welfare gains in our model. Figure 4 shows the welfare effects of introducing housing taxes not only in the steady state, but also in a boom and during a crisis. The welfare effects are similar to the ones in steady state, with larger benefits for the borrower when taxes are introduced in a crisis, and larger benefits for the saver when taxes are introduced during an expansion. Of note, a tax rule with an elasticity between 2.5 and 3, which roughly optimizes borrower’s welfare subject to the saver’s welfare being the same as in the no-tax equilibrium, risk-adjusted steady state, delivers Pareto improvements also when introduced either in an expansion or in a recession. To understand the workings of the policy intervention, consider a tax that improves welfare of the borrower by the maximum amount while holding the saver’s welfare unchanged. Such tax has an elasticity of 2.8 percentage points to aggregate productivity. To get some quantitative flavor, remember that the fiscal instrument is a holding tax — similar to a property tax — and is levied as a percentage of the value of borrowers’ housing holdings. From the borrower’s budget constraint, we know that c +(1+τ )q h = resources, so that a tax τ raises the holding cost of housing by t t t t t 100×τ percent. An x percent negative productivity shock calls for a reduction in the holding cost t of housing of 100×εh×x percent. With εh = .028 and assuming a negative productivity shock of 3 percent, x = −0.03, the reduction in the housing holding cost is 100·0.028·0.03 = .084 percent. 16Lucas (1987) shows that the welfare cost of business cycles can be approximated as (γ/2)σ2, where γ is the coefficient of relative risk aversion and σ2 is the variance of log consumption. A welfare gain of 0.2 percent can be obtainedbyeliminatingbusinesscyclesiftheinitialstandarddeviationofconsumptionisaround6.3percentandthe coefficient of relative risk aversion is unity. 13

For a house of 420,000 US dollars, this corresponds to a subsidy of about 350 dollars per year.17 While the tax magnitudes seem small, the tax/subsidy is very effective because τh is a holding t tax, not a purchase tax. With forward-looking rational agents, housing demand is very sensitive to changes in the tax, as the housing price depends on current and future expected taxes. This can be seen by solving equation (12) forward: ∞ (cid:32) j (cid:33) (cid:18) (cid:19) q = E (cid:88) β1+j c t (cid:89) 1 γ y t+1+j . (21) t t c (1+τh −λ mc ) h j=0 t+1+j i=0 t+i t+i t+i t+j As the equation shows, under persistent productivity shocks, small changes in the tax can exert large effects on today’s asset prices. Figure 5 plots the transition of the economy from the risk-adjusted steady state of the case in whichtaxesarezerotothenewrisk-adjustedsteadystateoftheeconomywithaprocyclicalhousing tax. The transition happens unexpectedly after 20 quarters. Throughout the simulation, we shut down aggregate shocks. The economy starts from the risky adjusted steady state without taxes, where aggregates are constant, but equilibrium prices and quantities fully reflect the possibility that shocks might happen in the future.18 In period 20, we artificially and unexpectedly move the no-tax economy to a new regime, in which agents still expect future shocks but at the same time anticipate that the tax rule will be of the form described above. The introduction of the tax policy raises the price of housing as it lowers the sensitivity of house prices to technology shocks, and in particular, the subsidy to housing investment dampens house price drops after negative productivity shocks, thus reducing the covariance of consumption with house prices. As house prices increase and become less variable, the borrower increases its borrowing and consumption. As a result, the borrower’s welfare increases by about 0.2 percentage points of permanent consumption equivalent gains. The increase in borrower’s debt is financed by largersavingsbythesaver, who, onimpact, decreasesconsumptionandlendsmoretotheborrower. However, the saver’s welfare also increases on impact as their consumption is permanently higher in the new risk-adjusted steady state. 4.1 Decomposing Welfare Effects of Taxes We decompose the welfare effects of a particular tax, starting from the stochastic steady state of the economy without tax, into the following three components ∆W ≈ ∆W +∆W +∆W . (22) SR LR VAR 17ThemediansalepriceofahouseintheUnitedStatesin2024was$419,200,accordingtodatafromU.S.Census Bureau/U.S. Department of Housing and Urban Development. 18See e.g. Coeurdacier, Rey, and Winant (2011). 14

where ∆W is the total welfare effect, ∆W is the welfare component reflecting the transition to SR the new steady state of consumption (short-run transition in mean consumption), ∆W is the LR welfare component reflecting changes in long-run mean consumption (long-run mean level) and ∆W is the welfare component reflecting the changes in variance associated with a particular VAR tax policy (volatility effect).19 We define the short-run welfare changes associated with the transition component of the tax as: T T (cid:88) (cid:88) ∆W = βtlogE (ctax)− βtlogE (cno tax), (23) SR 0 t 0 t t=0 t=0 where ctax is the equilibrium consumption in the economy with the active tax system, and cno tax is t t consumption in the economy without taxes. This formula measures the change in utility associated with the new consumption path for the first T = 80 periods.20 For the policy experiment described in the text, such calculation returns ∆W = 0.18%, ∆W(cid:48) = −0.03%, respectively, for the SR SR borrower and the saver. Analogously, the long-run mean-level component of the tax is ∞ ∞ (cid:88) (cid:88) ∆W = βtlogE (ctax)− βtlogE (cno tax), (24) LR 0 t 0 t t=T+1 t=T+1 yielding ∆W = −0.06% and ∆W(cid:48) = 0.06%. LR LR We now move to the volatility effects associated with the change in the tax. These changes can be approximated — up to second order — by the change in the variance of log consumption associated with the tax change. That is: ∆W = − (cid:32) (cid:88) ∞ βt E 0 (cid:0) ct t ax−E 0 ct t ax(cid:1)2 −E (cid:88) ∞ βt E 0 (cid:0) c t no tax−E 0 cn t o tax(cid:1)2(cid:33) , (25) VAR 2(E ctax)2 0 2(E cno tax)2 t=0 0 t t=0 0 t yielding ∆W = 0.06% and ∆W(cid:48) = −0.01%. The welfare decomposition is summarized in VAR VAR Table 2. The decomposition results in Table 2 can be understood by referring again to the transition to the new tax regime plotted in Figure 5. The response of consumption to introducing the tax rule is particularlyinformativeregardingthewelfaredecomposition. Intheshortterm, borrowersincrease consumption. However, with higher house prices and lower precautionary motives, borrowers’ debt increases in the long run, and consumption settles at a lower level in the new steady state. These trajectories explain the short-run welfare gains and long-run welfare losses of average consumption, 19 AsimilardecompositioninwelfarebetweenaverageandvolatilitycomponentscanbefoundinObstfeld(1994), B´enabou(2002),andFlod´en(2001). Relativetothosepapers,wefurtherdecomposetheaverageeffectintotheshortrun mean transition and the long-run mean level. All these welfare changes are expressed in percent consumption equivalents. Appendix A.4 provides further details. 20We set T based on the inspection of the transitions. Different transition periods T do not change the results qualitatively. 15

that is, ∆W > 0 and ∆W < 0. Consumption of the saver is akin to the mirror image of the SR LR borrower’s.21 For the saver, consumption initially declines following the introduction of the tax, resulting in ∆W(cid:48) < 0, but eventually increases due to the higher asset accumulation in the new SR steady state, resulting in ∆W(cid:48) > 0. LR Turning to the effects of volatility, this policy leads to a reduction in the volatility of consumption. Given the enhanced opportunities that borrowers have to obtain funds, the consumption policy function is flatter. These features translate into a welfare gain due to the borrower’s lower consumption volatility. 5 Extensions and Discussion In this section, we present two extensions: asymmetric taxes and taxes on borrowing. 5.1 Asymmetric Taxes We consider two asymmetric policies. In one, the housing tax is only in effect during expansions, and in the other, the subsidy is active during recessions. More specifically, we consider a tax-only policy µh given by: t  εh(A −1), if A ≥ 1, µh = t t (26) t 0, if A < 1, t and a subsidy only policy σh given by: t  0, if A ≥ 1, σh = t (27) t εh(A −1), if A < 1. t t Studying the effects of these asymmetric tax policy rules allows us to understand how much of the welfare improvements are due to taming house prices and borrowing during expansions with positive taxes on housing as with the tax policy µh — a more macroprudential nature of the tax t policy — and how much are due to an ex-post intervention mopping up after the crash as under the subsidy policy σh.22 t Figure 6 shows the welfare effects of introducing the tax-only policy rule µh. It shows that t the tax always hurts both borrowers and savers. To better understand the mechanism, Figure 7 shows the policy functions. In this case, the tax intervention lowers house prices, leading to more stringent borrowing conditions. The consumption of the borrower is lower and that of the saver is higher. 21Due to capital accumulation, the consumption patterns of borrowers and savers do not completely offset. 22See also Benigno, Rebucci, and Zaretski (2024). 16

Figure 8 shows the welfare effects of introducing the subsidy policy σh. The Pareto gains from t this policy are roughly as high as in our baseline policy. Figure 9 shows the policy functions. House prices increase even in expansions, borrowing increases mainly during recessions, and the consumption of borrowers increases for all levels of productivity. Overall, thefindingsinthissectionsuggestthattheeffectivenessofthetaxpolicyisnotprimarilydrivenbyitsmacroprudentialrole–namely, itsabilitytomoderatehouseprices, borrowing, and consumption during economic booms. While traditional macroprudential policies focus on curbing excessive risk-taking in good times to prevent financial instability, the results here highlight a different mechanism. Specifically, the welfare gains associated with the asymmetric tax stem from its ability to mitigate the adverse consequences of economic downturns ex-post. By reducing the severity and persistence of house price declines, the policy helps stabilize the economy when it is most vulnerable. Regarding macroprudential regulation versus mopping up after the crash, the welfare gains in our model are in the latter. 5.2 Taxes on Borrowing What are the results of a tax debt rule instead of a housing tax? In this section, we show that the two taxes are very close substitutes and deliver very similar effects. To see this, we first rewrite the optimalityconditionsfortheborrowerstoeliminatetheLagrangianmultiplier. Thisshowsthatthe two taxes affect the optimality condition in a very similar way. We then show quantitatively that optimizing on the elasticity of debt taxes yields results that are very similar to the ones obtained with the housing tax. Note that if we use equation (11) to substitute for λ in equation (12), we get an optimality condition for saving given by: (cid:34) m (cid:35) 1 = βE c t 1 R t h +1 − 1+τh t R (cid:16) 1+τb (cid:17) , (28) t c 1− m (cid:0) 1+τh (cid:1) 1− m t t t+1 1+τh t 1+τh t t where Rh = γ yt h + t 1+qt+1 are the returns on housing investment net of housing taxes. Equation t+1 qt (28) shows that the borrower will always optimize the consumption-saving decision to equate the marginal cost of saving to the marginal return to its leverage investment in housing, given by m 1 R t h +1 − 1+τh t R (cid:0) 1+τb(cid:1) . The borrowing constraint will affect the portfolio decision by 1− 1+ m τh t (1+τh t ) 1− 1+ m τh t t t limiting the amount of leverage that the borrower takes in their housing investment. In particular, when the constraint is binding, b = mq h and the borrower will have positive excess returns on t t t housing investment: (cid:34) (cid:35) c Rh (cid:16) (cid:17) E t t+1 −R 1+τb > 0, (29) t c (cid:0) 1+τh (cid:1) t t t+1 t 17

as we discuss further below. When the constraint is slack, these excess returns are arbitraged away: (cid:34) (cid:35) c Rh (cid:16) (cid:17) E t t+1 −R 1+τb = 0. (30) t c (cid:0) 1+τh (cid:1) t t t+1 t Rewriting the optimality conditions for the borrower as in equations (28)-(30) also shows that taxes on housing and taxes on debt are substitute instruments that affect excess returns on housing investment, and hence the borrowers’ portfolio choices, in a very similar manner. Figure 10 shows the impulse response of the economy to positive and negative productivity shocks in the model without taxes and in the model with taxes on borrowing (for a value of the tax τb = 0.03). The results are analogous to those with a housing tax shown in Figure 1. The tax is positive after the increase in aggregate productivity and is a subsidy when productivity declines. The subsidy on borrowing after a negative productivity shock dampens the drop in debt and, therefore, dampens the drop in housing investment and house prices. The mechanism is similar to that in the baseline. As house prices and housing investment decline less, the constraint is not as tight, allowing the borrower to borrow more and dampen the decrease in consumption. The increase in taxes on borrowing after a positive technology shock follows an analogous logic to the baseline but operates in the first instance through borrowing. Figure 11 shows the effects on welfare. The patterns are again similar to our baseline. For intermediate values of the tax elasticity, both agents are better off. In Figure 12, we artificially shut down aggregate shocks, but agents expect the possibility of shocks; this is the same procedure as in Figure 5. The economy first settles in the risk-adjusted steady state, and then in period 20, the borrowing tax is introduced. The magnitudes of the responses after the introduction of the tax differ from those of Figure 5, but qualitatively, the responses are similar. Consumption of the borrower increases in the short run as the collateral constraint is immediately relaxed given the increaseinhouseprices; astimepasses, debtservicepaymentskickin, andconsumptionsettlesata lower level than that in the old regime. Consumption of the saver is the opposite. House prices and debt settle at a higher level. In summary, an appropriately designed borrowing tax also improves welfare for both agents. 6 Conclusions This paper examines the optimal credit market policy in a stochastic, quantitative general equilibrium framework with collateral constraints. Our analysis shows that a state-contingent housing tax can generate Pareto improvements by mitigating financial frictions. Specifically, the proposed tax system follows a procyclical pattern: it taxes housing in economic expansions and subsidizes it during downturns. This policy reduces the link between collateral prices and consumption, increasing 18

average asset prices and generating welfare gains for both borrowers and savers. Thewelfarebenefitsfromimplementingtheoptimaltaxcanbeunderstoodthroughthefollowing mechanism. First, by stabilizing house prices, the tax alleviates borrowing constraints during downturns, reducing the incidence and severity of fire sales, which raises expected future prices and relaxes borrowing constraints further. Second, the tax facilitates intertemporal trade by giving borrowers increased credit access, which reduces consumption volatility. A key result of our quantitative analysis is that the welfare gains from the optimal housing tax are comparable to those from eliminating business cycles. Decomposing these welfare effects, we show that borrowers benefit primarily from short-term consumption gains and reduced volatility, whereas savers gain in the long run due to increased asset positions. The tax achieves these improvements while remaining revenue-neutral, ensuring that gains are not driven by redistributive transfers but rather by efficiency enhancements in the credit market. We also showed that the welfare gains of our tax are mainly attributable to a “mopping up after the crash” rather than a macroprudential aspect. Our findings contribute to the broader literature on macroprudential policy and credit market interventions by highlighting the role of asset price stabilization in improving welfare. Unlike conventional fiscal or monetary policy tools, the proposed tax directly targets the pecuniary externalities arising from collateral constraints. 19

References Adjemian, S., H. Bastani, M. Juillard, F. Karam´e, J. Maih, F. Mihoubi, G. Perendia, J. Pfeifer, M. Ratto, and S. Villemot (2011). Dynare: Reference manual, version 4. Dynare Working Papers 1. Aoki, K., J. Proudman, and G. Vlieghe (2004). House prices, consumption, and monetary policy: a financial accelerator approach. Journal of Financial Intermediation 13(4), 414–435. Araujo, A., J. Fajardo, and M. P´ascoa (2005). Endogenous collateral. Journal of Mathematical Economics 41(4), 439–462. Auclert, A., B. Bardczy, M. Rognlie, and L. Straub (2021). Using the sequence-space jacobian to solve and estimate heterogeneous-agent models. Econometrica 89(5), 2375–2408. B´enabou, R. (2002). Tax and education policy in a heterogeneous-agent economy: What levels of redistribution maximize growth and efficiency? Econometrica 70(2), 481–517. Benigno, G., H. Chen, C. Otrok, A. Rebucci, and E. R. Young (2013). Financial crises and macroprudential policies. Journal of International Economics 89(2), 453–470. Benigno, G., A. Rebucci, and A. Zaretski (2024). Optimal time-consistent macroprudential policy: a comment. Manuscript. Bernanke, B. S. (2009). Financial reform to address systemic risk: a speech at the Council on Foreign Relations, Washington, DC, March 10, 2009. Bianchi, J. (2011). Overborrowing and systemic externalities in the business cycle. The American Economic Review 101(7), 3400. Bianchi, J. and E. G. Mendoza (2018). Optimal time-consistent macroprudential policy. Journal of Political Economy 126(2), 588–634. Bijlsma, M. and C. van Ewijk (2021). Leaning against the wind: Macroprudential policy and the financial cycle. International Journal of Central Banking 17(5), 153–190. Bornstein, G. and G. Lorenzoni (2018). Moral hazard misconceptions: The case of the greenspan put. IMF Economic Review 66, 251–286. Christiano, L. J. and J. D. Fisher (2000). Algorithms for solving dynamic models with occasionally binding constraints. Journal of Economic Dynamics and Control 24(8), 1179–1232. Coeurdacier, N., H. Rey, and P. Winant (2011). The risky steady state. The American Economic Review 101(3), 398–401. 20

Davila, E. and A. Korinek (2017). Pecuniary externalities in economies with financial frictions. The Review of Economic Studies 85(1), 352–395. den Haan, W. and A. Marcet (1990). Solving the stochastic growth model by parameterizing expectations. Journal of Business and Economic Statistics 8(1), 31–34. Dhamija, V., R. Nunes, and R. Tara (2023). House price expectations and inflation expectations: Evidencefromsurveydata. CfMDiscussionPaper2023-18, CentreForMacroeconomics, London School of Economics and Political Science. Faraglia, E., A. Marcet, R. Oikonomou, and A. Scott (2019). Government debt management: The long and the short of it. Review of Economic Studies 86, 2554–2604. Fernandes, M. and M. P´ascoa (2024). Repo, sponsored repo and macro-prudential regulation. Discussion Papers in Economics DP 02/24, University of Surrey. Flod´en, M. (2001). The effectiveness of government debt and transfers as insurance. Journal of Monetary Economics 48(1), 81–108. Gal´ı, J. (2014). Monetary policy and rational asset price bubbles. American Economic Review 104(3), 721–752. Garriga, C., F. Kydland, and R. Sustek (2017). Mortgages and Monetary Policy. Review Financial Studies 30(10), 3337–3375. Geanakoplos, J. D. and H. M. Polemarchakis (1986). Existence, regularity, and constrained suboptimality of competitive allocations when the asset market is incomplete. In W. P. Heller, R. M. Starr, and D. A. Starrett (Eds.), Uncertainty, Information, and Communication, Volume 3, pp. 65–95. New York: Cambridge University Press. Gertler,M.andP.Karadi(2011). Amodelofunconventionalmonetarypolicy. Journal of monetary Economics 58(1), 17–34. Gertler, M. and N. Kiyotaki (2010). Financial intermediation and credit policy in business cycle analysis. In Handbook of monetary economics, Volume 3, pp. 547–599. Elsevier. Gertler, M., N. Kiyotaki, and A. Prestipino (2020). Credit booms, financial crises, and macroprudential policy. Review of Economic Dynamics 37, S8–S33. Goodhart, C. and B. Hofmann (2010). Should monetary policy respond to asset price bubbles? revisiting the debate. International Journal of Central Banking 6(1), 29–60. 21

Grand, F. L. and X. Ragot (2024). Optimal fiscal policy with heterogeneous agents and capital: Should we increase or decrease public debt and capital taxes? Journal of Political Economy. Forthcoming. Guerrieri, L. and M. Iacoviello (2015). Occbin: A toolkit for solving dynamic models with occasionally binding constraints easily. Journal of Monetary Economics 70, 22–38. Guerrieri, L. and M. Iacoviello (2017). Collateral constraints and macroeconomic asymmetries. Journal of Monetary Economics 90, 28–49. Iacoviello, M. (2005). House prices, borrowing constraints, and monetary policy in the business cycle. American Economic Review 95(3), 739–764. Jeanne, O. and A. Korinek (2020). Macroprudential regulation versus mopping up after the crash. The Review of Economic Studies 87(3), 1470–1497. Judd, K.L., L.Maliar, andS.Maliar(2011). Numericallystableandaccuratestochasticsimulation approaches for solving dynamic economic models. Quantitative Economics 2(2), 173–210. Kehoe, T. and D. Levine (1993). Debt-constrained asset markets. Review of Economic Studies 60(4), 865–888. Kiyotaki, N. and J. Moore (1997). Credit cycles. Journal of Political Economy 105(2), 211–248. Lorenzoni, G. (2008). Inefficient credit booms. The Review of Economic Studies 75(3), 809–833. Lucas, R. E. (1987). Models of Business Cycles. Oxford: Basil Blackwell. Mendoza, E. G. (2010). Sudden stops, financial crises, and leverage. American Economic Review 100(5), 1941–1966. Obstfeld, M. (1994). Evaluating risky consumption paths: The role of intertemporal substitutability. European Economic Review 38, 1471–1486. Reiter, M. (2009). Solving heterogeneous-agent models by projection and perturbation. Journal of Economic Dynamics and Control 33(3), 649–665. Schmitt-Groh´e, S. and M. Uribe (2020). Multiple equilibria in open economies with collateral constraints. The Review of Economic Studies 88(2), 969–1001. Schularick, M., L. ter Steege, and F. Ward (2021). Leaning against the wind and crisis risk. American Economic Review: Insights 3(3), 321–338. Stiglitz, J. (1982). The inefficiency of the stock market equilibrium. Review of Economic Studies 49(2), 241–261. 22

Svensson, L. E. (2017). Cost-benefit analysis of leaning against the wind. Journal of Monetary Economics 90, 193–213. Valaitis,V.andA.T.Villa(2024). Amachinelearningprojectionmethodformacro-financemodels. Quantitative Economics 15(1), 145–173. Walentin, K. (2014). Housing collateral and the monetary transmission mechanism. The Scandinavian Journal of Economics 116(3), 635–668. 23

Table 1: Calibration Parameter Value Description β 0.985 Discount factor of borrowers β(cid:48) 0.99 Discount factor of savers α(cid:48) 0.2 Capital share in production γ 0.3 Housing share in borrowers’ production γ(cid:48) 0.1 Housing share in savers’ production δ 0.025 Depreciation rate m 0.8 Collateral requirements parameter n 0.5 Share of borrowers ρ 0.95 Persistence of shock σ 0.0165 Standard deviation of shock Note: Parameter calibration for the benchmark model. Table 2: Welfare Change Decomposition Welfare Change Decomposition Total SR Mean (1) LR Mean (2) Variance (3) Borrower 0.19 0.18 -0.06 0.06 Saver 0.02 -0.03 0.06 -0.01 Note: Total change in conditional welfare (measured in % change in consumptionequivalents)fromintroducingatax. Welfareiscalculatedstarting at the risk-adjusted steady state of the model without tax. 24

Figure 1: Impulses Responses Impulse Response, Baseline Model Baseline Model 1. Productivity, % from ss 2. C Borrower, % from ss 3. C Saver, % from ss 2 +2sd 5 1 -2sd 0 0 0 -2 -5 -1 5 10 15 20 5 10 15 20 5 10 15 20 4. H Borrower, % from ss 5. K Saver, % from ss 6. Asset Price, % from ss 2 5 1 0 0 0 -1 -5 -2 5 10 15 20 5 10 15 20 5 10 15 20 7. Debt % from ss 8. Interest Rate (ppt) 9. Tax Rate, % from ss 1 5 0.05 0 0 0 -5 -0.05 -1 5 10 15 20 5 10 15 20 5 10 15 20 Impulse Response, with and without Taxes Baseline Model vs. Model with Tax 1. Productivity, % from ss 2. C Borrower, % from ss 3. C Saver, % from ss 2 +2sd, Tax 5 1 -2sd, Tax 0 +2sd: No Tax 0 0 -2sd: No Tax -2 -5 -1 5 10 15 20 5 10 15 20 5 10 15 20 4. H Borrower, % from ss 5. K Saver, % from ss 6. Asset Price, % from ss 5 2 1 0 0 0 -1 -5 -2 5 10 15 20 5 10 15 20 5 10 15 20 7. Debt % from ss 8. Interest Rate (ppt) 9. Tax Rate, % from ss 0.1 5 0.05 0 0 0 -0.05 -5 -0.1 5 10 15 20 5 10 15 20 5 10 15 20 Note: Impulse Response without and with tax. The top 9 panels show the effects of positive and negative two standard deviation productivity shocks without the tax. The economy starts from the risk-adjusted steady state of the economy without tax. The lower 9 panels show responses to positive and negative productivity shocks, with and without the optimal tax (the economies start from respective risky steady states). 25

Figure 2: Policy Functions Productivity 1. House Price 2. Borrowing / Max 3. Borrowing 105 5 2 1 0 0 100 -5 -1 Baseline -2 Tax 95 -10 -4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4 Productivity Productivity Productivity 6. Welfare Borrower 4. Cons. Borrower 5. Cons. Saver (Consumption Equivalents) 5 1 1 0 0 0 -5 -1 -1 -10 -2 -4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4 Productivity Productivity Productivity Note: Policy Functions. The blue lines denote policy function without tax. The red lines denote policy functions with the housing tax. The x-axis refers to debt. 26

Figure 3: Pareto Frontier for the Benchmark Model Welfare Gains, Baseline Model 0.2 5 0.15 4.5 )C e m ite fiL 0.1 4 % ( e ra fle W 0.05 3.5 re v 3 a S 2.5 = 0 0 0.5 2 1 1.5 -0.05 -0.1 -0.05 0 0.05 0.1 0.15 0.2 0.25 Borrower Welfare (% Lifetime C) Note: Welfare Calculations. The panel shows the Pareto frontier of the economy for various combinations of housing taxes (the origin corresponds to the competitive equilibrium without taxes). The dots indicate allocation for various values of the elasticity of taxes to productivity defined as 100τ. 27

Figure 4: Pareto Frontier for the Benchmark Model: Boom vs Recession Welfare Gains for Alternative Taxes in Booms and Recessions 0.25 5 Normal Times Boom Recession 0.2 5 5 4.5 )C e m 0.15 ite 4 4.5 4.5 fiL % ( e ra 0.1 3.5 4 4 fle W 3 re 0.05 3.5 v 3.5 a 2.5 S 3 2 3 0 000 0.5 0 1 .5 1 0 . . 5 51 1.5 2 2.5 2.5 1 1.5 2 -0.05 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 Borrower Welfare (% Lifetime C) Note: Welfare Calculations. See notes to Figure 3. The black line refers to normal times when the shock A is initialized at steady state. In the green and red lines, the t economy is respectively above and below average. 28

Figure 5: Transition to New Regime Transition to new regime 1. Productivity (Percent) 2. C Borrower (Percent) 3. C Saver (Percent) 1 0.1 1.5 0 0 1 -0.1 0.5 -0.2 0 -1 20 40 60 80 100 20 40 60 80 100 20 40 60 80 100 4. Interest Rate (Pct, Annual) 5. Asset Price (Percent) 6. Debt (Percent) 4.08 4.06 0.5 2 4.04 4.02 4 0 0 20 40 60 80 100 20 40 60 80 100 20 40 60 80 100 7. Multipler (x100) 8. CE Welf Bor (Percent) 9. CE Welf Sav (Percent) 0.1 0.2 0.15 0.1 0.1 0.05 0.05 0 0 0 20 40 60 80 100 20 40 60 80 100 20 40 60 80 100 Note: The figure shows the transition to the new regime. More specifically, the figure plots the evolution over time of the economy where we artificially shut down aggregate shocks, so that the economy settles around its risky steady state, but equilibrium prices and quantities fully reflect the possibility of shocks. In period 20, we artificially and unexpectedly move the no-tax economy to a new regime, in which agents still expect future shocks but at the same time anticipate the tax rule. 29

Figure 6: Model with Tax only in Expansions: Frontier Welfare Gains, Baseline Model = 0 0 0.5 -0.05 1 )C e 1.5 m ite fiL -0.1 2 % ( e 2.5 ra fle W-0.15 3 re 3.5 v a S 4 -0.2 4.5 -0.25 -0.35 -0.3 -0.25 -0.2 -0.15 -0.1 -0.05 0 0.05 Borrower Welfare (% Lifetime C) Note: Welfare gains for the model with tax only in expansions. See notes to Figure 3 for details. 30

Figure 7: Model with Tax only in Expansions: Policy Functions 1. House Price 2. Borrowing / Max 3. Borrowing 105 2 0 0 100 -10 -2 Baseline -4 -20 Tax 95 -4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4 Productivity Productivity Productivity 6. Welfare Borrower 4. Cons. Borrower 5. Cons. Saver (Consumption Equivalents) 2 5 1 0 1 0 -5 0 -10 -1 -15 -1 -2 -4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4 Productivity Productivity Productivity Note: Policy functions for the model with tax only in expansions. See notes to Figure 2 for additional details. 31

Figure 8: Model with Tax only in Recessions: Frontier Welfare Gains, Baseline Model 0.35 4.5 0.3 4 )C0.25 e m 3.5 ite fiL 0.2 % 3 ( e ra fle 0.15 W 2.5 re v a 0.1 S 2 1.5 0.05 1 0.5 0 = 0 -0.05 0 0.05 0.1 0.15 0.2 0.25 Borrower Welfare (% Lifetime C) Note: Welfare gains for the model with tax only in recessions. See notes to Figure 3 for details. 32

Figure 9: Model with Tax only in Recessions: Policy Functions 1. House Price 2. Borrowing / Max 3. Borrowing 105 5 4 0 100 2 -5 0 95 Baseline -2 Tax -10 -4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4 Productivity Productivity Productivity 6. Welfare Borrower 4. Cons. Borrower 5. Cons. Saver (Consumption Equivalents) 10 1 1 5 0 0 0 -1 -5 -1 -2 -10 -2 -4 -2 0 2 4 -4 -2 0 2 4 -4 -2 0 2 4 Productivity Productivity Productivity Note: Policy functions for the model with tax only in recessions. See notes to Figure 2 for additional details. 33

Figure 10: Model with Borrowing Tax: Impulse Response Impulse Response, with and without Taxes 1. Productivity, % from ss 2. C Borrower, % from ss 3. C Saver, % from ss 2 +2sd, Tax 5 1 -2sd, Tax 0 +2sd: No Tax 0 0 -2sd: No Tax -2 -5 -1 5 10 15 20 5 10 15 20 5 10 15 20 4. H Borrower, % from ss 5. K Saver, % from ss 6. Asset Price, % from ss 5 2 1 0 0 0 -1 -5 -2 5 10 15 20 5 10 15 20 5 10 15 20 7. Debt % from ss 8. Interest Rate (ppt) 9. Tax Rate, % from ss 5 0.05 0.05 0 0 0 -5 -0.05 -0.05 5 10 15 20 5 10 15 20 5 10 15 20 Note: See notes to 1. This figure shows, for the model with borrowing tax, the impulse responses with and without tax. Both economies start from the risky steady state of the economy without tax. 34

Figure 11: Model with Borrowing Tax: Frontier Welfare Gains, Baseline Model 0.1 5 0.08 )C 0.06 e 4.5 m ite fiL 0.04 % ( e 4 ra fle 0.02 W 3.5 re v = 0 a 0 S 3 0.5 2.5 1 -0.02 1.5 2 -0.04 0 0.05 0.1 0.15 0.2 Borrower Welfare (% Lifetime C) Note: SeenotestoFigure3. Thisfigureshowsthefrontierforthemodelwithborrowing tax. 35

Figure 12: Model with Borrowing Tax: Transition to New Regime Transition to new regime 1. Productivity (Percent) 2. C Borrower (Percent) 3. C Saver (Percent) 1 0.8 0.05 0.6 0 0 0.4 0.2 -0.05 0 -0.1 -1 20 40 60 80 100 20 40 60 80 100 20 40 60 80 100 4. Interest Rate (Pct, Annual) 5. Asset Price (Percent) 6. Debt (Percent) 2 0.5 4.06 1 4.04 4.02 0 0 20 40 60 80 100 20 40 60 80 100 20 40 60 80 100 10-3 7. Multipler (x100) 8. CE Welf Bor (Percent) 9. CE Welf Sav (Percent) 5 0.03 0.02 0.1 0.01 0 0 0 20 40 60 80 100 20 40 60 80 100 20 40 60 80 100 Note: See notes to Figure 5. The figure shows the transition to the new regime in the model with borrowing tax. 36

Figure 13: Euler Equation Errors, Baseline Model Error Consumption Borrower Error Housing Borrower 0.003 0.004 MAE: 3.82e-04 MAE: 3.26e-04 e 0.002 ME: 3.42e-05 ME: 3.34e-05 d u 0.002 tin 0.001 g a M ro 0 0 rrE-0.001 -0.002 -0.002 0 200 400 600 800 1000 0 200 400 600 800 1000 Error Consumption Saver Error Investment Saver 0.0002 0.0001 MAE: 2.27e-05 MAE: 2.57e-05 e d 0 ME: -2.64e-06 0 ME: -3.67e-06 u tin g-0.0001 a -0.0002 M ro -0.0002 rrE -0.0004 -0.0003 -0.0004 -0.0006 0 200 400 600 800 1000 0 200 400 600 800 1000 Time Steps Time Steps Note: The figure shows Euler Equation errors in the Baseline Model. 37

A Technical Appendix A.1 Model Equations The equations for the natural savers are: y(cid:48) = A h(cid:48)γ k(cid:48)α , (A.1) t t t−1 t−1 c(cid:48) +k(cid:48) +q h(cid:48) −R b(cid:48) = y(cid:48) +q h(cid:48) −b(cid:48) +(1−δ)k(cid:48) , (A.2) t t t t t−1 t−1 t t t−1 t t−1 1 1 = β(cid:48)R E , (A.3) c(cid:48) t t c(cid:48) t t+1 1 1 (cid:18) y(cid:48) (cid:19) = β(cid:48)E α t+1 +1−δ , (A.4) c(cid:48) t c(cid:48) k(cid:48) t t+1 t q 1 (cid:18) y(cid:48) (cid:19) t = β(cid:48)E q +γ t+1 . (A.5) c(cid:48) t c(cid:48) t+1 h(cid:48) t t+1 t The equations for the natural borrowers are: y = A hγ , (A.6) t t t−1 c +q h (1+τ ) = b −R b −y +q h +T , (A.7) t t t t t t−1 t−1 t t t−1 t b ≤ mq h , (A.8) t t t 1 1 = βR E +λ , (A.9) t t t c c t t+1 (cid:18) (cid:19) q (1+τ ) 1 y t t t+1 = β q +γ +λ mq , (A.10) t+1 t t c c h t t+1 t λ ≥ 0, b ≤ mq h , λ (b −mq h ) = 0. (A.11) t t t t t t t t Market equilibrium is: nb = (1−n)b(cid:48), (A.12) t t nh +(1−n)h(cid:48) = 1. (A.13) t t The shock process is: A −1 = ρ(A −1)+σε , ε ∼ N (0,1). (A.14) t t−1 t The tax equals τ = ε(A −1) and is rebated to the borrower lump-sum, so that in equilibrium t t T = τ q h . t t t t 38

A.2 Steady State Analysis Assuming that the saver is never at the constraint and using market clearing conditions (dropping b(cid:48) and h(cid:48)), the steady state is characterized by: λ = 1−βR, (A.15) 1 R = . (A.16) β(cid:48) In steady state, the housing tax is zero, so τ = T = 0 The steady-state capital-output ratio is given by: k(cid:48) αβ(cid:48) = . (A.17) y(cid:48) 1−β(cid:48)(1−δ) The production relationships are: y = Ahγ, (A.18) y(cid:48) = Aκ(cid:48)αh(cid:48)γ. (A.19) This implies: qh(cid:48) β(cid:48)γ = , (A.20) y(cid:48) 1−β(cid:48) c(cid:48) k(cid:48) n b = 1−δ +(R−1) . (A.21) y(cid:48) y(cid:48) 1−ny(cid:48) For the borrower, the three key ratios are: qh βγ = , (A.22) y 1−β −(1−βR)m c k b = 1−δ −(R−1) , (A.23) y y y b qh = m . (A.24) y y With the housing market clearing condition: nh+(1−n)h(cid:48) = 1 (A.25) A.3 Solution Method The heterogeneous agents macroeconomics literature has witnessed large and recent advancements in computational techniques. Reiter (2009) introduces a solution method combining projection 39

and perturbation to handle high-dimensional state spaces. Auclert, Bardczy, Rognlie, and Straub (2021) build on this with the Sequence-Space Jacobian, enabling fast and efficient computation of generalequilibriummodels. GrandandRagot(2024)extendtheliteraturetofiscalpolicy,analyzing optimal debt and capital taxation in heterogeneous agents settings. These methods, however, do not take aggregate uncertainty into account and cannot be used for our analysis. In our model, and unlike Iacoviello (2005), we do not impose that the collateral constraint is always binding.23 We take into account that an appropriate tax regime can make the collateral constraint slack; it is key that the tax policy can change the stochastic steady state. As we mentioned earlier, the tax policy leads to less volatile house prices, which in turn raises the average house price and alleviates the collateral constraint. As a consequence, the methods mentioned above would not be sufficient. A.3.1 Overview of the Parameterized Expectations Algorithm We solve the model with global solution methods. More precisely, we use the Parameterized Expectations Algorithm approach introduced by den Haan and Marcet (1990). Recent applications and developments can be found in Judd, Maliar, and Maliar (2011), Faraglia, Marcet, Oikonomou, and Scott (2019) and Valaitis and Villa (2024). To solve the model using the Parameterized Expectations Algorithm (PEA), we transform the system to be invertible with respect to current variables. The PEA approximates conditional expectations as a function of the state variables. This method is particularly useful for handling occasionally binding constraints, as in our case with borrowing limits. A.3.2 Auxiliary Functions Define the maximum borrowing allowed as ¯b = mq h . We define the following auxiliary functions t t t to represent conditional expectations: 1 b¯ t Ψ = E (A.26) 1,t t c b t+1 t 1 y t+1 Ψ = E (q +γ ), (A.27) 2,t t t+1 c h t+1 t 1 Ψ = E , (A.28) 3,t t c(cid:48) t+1 1 y(cid:48) Ψ = E (q +γ t+1), (A.29) 4,t t c(cid:48) t+1 h(cid:48) t+1 t 1 y(cid:48) Ψ = E (α t+1 +1−δ). (A.30) 5,t t c(cid:48) k(cid:48) t+1 t 23See also Christiano and Fisher (2000). 40

A.3.3 System Under Binding Constraint Define d = R b to be the beginning of period debt. The system of equilibrium equations becomes: t t t 1 b t = βR Ψ +λ (A.31) c t 1,t b¯ t t t q (1+τ ) t t = βΨ +λ mq (A.32) 2,t t t c t 1 = β(cid:48)R Ψ (A.33) c(cid:48) t 3,t t q t = β(cid:48)Ψ (A.34) c(cid:48) 4,t t 1 = β(cid:48)Ψ (A.35) c(cid:48) 5,t t b = c +q h +d −y −q h (A.36) t t t t t−1 t t t−1 nc(cid:48) = ny +(1−n)y(cid:48) −(1−n)(k(cid:48) −(1−δ)k(cid:48) )−nc . (A.37) t t t t t−1 t If the constraint is binding, b = ¯b . Accordingly, this system can be solved recursively as t t follows: 1 c(cid:48) = , (A.38) t β(cid:48)Ψ 5,t Ψ 5,t R = , (A.39) t Ψ 3,t Ψ 4,t q = . (A.40) t Ψ 5,t To solve for λ , we use: t βΨ (Ψ Ψ −Ψ (1+τ )Ψ ) 5,t 2,t 3,t 4,t t 1,t λ = , (A.41) t (1+τ −m)Ψ Ψ t 3,t 4,t where we have already set b =¯b . t t The variable c can be obtained from equation (A.31). The variable h can be obtained from t t equation (A.36). The variable k(cid:48) can be obtained from equation (A.37). t 41

A.3.4 System Under Non-Binding Constraint When the constraint does not bind, the system of equations in equilibrium is: 1 b t = βR Ψ +λ (A.42) c t 1,t b¯ t t t q (1+τ ) t t = βΨ (A.43) 2,t c t 1 = β(cid:48)R Ψ (A.44) c(cid:48) t 3,t t q t = β(cid:48)Ψ (A.45) c(cid:48) 4,t t 1 = β(cid:48)Ψ (A.46) c(cid:48) 5,t t b = c +q h +d −y −q h (A.47) t t t t t−1 t t t−1 nc(cid:48) = ny +(1−n)y(cid:48) −(1−n)(k(cid:48) −(1−δ)k(cid:48) )−nc . (A.48) t t t t t−1 t λ = 0. (A.49) t If the constraint is not binding, λ = 0. Accordingly, this system can be solved recursively as t follows. As before in the binding case, use equations (A.38), (A.39) and (A.40) to solve for c(cid:48), R t t and q . We can then use equation (A.43) to solve for c . We can obtain b and h from (A.42) t t t t and (A.47). Finally from equation (A.49) we obtain k(cid:48). This completes the recursion of how all t variables are obtained. Also, note that if we had instead defined 1 Ψ = E , (A.50) 1,t t c t+1 and accordingly changed equation (A.42) to 1 = βR Ψ +λ , (A.51) t 1,t t c t the subsystem of equations (A.51) and (A.43) to (A.46) has five equations for four endogenous variables c , q , R , c(cid:48) with λ = 0. This is the reason we instead use definition (A.26). t t t t t A.3.5 Numerical Implementation In the numerical implementation, we approximate the conditional expectations Ψ with i ∈ 1,5 i,t (cid:74) (cid:75) using polynomial functions of the state variables. The state variables of our problem include i) the previous period’s housing stock (h ), ii) the previous period’s capital stock (k ), iii) the t−1 t−1 previous period’s debt level (b ), iv) and the current period productivity shocks (A ). We collect t−1 t the state variables in the vector X . t 42

The polynomial used in the PEA can be represented as: Ψ (X ;η), (A.52) i t where η is the vector of coefficients. For a given sequence of exogenous aggregate productivity shocks {A }T and an initial guess of the polynomials’ parameters, the standard stochastic PEA t t=1 aims to find parameters η that solve all Euler equations and all laws of motion. The coefficients of these polynomials are solved for iteratively until convergence is achieved. The solution algorithm follows these steps: 1. Initialize the polynomial coefficients for the conditional expectations at a guess η0. We compute the initial values of the conditional expectations and the guesses by solving for the model’s nonlinear policy functions using Dynare and OccBin.24 2. Solve the model’s equilibrium conditions using these approximations. 3. Simulate the model for T periods, where T is large. 4. Update the polynomial coefficients based on the simulation results to ηj, where j denotes the iteration. This step can be done by OLS. 5. Repeat steps 2-4 until convergence of the polynomial coefficients. Thisiterativeprocedurecontinuesuntilthemaximumchangeinpolynomialcoefficientsbetween iterations falls below a pre-specified tolerance level, that is ||ηj −ηj−1|| < ζ, where ||.|| denotes a norm and ζ > 0 is the tolerance level. The Euler equation errors are quite small and shown in Figure 13. A.4 Welfare Decomposition Consider period utility at a generic time t, the second-order Taylor expansion around the expected mean consumption in that period E c is: 0 t c −E c (c −E c )2 t 0 t t 0 t U(c ) ≈ log(E c )+ − . (A.53) t 0 t E 0 c t 2(E 0 c t )2 Note that for different time periods t, the point of approximation of the Taylor expansion is potentially different since E c is not necessarily equal to E c for t (cid:54)= s. We don’t want to 0 t 0 s approximate period utility but expected utility E [U(c )]. In this case, the second term on the 0 t right in equation (A.53) drops and we obtain: 24See Adjemian et al. (2011) and Guerrieri and Iacoviello (2015). The solution using OccBin approximates the model’s policy functions relatively well but, of course, cannot capture anticipation effects that are important for a full welfare evaluation of the model. 43

E (c −E c )2 0 t 0 t E [U(c )] ≈ log(E c )− . (A.54) 0 t 0 t 2(E c )2 0 t We do this for every time period t and sum with weights 1,β,β2,... and obtain: W = E (cid:88) ∞ βtU(c ) = (cid:88) ∞ βtE [U(c )] ≈ (cid:88) ∞ βtlog(E c )− (cid:88) ∞ βt E 0 (c t −E 0 c t )2 . (A.55) 0 t 0 t 0 t 2(E c )2 t=0 t=0 t=0 t=0 0 t This formula is exact without shocks, even with a transition from old to new steady state. Note thatwecoveredalltheutilitytermsforallstatesandperiods. Considerthe“matrixofsimulation”: t = 0 t = 1 t = 2 ... t = ∞ State 1 c c c ... c 1,0 1,1 1,2 1,∞ State 2 c c c ... c 2,0 2,1 2,2 2,∞ . . . . . . . . . . . . ... . . . State ∞ c c c ... c ∞,0 ∞,1 ∞,2 ∞,∞ where time periods run across columns, and states of nature of the time-series of productivity shocks run across rows.25 We do a Taylor approximation for each time period t, which are in the columns. For each column, the point of approximation is E c . Afterwards, we sum the Taylor 0 t approximations with weights 1,β,β2,... and so on. Visually, each Taylor approximation covers each column; we then sum the approximations with the correct weights of discounting, summing across columns, and in doing so, we cover the entire “matrix of simulations”. To compute welfare differences between two economies A and B we obtain: ∞ (cid:88) W −W ≈ βt(log(E c )−log(E c )) A B 0 A,t 0 B,t t=0 + (cid:88) ∞ βt (cid:32) − E 0 (c A,t −E 0 c A,t )2 + E 0 (c B,t −E 0 c B,t )2 (cid:33) . (A.56) 2(E c )2 2(E c )2 t=0 0 A,t 0 B,t Finally, we separate the first summation on the right into two summations from 0 to T and T +1 to ∞. This yields the expressions in the main text. 25Each row corresponds to a different sequence {A }∞ . t t=0 44

Cite this document
APA
Matteo Iacoviello, Ricardo Nunes, & and Andrea Prestipino (2025). Optimal Credit Market Policy (IFDP 2025-1406). Board of Governors of the Federal Reserve System, International Finance Discussion Papers. https://whenthefedspeaks.com/doc/ifdp_2025-1406
BibTeX
@techreport{wtfs_ifdp_2025_1406,
  author = {Matteo Iacoviello and Ricardo Nunes and and Andrea Prestipino},
  title = {Optimal Credit Market Policy},
  type = {International Finance Discussion Papers},
  number = {2025-1406},
  institution = {Board of Governors of the Federal Reserve System},
  year = {2025},
  url = {https://whenthefedspeaks.com/doc/ifdp_2025-1406},
  abstract = {We study optimal credit market policy in a stochastic, quantitative, general equilibrium, infinite-horizon economy with collateral constraints tied to housing prices. Collateral constraints yield a competitive equilibrium that is Pareto inefficient. Taxing housing in good states and subsidizing it in recessions leads to a Pareto-improving allocation for borrowers and savers. Quantitatively, the welfare gains afforded by the optimal tax are significant. The optimal tax reduces the covariance of collateral prices with consumption, and, by doing so, it increases asset prices on average, thus providing welfare gains both in steady state and around it. We also show that the welfare gains stem from mopping up after the crash rather than a pure ex-ante macroprudential aspect, aligning with prior research that emphasizes the importance of ex-post measures compared to preventive policies alone.},
}