Accrual Quality
Calculate the accrual quality of Dechow and Dichev (2002).
How well a company’s working capital accruals map into its operating cash flows of the year before, the year itself and the year after. Accruals anticipate cash flows (a sale on credit is collected next year), so accruals that the cash flows do not explain are estimation errors; their standard deviation measures the quality of the accruals and of the earnings they are part of. A higher value means lower quality. Francis et al. (2005) found that companies with poor accrual quality have a higher cost of capital.
The regression is estimated per company over the window years before the period:
with ΔWC the increase in working capital (minus the Change in Working Capital of the cash flow statement: the change in receivables and inventory less the change in payables, taxes payable and other working capital) and every variable divided by the average total assets of its year.
Also known as: Dechow-Dichev model, accruals quality, AQ, DD model, McNichols model.
Example · AAPL, MSFT · 2010 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_accrual_quality:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2010-01-01",
end_date="2025-12-31",
)
# The last six years, each estimated on the eight years before it
toolkit.models.get_accrual_quality().xs("Accrual Quality", level=1).iloc[:, -6:]
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How closely did the accruals of Apple and Microsoft map into cash flows from 2020 to 2025, each year estimated on the eight years before it?
Which returns:
| Item | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|---|
| AAPL | 0.0295 | 0.0282 | 0.0291 | 0.0199 | 0.0216 | 0.0216 |
| MSFT | 0.0546 | 0.0540 | 0.0346 | 0.0352 | 0.0225 | 0.0197 |
2 rows
Parameters
get_accrual_quality accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
method | str | Options are: “dechow_dichev” (Dechow and Dichev, 2002), “mcnichols” (McNichols, 2002, which adds the change in revenue and the property, plant and equipment). Defaults to “dechow_dichev”. | "dechow_dichev" |
window | int | The number of years every regression is estimated on, at least one more than the coefficients it estimates: 5 for the Dechow and Dichev model and 7 for the McNichols model. Dechow and Dichev required at least 8 years per company. Defaults to 8. | 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 Dechow, P. M. and Dichev, I. D. (2002). “The Quality of Accruals and Earnings: The Role of Accrual Estimation Errors.” The Accounting Review, 77(Supplement), 35-59.
- Paper McNichols, M. F. (2002). “Discussion of The Quality of Accruals and Earnings: The Role of Accrual Estimation Errors.” The Accounting Review, 77(Supplement), 61-69.
- Paper Francis, J., LaFond, R., Olsson, P. and Schipper, K. (2005). “The Market Pricing of Accruals Quality.” Journal of Accounting and Economics, 39(2), 295-327.