Investment to Assets

Calculate the investment-to-assets of Lyandres, Sun and Zhang (2008): the investment in property, plant and equipment and in inventory over a year, relative to the total assets at its start.

Companies that invest more earn lower returns, as a lower cost of capital makes more projects worth investing in. Lyandres, Sun and Zhang show that this investment factor explains much of the new issues puzzle, and Chen, Novy-Marx and Zhang (2011) and Hou, Xue and Zhang (2015) build the investment factor of their q-factor model on it. It measures physical investment only, where the asset growth of get_asset_growth covers every asset.

The formula is as follows:

\[\text{Investment to Assets} = \frac{\Delta\text{PPE} + \Delta\text{Inventory}}{\text{Beginning Total Assets}}\]

PPE is the property, plant and equipment and Delta the change over a year (four quarters with quarterly data); the beginning total assets are those a year earlier.

The formula for the inventory investment of Thomas and Zhang (2002) is as follows:

\[\text{Inventory Investment} = \frac{\Delta\text{Inventory}}{\text{Average Total Assets}}\]

The average total assets are those at the start and the end of the year. Thomas and Zhang find that the inventory changes drive most of the accrual anomaly: companies that build up inventory earn lower returns afterwards. Thomas, J. K. and H. Zhang (2002). “Inventory Changes and Future Returns.” Review of Accounting Studies, 7(2-3), 163-187.

Also known as: I/A, investment-to-assets, physical investment, inventory changes, ChInv.

Example · AAPL, MSFT, META, XOM · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_investment_to_assets:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "MSFT", "META", "XOM"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.ratios.get_investment_to_assets()

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

How much did Apple, Microsoft, Meta and ExxonMobil invest in property, plant and equipment and inventory relative to their total assets from 2021 to 2025?

Which returns:

Parameters

get_investment_to_assets accepts the following parameters.

ParameterTypeDescriptionExample
methodstrThe investment. Options are: “physical” (the investment-to-assets), “inventory” (the inventory investment). Defaults to “physical”."physical"
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the ratios. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
compoundboolWhether the growth is the compound annual growth rate over the lag (e.g. lag=5 for the five-year CAGR) instead of the total change. Defaults to False.False
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
transformstr | list[str] | NoneTime series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None.None
show_columnsstr | list[str] | NoneThe columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column.None, which keeps every column

References

  • Paper Lyandres, E., L. Sun and L. Zhang (2008). “The New Issues Puzzle: Testing the Investment-Based Explanation.” Review of Financial Studies, 21(6), 2825-2855.
  • Paper Thomas, J. K. and H. Zhang (2002). “Inventory Changes and Future Returns.” Review of Accounting Studies, 7(2-3), 163-187.
Share