Earnings Attributes
Calculate the accounting-based earnings attributes of Francis, LaFond, Olsson and Schipper (2004).
These are the persistence, predictability and smoothness of a company’s earnings over the past years. Persistent and predictable earnings are more useful to forecast with, and the paper finds that companies with less favourable attributes have a higher cost of equity. Together with the accrual quality (get_accrual_quality) they are the paper’s accounting attributes.
The formula is as follows, each over the window years up to the period:
with EPS the net income from continuing operations (the earnings before extraordinary items of the paper) over the weighted average shares. A persistence near 1 means earnings shocks last; larger predictability and smoothness values mean less predictable and less smooth earnings (as in the paper, larger values are less desirable).
Also known as: earnings persistence, earnings predictability, earnings smoothness, earnings quality attributes, Francis LaFond Olsson Schipper.
Example · AAPL, MSFT · 2010 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_earnings_attributes:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2010-01-01",
end_date="2025-12-31",
)
toolkit.models.get_earnings_attributes()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How persistent, predictable and smooth were the earnings of Apple and Microsoft from 2018 to 2025?
Which returns:
| Item | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|---|---|---|
| ('AAPL', 'Persistence') | 0.9719 | 0.8779 | 0.8644 | 1.3562 | 1.1528 | 0.9926 | 0.9229 | 1.0150 |
| ('AAPL', 'Predictability') | 0.3459 | 0.3408 | 0.3384 | 0.7336 | 0.7608 | 0.7721 | 0.7744 | 0.8457 |
| ('AAPL', 'Smoothness') | 0.7622 | 0.7474 | 0.7391 | 0.8799 | 0.8643 | 0.9365 | 0.9284 | 1.1048 |
| ('MSFT', 'Persistence') | -0.0581 | -0.3582 | 0.6982 | 1.1725 | 1.1663 | 1.0312 | 1.0803 | 1.0464 |
| ('MSFT', 'Predictability') | 0.5798 | 1.0244 | 1.2588 | 1.4298 | 1.3595 | 1.4282 | 1.4569 | 1.2686 |
| ('MSFT', 'Smoothness') | 1.2413 | 1.2008 | 1.2202 | 1.1846 | 1.5726 | 1.6160 | 1.4189 | 1.3102 |
6 rows
Parameters
get_earnings_attributes accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
window | int | The number of years of every window, at least 3 for the regression; the paper uses 10. Defaults to 10. | 20 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the Toolkit’s rounding. | 2 |
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 Francis, J., LaFond, R., Olsson, P. M. and Schipper, K. (2004). “Costs of Equity and Earnings Attributes.” The Accounting Review, 79(4), 967-1010.