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:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| AAPL | 0.0207 | 0.0039 | 0.0091 | 0.0071 | 0.0097 |
| META | 0.0940 | 0.1339 | 0.0952 | 0.1149 | 0.2193 |
| MSFT | 0.0619 | 0.0535 | 0.0581 | 0.1051 | 0.1463 |
| XOM | -0.0333 | -0.0183 | 0.0296 | 0.2067 | 0.0173 |
4 rows
Parameters
get_investment_to_assets accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
method | str | The investment. Options are: “physical” (the investment-to-assets), “inventory” (the inventory investment). Defaults to “physical”. | "physical" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the ratios. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
compound | bool | Whether 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 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time 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_columns | str | list[str] | None | The 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.