# Finance Toolkit Documentation: Every Method > Each page explains one method of the Finance Toolkit (Python): what it measures, the formula, its parameters, a Python example with its full result, and the same question to ask through the Finance Toolkit MCP server. 1447 pages in 14 modules. ## [Toolkit](https://www.jeroenbouma.com/projects/financetoolkit/docs) - [Analyst Consensus](https://www.jeroenbouma.com/projects/financetoolkit/docs/analyst-consensus): `get_analyst_consensus`. How many analysts recommend each company as a strong buy, buy, hold, sell or strong sell today, and the consensus of those recommendations. - [Analyst Estimates](https://www.jeroenbouma.com/projects/financetoolkit/docs/analyst-estimates): `get_analyst_estimates`. Analyst estimates regarding revenues, EBITDA, EBIT, Net Income SGA Expenses and EPS, with the number of analysts behind the revenue ("Number of Analysts... - [Analyst Grades](https://www.jeroenbouma.com/projects/financetoolkit/docs/analyst-grades): `get_stock_grades`. The grades analysts gave each company: per date and grading company the previous and the new grade, and whether the grade was upgraded, downgraded or... - [Analyst Recommendations](https://www.jeroenbouma.com/projects/financetoolkit/docs/analyst-recommendations): `get_analyst_recommendations`. Next to the counts come the number of analysts, the share of them recommending a (strong) buy and the mean recommendation on the conventional scale from 1... - [Balance Sheet Statements](https://www.jeroenbouma.com/projects/financetoolkit/docs/balance-sheet-statements): `get_balance_sheet_statement`. The balance sheet statement is a financial statement that provides a snapshot of a company's financial position at a specific point in time. - [Beneficial Ownership](https://www.jeroenbouma.com/projects/financetoolkit/docs/beneficial-ownership): `get_beneficial_ownership`. The major shareholders of each company: the investors that own more than 5% of a class of its shares, from their Schedule 13D and 13G filings. - [Cache Contents](https://www.jeroenbouma.com/projects/financetoolkit/docs/cache-contents): `get_cache_contents`. Show what the cache currently holds, grouped by source and dataset. With what it means and an example in Python. - [Cash Flow Statements](https://www.jeroenbouma.com/projects/financetoolkit/docs/cash-flow-statements): `get_cash_flow_statement`. The cash flow statement is a financial statement that shows how changes in balance sheet accounts and income affect cash and cash equivalents. - [Clear Cache](https://www.jeroenbouma.com/projects/financetoolkit/docs/clear-cache): `clear_cache`. Remove cached data, either all of it or only the part you specify. The Finance Toolkit never clears the cache on its own. - [Commitment of Traders](https://www.jeroenbouma.com/projects/financetoolkit/docs/commitment-of-traders): `get_commitment_of_traders`. Published weekly by the U.S. With the formula, how to read it and an example in Python. - [Company Profiles](https://www.jeroenbouma.com/projects/financetoolkit/docs/company-profiles): `get_profile`. These include important metrics such as the beta, market capitalization, currency, isin, industry, and ipo date that give an overall understanding about... - [Congressional Trades](https://www.jeroenbouma.com/projects/financetoolkit/docs/congressional-trades): `get_congressional_trades`. The trades members of the United States Congress disclosed in each company: who traded, when, which way and for how much. - [Current Quotes](https://www.jeroenbouma.com/projects/financetoolkit/docs/current-quotes): `get_quote`. The latest quote of every ticker, its price and trading statistics. With what it means and an example in Python. - [Dividend Calendar](https://www.jeroenbouma.com/projects/financetoolkit/docs/dividend-calendar): `get_dividend_calendar`. If a company does not pay any dividend, the function will mention that it was not able to find any dividend data for that company. - [ESG Ratings](https://www.jeroenbouma.com/projects/financetoolkit/docs/esg-ratings): `get_esg_ratings`. The ESG risk rating of each company per fiscal year: a letter rating, the industry the company is rated in and its rank within that industry. - [ESG Scores](https://www.jeroenbouma.com/projects/financetoolkit/docs/esg-scores): `get_esg_scores`. ESG scores, which stands for Environmental, Social, and Governance scores, are a crucial metric used by investors and organizations to assess a company's... - [Earnings Calendar](https://www.jeroenbouma.com/projects/financetoolkit/docs/earnings-calendar): `get_earnings_calendar`. You have the option to obtain the actual dates or to convert to the corresponding quarters. With what it means and an example in Python. - [Earnings Call Transcripts](https://www.jeroenbouma.com/projects/financetoolkit/docs/earnings-call-transcripts): `get_earnings_call_transcripts`. The earnings call transcripts of each company: the full text of the call, with management's prepared remarks followed by the questions of analysts and the... - [Earnings Surprise](https://www.jeroenbouma.com/projects/financetoolkit/docs/earnings-surprise): `get_earnings_surprise`. How far each reported EPS and revenue came in above or below the analyst consensus, and how the share price reacted to it, in one table per announcement. - [Employee Count](https://www.jeroenbouma.com/projects/financetoolkit/docs/employee-count): `get_employee_count`. The most recent row is the current employee count and the rows before it show how the workforce developed, which can be set against revenue or profit to... - [Exchange Rates](https://www.jeroenbouma.com/projects/financetoolkit/docs/exchange-rates): `get_exchange_rates`. The exchange rates that convert the currency of the historical data into the currency of the financial statements. - [Executive Compensation](https://www.jeroenbouma.com/projects/financetoolkit/docs/executive-compensation): `get_executive_compensation`. The compensation of each company's executives per year as reported in the proxy statement (DEF 14A). - [Free Float](https://www.jeroenbouma.com/projects/financetoolkit/docs/free-float): `get_shares_float`. The free float of each company: the number of shares available for public trading, the number of shares outstanding and the free float as the share of the... - [Historical Data](https://www.jeroenbouma.com/projects/financetoolkit/docs/historical-data): `get_historical_data`. Volatility, Excess Return and Excess Volatility are not included here. With what it means and an example in Python. - [Historical Statistics](https://www.jeroenbouma.com/projects/financetoolkit/docs/historical-statistics): `get_historical_statistics`. This is especially useful to understand why certain tickers might fluctuate more than others as it could be due to local regulations or the currency the... - [Income Statements](https://www.jeroenbouma.com/projects/financetoolkit/docs/income-statements): `get_income_statement`. The income statement is a financial statement that shows a company's revenues and expenses over a specific period. - [Insider Trade Statistics](https://www.jeroenbouma.com/projects/financetoolkit/docs/insider-trade-statistics): `get_insider_trade_statistics`. Quarterly statistics on the trades of each company's insiders. With what it means and an example in Python. - [Institutional Ownership](https://www.jeroenbouma.com/projects/financetoolkit/docs/institutional-ownership): `get_institutional_ownership`. The institutional ownership of each company per quarter. With what it means and an example in Python. - [Intraday Data](https://www.jeroenbouma.com/projects/financetoolkit/docs/intraday-data): `get_intraday_data`. Volatility is not included here. This is available as a dedicated calculation in the Risk module instead (e.g. toolkit.risk.get_volatility). - [Key Executives](https://www.jeroenbouma.com/projects/financetoolkit/docs/key-executives): `get_executives`. The key executives of each company: their title, pay, gender, year of birth and whether they are still active. With what it means and an example in Python. - [Listed Notes](https://www.jeroenbouma.com/projects/financetoolkit/docs/listed-notes): `get_company_notes`. The securities other than common stock that each company has registered for listing, mostly notes with their coupon and maturity in the title (e.g. "1.625%... - [Market Risk Premium](https://www.jeroenbouma.com/projects/financetoolkit/docs/market-risk-premium): `get_market_risk_premium`. The equity risk premium of every country, the extra return investors require there for holding equities. With what it means and an example in Python. - [Mergers & Acquisitions](https://www.jeroenbouma.com/projects/financetoolkit/docs/mergers-and-acquisitions): `get_mergers_acquisitions`. The mergers and acquisitions each company took part in, as the acquirer or as the target, based on the merger filings (S-4) with the SEC. - [Mutual Fund Holders](https://www.jeroenbouma.com/projects/financetoolkit/docs/mutual-fund-holders): `get_mutual_fund_holders`. The mutual funds that hold each company: the shares each fund holds, how that changed since its previous disclosure and how much of the fund the company... - [Normalization Files](https://www.jeroenbouma.com/projects/financetoolkit/docs/normalization-files): `get_normalization_files`. Copy the normalization files, which map the financial statement fields of the data source, to a folder. With what it means and an example in Python. - [Press Releases](https://www.jeroenbouma.com/projects/financetoolkit/docs/press-releases): `get_press_releases`. The latest official company press releases for the tickers of this Toolkit instance, such as earnings announcements and corporate communications. - [Price Target History](https://www.jeroenbouma.com/projects/financetoolkit/docs/price-target-history): `get_price_target_history`. Every price target analysts published for each company. With what it means and an example in Python. - [Price Targets](https://www.jeroenbouma.com/projects/financetoolkit/docs/price-targets): `get_price_targets`. A price target is the share price an analyst expects in about twelve months. - [Ratings and Recommendations](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratings-and-recommendations): `get_rating`. The rating of the specified tickers: a letter rating and an overall score based on six scores from 1 (weak) to 5 (strong). - [Revenue Geographic Segmentation](https://www.jeroenbouma.com/projects/financetoolkit/docs/revenue-geographic-segmentation): `get_revenue_geographic_segmentation`. Revenue by geographic segmentation (e.g. United States, Europe, Asia). Note that this information requires a Premium FMP subscription. - [Revenue Product Segmentation](https://www.jeroenbouma.com/projects/financetoolkit/docs/revenue-product-segmentation): `get_revenue_product_segmentation`. Note that this information requires a Premium FMP subscription. Also known as: revenue by product, product segment revenue. - [Short Interest](https://www.jeroenbouma.com/projects/financetoolkit/docs/short-interest): `get_short_interest`. The short interest of each company: the shares sold short and not yet bought back, twice a month, with the days to cover and the short interest as a share... - [Short Volume](https://www.jeroenbouma.com/projects/financetoolkit/docs/short-volume): `get_short_volume`. The daily short sale volume of each company. With what it means and an example in Python. - [Statistics Statements](https://www.jeroenbouma.com/projects/financetoolkit/docs/statistics-statements): `get_statistics_statement`. The filing details of each financial statement period: the reported currency, the CIK, the filing and acceptance dates, the fiscal period and the links to... - [Stock News](https://www.jeroenbouma.com/projects/financetoolkit/docs/stock-news): `get_stock_news`. The latest news articles for the tickers of this Toolkit instance, whether they are stocks, cryptocurrencies or currency pairs. - [Stock Splits](https://www.jeroenbouma.com/projects/financetoolkit/docs/stock-splits): `get_stock_splits`. The stock splits of each company, with the split ratio as a numerator and denominator. - [Treasury Rates](https://www.jeroenbouma.com/projects/financetoolkit/docs/treasury-rates): `get_treasury_data`. Daily, weekly, monthly, quarterly or yearly US Treasury yields for four maturities, 13 weeks, 5 years, 10 years and 30 years, from FinancialModelingPrep or... ## [Discovery](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery) - [Biggest Gainers](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/biggest-gainers): `get_biggest_gainers`. This includes the symbol, the name, the price, the change and the change percentage. The change percentage ("Change %") is a decimal (0.0125 is +1.25%). - [Biggest Losers](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/biggest-losers): `get_biggest_losers`. Biggest Losers: This includes the symbol, the name, the price, the change and the change percentage. The change percentage ("Change %") is a decimal... - [Commodities List](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/commodities-list): `get_commodity_list`. The commodity list function returns a complete list of all commodity symbols that can be used in the Finance Toolkit. - [Company List](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/company-list): `get_stock_list`. The complete list of stock symbols that can be used in the Finance Toolkit, with their name, price and exchange. With what it means and an example in Python. - [Cryptocurrency List](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/cryptocurrency-list): `get_crypto_list`. The complete list of cryptocurrency symbols that can be used in the Finance Toolkit. These are over 4.000 symbols. - [Cryptocurrency News](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/cryptocurrency-news): `get_crypto_news`. The latest cryptocurrency news articles. Also known as: crypto news feed, digital asset news. With what it means and an example in Python. - [Delisted Companies](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/delisted-companies): `get_delisted_stocks`. The delisted stocks function returns a page of delisted stocks including the IPO and delisted date. With what it means and an example in Python. - [ESG Benchmark](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/esg-benchmark): `get_esg_benchmark`. The average Environmental, Social, Governance and ESG scores of each sector, the benchmark to compare a company's ESG scores with. - [ETF List](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/etf-list): `get_etf_list`. The etf list function returns a complete list of all etf symbols that can be used in the Finance Toolkit. With what it means and an example in Python. - [Earnings Calendar](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/earnings-calendar): `get_earnings_calendar`. The earnings releases of all companies in a date range, reported and expected. With what it means and an example in Python. - [Exchange Holidays](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/exchange-holidays): `get_exchange_holidays`. A closed day has no trading at all, while a shortened day (such as the day after Thanksgiving on the New York exchanges, which close at 13:00) has an... - [Exchange Market Hours](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/exchange-market-hours): `get_exchange_market_hours`. The opening and closing hours are local times with their offset to UTC (such as 09:30 AM -05:00 for New York in winter), so the sessions of exchanges in... - [Floating Shares](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/floating-shares): `get_stock_shares_float`. The shares float is the number of shares available for trading for each company. It also includes the number of shares outstanding and the date. - [Forex List](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/forex-list): `get_forex_list`. The complete list of currency pair symbols that can be used in the Finance Toolkit. These are over 1.000 symbols. With what it means and an example in Python. - [Forex News](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/forex-news): `get_forex_news`. The latest forex news articles. Also known as: forex news feed, currency market news. With what it means and an example in Python. - [General News](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/general-news): `get_general_news`. The latest general news articles, spanning macroeconomic and broad market coverage rather than a specific ticker. With what it means and an example in Python. - [IPO Calendar](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/ipo-calendar): `get_ipo_calendar`. The calendar of upcoming and recent initial public offerings (IPOs), including expected pricing, exchange, and share count. - [IPO Disclosures](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/ipo-disclosures): `get_ipo_disclosures`. The regulatory filings companies make ahead of an initial public offering (IPO). With what it means and an example in Python. - [IPO Prospectuses](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/ipo-prospectuses): `get_ipo_prospectuses`. The prospectuses of initial public offerings (IPOs): the price of the offering and the proceeds it raises. With what it means and an example in Python. - [Index Constituent Changes](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/index-constituent-changes): `get_index_constituent_changes`. The dated additions to and removals from the S&P 500, the NASDAQ 100 or the Dow Jones Industrial Average. With what it means and an example in Python. - [Index Constituents](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/index-constituents): `get_index_constituents`. The members of the S&P 500, the NASDAQ 100 or the Dow Jones Industrial Average, today or on a past date. With what it means and an example in Python. - [Index List](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/index-list): `get_index_list`. The index list function returns a complete list of all index symbols that can be used in the Finance Toolkit. With what it means and an example in Python. - [Industry P/E](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/industry-p-e): `get_industry_pe`. The price-to-earnings (P/E) ratio of the companies in each industry of an exchange, how richly each industry is valued. - [Industry Performance](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/industry-performance): `get_industry_performance`. The average daily price change of the companies in each industry of an exchange, as a decimal (0.0125 means +1.25%). - [Industry Statistics](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/industry-statistics): `get_industry_statistics`. Aswath Damodaran's industry averages: betas, the cost of capital, margins and valuation multiples for each of his roughly 95 industries and the market as a... - [Latest 8-K Filings](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/latest-8-k-filings): `get_sec_filings_8k`. Companies file an 8-K to announce a material event between their periodic reports, such as results, an acquisition, a change of management or a new... - [Latest Congressional Trades](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/latest-congressional-trades): `get_congressional_trades_latest`. Under the STOCK Act of 2012, members of the Senate and the House of Representatives, their spouses and dependent children disclose every trade over $1,000... - [Latest Insider Trades](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/latest-insider-trades): `get_insider_trading_latest`. The most recent trades by company insiders, as reported in their Form 4 filings. With what it means and an example in Python. - [Mergers & Acquisitions](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/mergers-and-acquisitions): `get_mergers_acquisitions_latest`. The most recent mergers and acquisitions deal announcements, including the acquirer and target companies and a link to the underlying SEC filing. - [Most Active](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/most-active): `get_most_active_stocks`. Most Active: This includes the symbol, the name, the price, the change and the change percentage. The change percentage ("Change %") is a decimal (0.0125... - [Press Releases](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/press-releases): `get_press_releases`. The latest official company press releases, such as earnings announcements, mergers, and other corporate communications. - [Search Cryptocurrency News](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/search-cryptocurrency-news): `search_crypto_news`. Searches cryptocurrency news articles by one or more coin/token symbols. Also known as: crypto news search, coin news lookup. - [Search Forex News](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/search-forex-news): `search_forex_news`. Searches forex news articles by one or more currency pair symbols. Also known as: forex news search, currency pair news lookup. - [Search Instruments](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/search-instruments): `search_instruments`. Search for companies and other financial instruments by name or symbol, returning every symbol that matches the query. - [Search Press Releases](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/search-press-releases): `search_press_releases`. Searches company press releases by one or more ticker symbols. Also known as: press release search, corporate announcement lookup. - [Search Stock News](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/search-stock-news): `search_stock_news`. Searches stock market news articles by one or more ticker symbols. Also known as: ticker news search, company news lookup. - [Sector P/E](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/sector-p-e): `get_sector_pe`. The price-to-earnings (P/E) ratio of the companies in each sector of an exchange, how richly each sector is valued. - [Sector Performance](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/sector-performance): `get_sectors_performance`. The values are the average change of the companies in that sector listed on an exchange (NASDAQ by default) on that date, as a decimal (0.0125 is +1.25%). - [Sector Performance](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/sector-performance-sector-performance): `get_sector_performance`. The average daily price change of the companies in each sector of an exchange, as a decimal (0.0125 means +1.25%). - [Stock Market News](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/stock-market-news): `get_stock_news`. This includes the ticker symbol (when applicable), publisher, title, a short snippet, and the article URL. With what it means and an example in Python. - [Stock Screener](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/stock-screener): `get_stock_screener`. Screen stocks based on a set of criteria. This can be useful to find companies that match a specific criteria or your analysis. - [Stock Splits Calendar](https://www.jeroenbouma.com/projects/financetoolkit/docs/discovery/stock-splits-calendar): `get_stock_splits_calendar`. Same calendar pattern as the earnings and dividend calendars. A date range longer than 90 days is retrieved in parts of 90 days, one request each. ## [Ratios](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios) - [Abnormal Capital Investment](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/abnormal-capital-investment): `get_abnormal_capital_investment`. The abnormal capital investment of Titman, Wei and Xie (2004): how far a company's capital expenditure relative to its sales lies above its average of the... - [Accounts Payables Turnover Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/accounts-payables-turnover-ratio): `get_accounts_payables_turnover_ratio`. The accounts payable turnover ratio, an efficiency ratio that measures how quickly a company pays its suppliers. With the formula and an example in Python. - [Asset Coverage Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/asset-coverage-ratio): `get_asset_coverage_ratio`. The asset coverage ratio, a solvency ratio that measures how well a company's tangible assets, after settling non-debt current liabilities, can cover its... - [Asset Growth](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/asset-growth): `get_asset_growth`. The asset growth of Cooper, Gulen and Schill (2008): the change in total assets over a year relative to the total assets at the start of it. - [Asset Liquidity](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/asset-liquidity): `get_asset_liquidity`. The Asset Liquidity of Gopalan, Kadan and Pevzner (2012) weighs the cash fully, the other current assets by three quarters and the tangible fixed assets by... - [Asset Tangibility](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/asset-tangibility): `get_asset_liquidity`. The Asset Tangibility is the expected liquidation value of the assets as a share of the total assets, with the recovery rates Berger, Ofek and Swary (1996)... - [Asset Turnover Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/asset-turnover-ratio): `get_asset_turnover_ratio`. The asset turnover ratio, an efficiency ratio that measures how efficiently a company uses its assets to generate sales. - [Assets to Market](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/assets-to-market): `get_enterprise_book_to_price`. The Assets to Market is the total assets over the market value of the equity, the market leverage of Fama and French (1992). - [Average Age of Fixed Assets](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/average-age-of-fixed-assets): `get_fixed_asset_age`. The Average Age of Fixed Assets is the number of years the property, plant and equipment has been depreciated, on average. - [Ball Operating Profitability](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ball-operating-profitability): `get_operating_profitability`. The Ball Operating Profitability of Ball, Gerakos, Linnainmaa and Nikolaev (2015) is the revenue minus the cost of goods sold and the selling, general and... - [Book Value per Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/book-value-per-share): `get_book_value_per_share`. The book value per share, a valuation ratio that measures the amount of common equity value per share outstanding. With the formula and an example in Python. - [Buyback Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/buyback-yield): `get_buyback_yield`. The buyback yield, a valuation ratio that measures the net amount of common stock repurchased (net of new shares issued) relative to the company's market... - [CAPEX Coverage Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/capex-coverage-ratio): `get_capex_coverage_ratio`. The capital expenditure coverage ratio, a solvency ratio that measures a company's ability to cover its capital expenditures with its cash flow from... - [CAPEX Dividend Coverage Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/capex-dividend-coverage-ratio): `get_capex_dividend_coverage_ratio`. The dividend paid and capital expenditure coverage ratio, a solvency ratio that measures a company's ability to cover both its capital expenditures and... - [CAPEX per Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/capex-per-share): `get_capex_per_share`. The capex per share, a valuation ratio that measures the amount of capital expenditures made per outstanding share of a company's stock. - [Capex Intensity](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/capex-intensity): `get_capex_intensity`. Capex intensity shows how capital-heavy a business is: utilities, telecoms, semiconductor manufacturers and energy producers spend a large part of their... - [Capex to Depreciation](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/capex-to-depreciation): `get_capex_to_depreciation_ratio`. The capital expenditure to depreciation ratio, which compares what a company invests in its assets with what wears off them. - [Capex to Operating Cash Flow Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/capex-to-operating-cash-flow-ratio): `get_capex_to_operating_cash_flow_ratio`. The capital expenditure to operating cash flow ratio, the share of the cash from operations that a company reinvests in property, plant and equipment. - [Capital Allocation](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/capital-allocation): `get_capital_allocation`. The capital allocation of Mauboussin and Callahan: where a company puts its capital, as the share of capital expenditure, research and development... - [Cash Conversion Cycle](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-conversion-cycle): `get_cash_conversion_cycle`. The cash conversion cycle: the number of days a company's cash is tied up in inventory and receivables, less the days it takes to pay its suppliers. - [Cash Conversion Efficiency](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-conversion-efficiency): `get_cash_conversion_efficiency`. The cash conversion efficiency, an efficiency ratio that measures how efficiently a company converts its sales into cash. - [Cash Flow Coverage Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-flow-coverage-ratio): `get_cash_flow_coverage_ratio`. The cash flow coverage ratio, a solvency ratio that measures a company's ability to pay off its debt with its operating cash flow. - [Cash Interest Coverage](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-interest-coverage): `get_cash_interest_coverage_ratio`. The cash interest coverage ratio, the number of times the operating cash flow before interest and taxes covers the interest paid in cash. - [Cash Productivity](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-productivity): `get_cash_productivity`. The cash productivity of Chandrashekar and Rao (2009): the value the market gives a company beyond its assets, per unit of cash it holds. - [Cash Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-ratio): `get_cash_ratio`. The cash ratio, a liquidity ratio that measures a company's ability to pay off its short-term liabilities with its cash and cash equivalents. - [Cash Return on Assets (CRoA)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-return-on-assets-croa): `get_cash_return_on_assets`. The cash return on assets (Cash ROA), a profitability ratio that measures how efficiently a company uses its assets to generate operating cash flow. - [Cash Return on Equity](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-return-on-equity): `get_cash_return_on_equity`. The cash return on equity is the cash counterpart of the return on equity in the cash flow ratios of the CFA Institute. - [Cash Return on Invested Capital (CROIC)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-return-on-invested-capital-croic): `get_cash_return_on_invested_capital`. The cash return on invested capital (CROIC), the free cash flow a company generates on the capital that shareholders and lenders have invested in it. - [Cash Tax Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-tax-rate): `get_cash_tax_rate`. The cash tax rate, which measures the percentage of pretax income that is actually paid out in cash taxes, as opposed to the accrual-based effective tax rate. - [Cash Turnover Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-turnover-ratio): `get_cash_turnover_ratio`. The sales to cash ratio is one of the accounting ratios with which Ou and Penman (1989) predict the direction of earnings changes. - [Cash per Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-per-share): `get_cash_per_share`. The cash per share, the cash and short-term investments (marketable securities) a company holds per outstanding share. - [Cash to Assets Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-to-assets-ratio): `get_cash_to_assets_ratio`. Companies hold cash as a buffer against shortfalls in their cash flow when raising money is costly. With the formula, how to read it and an example in Python. - [Cash-Based Operating Profitability](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cash-based-operating-profitability): `get_cash_based_operating_profitability`. The cash-based operating profitability of Ball, Gerakos, Linnainmaa and Nikolaev (2016): the operating profit received in cash, against the total assets. - [Composite Debt Issuance](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/composite-debt-issuance): `get_composite_debt_issuance`. The composite debt issuance of Lyandres, Sun and Zhang (2008): the log growth of a company's total debt over five years, which captures every way it raises... - [Composite Equity Issuance](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/composite-equity-issuance): `get_composite_equity_issuance`. The composite equity issuance of Daniel and Titman (2006): the growth in market capitalization over five years that the stock return does not explain. - [Continuing Operations Profit Margin](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/continuing-operations-profit-margin): `get_continuing_operations_profit_margin`. The net profit margin includes the result of discontinued operations, such as a business that was sold or is held for sale, including the gain or loss on... - [Current Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/current-ratio): `get_current_ratio`. The current ratio, a liquidity ratio that measures a company's ability to pay off its short-term liabilities with its current assets. - [Cyclically Adjusted P/E Ratio (CAPE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/cyclically-adjusted-p-e-ratio-cape): `get_cyclically_adjusted_price_to_earnings_ratio`. The cyclically adjusted price earnings ratio (CAPE), the share price divided by the average inflation-adjusted earnings per share of the last ten years. - [Days of Accounts Payable Outstanding](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/days-of-accounts-payable-outstanding): `get_days_of_accounts_payable_outstanding`. The days payables outstanding, an efficiency ratio that measures the number of days it takes a company to pay its suppliers. - [Days of Inventory Outstanding](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/days-of-inventory-outstanding): `get_days_of_inventory_outstanding`. The days sales in inventory ratio, an efficiency ratio that measures how long it takes a company to sell its inventory. - [Days of Sales Outstanding](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/days-of-sales-outstanding): `get_days_of_sales_outstanding`. The days of sales outstanding ratio, an efficiency ratio that measures the average number of days it takes a company to collect payment on its credit sales. - [Debt Service Coverage Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/debt-service-coverage-ratio): `get_debt_service_coverage_ratio`. The debt service coverage ratio, a solvency ratio that measures how well a company's operating earnings cover its debt service. - [Debt to Assets Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/debt-to-assets-ratio): `get_debt_to_assets_ratio`. The debt to assets ratio, a solvency ratio that measures the proportion of a company's assets that are financed by debt. - [Debt to Capital Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/debt-to-capital-ratio): `get_debt_to_capital_ratio`. The debt to capital ratio, a solvency ratio that measures the proportion of a company's total capital (debt plus equity) that is financed by debt. - [Debt to Enterprise Value Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/debt-to-enterprise-value-ratio): `get_debt_to_enterprise_value_ratio`. It is the leverage at market values: the debt weight that the cost of capital uses (Damodaran, 2012), where the debt to assets ratio uses book values. - [Debt to Equity Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/debt-to-equity-ratio): `get_debt_to_equity_ratio`. The debt to equity ratio, a solvency ratio that measures the proportion of a company's equity that is financed by debt. - [Debt to Market Cap Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/debt-to-market-cap-ratio): `get_debt_to_market_cap_ratio`. The debt to equity ratio compares the debt with the book value of the equity, which buybacks and write-offs can make small or negative. - [Defensive Interval Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/defensive-interval-ratio): `get_defensive_interval_ratio`. The defensive interval ratio (DIR): how many days a company could cover its operating expenses with its most liquid assets alone, without new revenue. - [Deferred Revenue Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/deferred-revenue-ratio): `get_deferred_revenue_ratio`. The deferred revenue ratio, an efficiency ratio that measures the size of a company's deferred revenue (payments collected for goods or services not yet... - [Degree of Financial Leverage (DFL)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/degree-of-financial-leverage-dfl): `get_degree_of_financial_leverage`. The degree of financial leverage (DFL), the percentage change in net income for each percentage change in operating income. - [Degree of Operating Leverage (DOL)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/degree-of-operating-leverage-dol): `get_degree_of_operating_leverage`. The degree of operating leverage (DOL), the percentage change in operating income for each percentage change in revenue. - [Degree of Total Leverage (DTL)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/degree-of-total-leverage-dtl): `get_degree_of_total_leverage`. The degree of total leverage (DTL), the percentage change in net income for each percentage change in revenue: the operating and financial leverage combined. - [Dirty Surplus](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/dirty-surplus): `get_dirty_surplus`. The dirty surplus: the change in a company's book equity that the net income and the transactions with its shareholders do not explain, relative to the... - [Discretionary Cash Flow to Debt](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/discretionary-cash-flow-to-debt): `get_discretionary_cash_flow_to_debt_ratio`. The discretionary cash flow (DCF) to debt ratio, a supplementary ratio of S&P Global Ratings. - [Dividend Events](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/dividend-events): `get_dividend_events`. The Dividend Initiation marks the first dividend after a long period without one: a company that starts, or restarts, paying. - [Dividend Growth](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/dividend-growth): `get_dividend_growth`. The Dividend Growth Rate is the average yearly growth of the dividend per share over the last n years, compounded annually. - [Dividend Omission](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/dividend-omission): `get_dividend_events`. The Dividend Omission marks a month in which a dividend was due but not paid. With the formula, how to read it and an example in Python. - [Dividend Payout Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/dividend-payout-ratio): `get_dividend_payout_ratio`. The Dividend Payout Ratio is the dividends paid as a share of the net income. The formula for the Dividend Payout Ratio is as follows. - [Dividend Streak](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/dividend-streak): `get_dividend_growth`. The Dividend Streak is the number of consecutive years up to the period in which the dividend per share was higher than the year before. - [Dividend Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/dividend-yield): `get_dividend_yield`. The dividend yield ratio, a valuation ratio that measures the amount of dividends distributed per share of stock relative to the stock's price. - [Dividend-Adjusted PEG Ratio (PEGY)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/dividend-adjusted-peg-ratio-pegy): `get_dividend_adjusted_price_to_earnings_growth_ratio`. The dividend-adjusted price earnings to growth (PEGY) ratio, the PEG ratio with the dividend yield added to the earnings growth, as Peter Lynch proposed in... - [EBITDA Interest Coverage](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ebitda-interest-coverage): `get_ebitda_interest_coverage_ratio`. The EBITDA interest coverage ratio, the number of times the earnings before interest, taxes, depreciation and amortization cover the interest expense. - [EBITDA Margin](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ebitda-margin): `get_ebitda_margin`. The EBITDA margin, a profitability ratio that measures the percentage of revenue that remains as earnings before interest, taxes, depreciation and... - [EBITDA Minus Capex Interest Coverage](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ebitda-minus-capex-interest-coverage): `get_ebitda_minus_capex_interest_coverage_ratio`. The EBITDA minus capital expenditure interest coverage ratio, the number of times the EBITDA that is left after capital expenditure covers the interest... - [EV to EBIT](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ev-to-ebit): `get_ev_to_ebit`. The enterprise value to EBIT ratio: the value of a company's operations, debt and equity, against its earnings before interest and taxes. - [EV to EBITDA Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ev-to-ebitda-ratio): `get_ev_to_ebitda_ratio`. The enterprise value over EBITDA ratio, a valuation ratio that measures a company's total value (including debt and equity) relative to its EBITDA. - [EV to Free Cash Flow Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ev-to-free-cash-flow-ratio): `get_ev_to_free_cash_flow_ratio`. The EV to free cash flow ratio, a valuation ratio that compares a company's enterprise value (EV) to its free cash flow. - [EV to Invested Capital](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ev-to-invested-capital): `get_ev_to_invested_capital_ratio`. The enterprise value to invested capital ratio, the market value of a company's operations against the capital invested in them. - [EV to Operating Cashflow Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ev-to-operating-cashflow-ratio): `get_ev_to_operating_cashflow_ratio`. The enterprise value over operating cash flow ratio, a valuation ratio that measures a company's total value (including debt and equity) relative to its... - [EV to Sales Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/ev-to-sales-ratio): `get_ev_to_sales_ratio`. The EV to sales ratio, a valuation ratio that compares a company's enterprise value (EV) to its total revenue. With the formula and an example in Python. - [Earnings Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/earnings-yield): `get_earnings_yield`. The earnings yield ratio, a valuation ratio that measures the earnings per share relative to the market price per share. - [Earnings per Share (EPS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/earnings-per-share-eps): `get_earnings_per_share`. The earnings per share (EPS), a valuation ratio that measures the amount of net income earned per share of outstanding common stock. - [Effective Tax Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/effective-tax-rate): `get_effective_tax_rate`. The effective tax rate, a financial ratio that measures the percentage of pretax income that is paid as taxes. With the formula and an example in Python. - [Enterprise Book to Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/enterprise-book-to-price): `get_enterprise_book_to_price`. The Enterprise Book-to-Price (EBP) is the book value of the net operating assets over their market value. - [Enterprise Value](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/enterprise-value): `get_enterprise_value`. The enterprise value (EV): what it would cost to buy the whole company, its equity and its debt, net of the cash it holds. - [Equity Multiplier](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/equity-multiplier): `get_equity_multiplier`. The equity multiplier, a solvency ratio that measures the degree to which a company uses borrowed money (debt) to finance its operations and growth. - [Expected Dividend Month](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/expected-dividend-month): `get_dividend_events`. The Expected Dividend Month marks the months in which a dividend is due, judging by the company's own schedule. With the formula and an example in Python. - [Expected Dividend Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/expected-dividend-yield): `get_dividend_events`. The Expected Dividend Yield is the yield of the dividend due in a month. - [Factor Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/factor-analysis): `get_factor_analysis`. Factor analysis (predictive power) of the ratios: whether the tickers that score high on a ratio go on to return more than those that score low. - [Factor Portfolios](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/factor-portfolios): `get_factor_portfolios`. The returns of portfolios sorted on a ratio: how the tickers with the lowest values of the ratio performed against those with the highest, period by... - [Financial Leverage](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/financial-leverage): `get_financial_leverage`. The financial leverage (FLEV) of Nissim and Penman (2001), the net financial obligations per unit of common equity. With the formula and an example in Python. - [Firm Age](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/firm-age): `get_firm_age`. The Firm Age is the number of years between the IPO date and the end of the period. With the formula, how to read it and an example in Python. - [Fixed Asset Age](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/fixed-asset-age): `get_fixed_asset_age`. The Depreciation Rate is the depreciation of a year as a share of the net property, plant and equipment. With the formula and an example in Python. - [Fixed Asset Turnover](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/fixed-asset-turnover): `get_fixed_asset_turnover`. The Fixed Asset Turnover ratio, an efficiency ratio that measures how efficiently a company uses its fixed assets to generate sales. - [Forward Price to Earnings Growth Ratio (Forward PEG)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/forward-price-to-earnings-growth-ratio-forward-peg): `get_forward_price_earnings_growth_ratio`. The forward price earnings to growth (forward PEG) ratio: the forward P/E against the EPS growth the analyst consensus expects from the last reported EPS. - [Forward Price to Earnings Ratio (Forward PE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/forward-price-to-earnings-ratio-forward-pe): `get_forward_price_earnings_ratio`. The forward price earnings ratio (forward P/E): the share price against the analyst consensus EPS estimate for a future period instead of the trailing EPS. - [Free Cash Flow Conversion](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/free-cash-flow-conversion): `get_free_cash_flow_conversion`. A conversion around or above 1 means the reported earnings are backed by cash, as depreciation and other non-cash charges outweigh the capital expenditure... - [Free Cash Flow Margin](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/free-cash-flow-margin): `get_free_cash_flow_margin`. The free cash flow margin, a profitability ratio that measures the percentage of revenue that is converted into free cash flow. - [Free Cash Flow Operating Cash Flow Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/free-cash-flow-operating-cash-flow-ratio): `get_free_cash_flow_operating_cash_flow_ratio`. The free cash flow to operating cash flow ratio, a profitability ratio that measures the amount of free cash flow a company generates for every dollar of... - [Free Cash Flow Payout Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/free-cash-flow-payout-ratio): `get_free_cash_flow_payout_ratio`. The dividend payout ratio (get_dividend_payout_ratio) compares the dividends with the net income, but dividends are paid from cash. - [Free Cash Flow Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/free-cash-flow-yield): `get_free_cash_flow_yield`. The free cash flow yield: the free cash flow a company generates against its market capitalization, the cash return on its share price. - [Free Cash Flow per Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/free-cash-flow-per-share): `get_free_cash_flow_per_share`. The free cash flow per share, the cash a company generates after its capital expenditure per outstanding share. With the formula and an example in Python. - [Free Cash Flow to EBITDA](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/free-cash-flow-to-ebitda): `get_free_cash_flow_to_ebitda_ratio`. The free cash flow to EBITDA ratio, the share of EBITDA that remains as free cash flow after interest, taxes, working capital and capital expenditure. - [Free Operating Cash Flow to Debt Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/free-operating-cash-flow-to-debt-ratio): `get_free_operating_cash_flow_to_debt_ratio`. The free operating cash flow (FOCF) to debt ratio of S&P Global Ratings: the cash flow left after capital expenditure as a share of the debt. - [Fundamental Signals](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/fundamental-signals): `get_fundamental_signals`. The fundamental signals of Lev and Thiagarajan (1993) as Abarbanell and Bushee (1997) define them. - [Funds from Operations to Debt](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/funds-from-operations-to-debt): `get_funds_from_operations_to_debt_ratio`. The funds from operations (FFO) to debt ratio, one of the two core ratios with which S&P Global Ratings assesses a company's financial risk. - [General and Administrative Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/general-and-administrative-ratio): `get_general_and_administrative_ratio`. The general and administrative (G&A) expenses to revenue ratio, an efficiency ratio that measures the proportion of revenue spent on general and... - [Gross Debt to EBITDA Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/gross-debt-to-ebitda-ratio): `get_gross_debt_to_ebitda_ratio`. The gross debt to EBITDA ratio: how many years of EBITDA (earnings before interest, taxes, depreciation and amortization) it would take to repay the total... - [Gross Margin](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/gross-margin): `get_gross_margin`. The gross margin, a profitability ratio that measures the percentage of revenue that exceeds the cost of goods sold. - [Gross Profitability](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/gross-profitability): `get_gross_profitability`. Novy-Marx shows that gross profit is the cleanest accounting measure of economic profitability. - [Income Before Tax Profit Margin](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/income-before-tax-profit-margin): `get_income_before_tax_profit_margin`. The Pretax Profit Margin is calculated by dividing the pre-tax profit by the revenue. With the formula, how to read it and an example in Python. - [Income Quality Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/income-quality-ratio): `get_income_quality_ratio`. The income quality ratio: the cash flow from operations against the net income, how much of the reported profit comes in as cash. - [Intangibles to Total Assets Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/intangibles-to-total-assets-ratio): `get_intangibles_to_total_assets_ratio`. The intangibles to total assets ratio, the share of the assets that is goodwill or another intangible asset such as patents, brands and customer... - [Interest Burden Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/interest-burden-ratio): `get_interest_burden_ratio`. The interest burden ratio: the share of operating profit that is left after interest, the component of the five-step DuPont decomposition that isolates the... - [Interest Coverage Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/interest-coverage-ratio): `get_interest_coverage_ratio`. The interest coverage ratio, a solvency ratio that measures a company's ability to pay its interest expenses on outstanding debt. - [Interest Debt per Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/interest-debt-per-share): `get_interest_debt_per_share`. The interest debt per share, a valuation ratio that measures a company's total debt plus one year of interest expense per outstanding share. - [Interest Paid to Interest Expense Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/interest-paid-to-interest-expense-ratio): `get_interest_paid_to_expense_ratio`. The interest paid to interest expense ratio, which measures how much of the accrual-based interest expense reported on the income statement was actually... - [Inventory Investment](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/inventory-investment): `get_investment_to_assets`. The Inventory Investment of Thomas and Zhang (2002) is the change in the inventory over a year, relative to the average total assets. - [Inventory Turnover Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/inventory-turnover-ratio): `get_inventory_turnover_ratio`. The inventory turnover ratio is calculated by dividing the cost of goods sold (COGS) by the average inventory value. - [Investment to Assets](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/investment-to-assets): `get_investment_to_assets`. The Investment to Assets of Lyandres, Sun and Zhang (2008) is the change in the property, plant and equipment and in the inventory over a year, relative to... - [Leverage Component of Book-to-Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/leverage-component-of-book-to-price): `get_enterprise_book_to_price`. The Leverage Component of Book-to-Price is what remains of the book-to-price of the shares once the Enterprise Book-to-Price is taken out. - [Long-Term Debt to Capitalization Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/long-term-debt-to-capitalization-ratio): `get_long_term_debt_to_capitalization_ratio`. The long-term debt to capitalization ratio, the share of a company's permanent capital (long-term debt plus equity) that is financed with long-term debt. - [Market Cap to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/market-cap-to-gdp): `get_market_cap_to_gdp`. The market capitalization to Gross Domestic Product (GDP) ratio of the tickers as one basket. - [Market Capitalization](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/market-capitalization): `get_market_cap`. The market capitalization: the market value of a company's shares, the share price times the number of shares outstanding. - [Net Borrowing Cost](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-borrowing-cost): `get_net_borrowing_cost`. The net borrowing cost (NBC) of Nissim and Penman (2001), the after-tax interest rate a company pays on its net financial obligations. - [Net Capital Expenditure](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-capital-expenditure): `get_net_capital_expenditure`. Depreciation and amortization approximate the investment needed to keep the asset base as it is, so the capital expenditure above it is the investment in... - [Net Current Asset Value](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-current-asset-value): `get_net_current_asset_value`. Benjamin Graham's net current asset value (NCAV): a company's current assets minus all of its liabilities, not just the current ones. - [Net Debt Financing](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-debt-financing): `get_net_external_financing`. The Net Debt Financing is the net cash raised from the lenders over a year, the debt issued minus the debt repaid, as a share of the average total assets. - [Net Debt to EBITDA Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-debt-to-ebitda-ratio): `get_net_debt_to_ebitda_ratio`. The net debt to EBITDA ratio: how many years of EBITDA (earnings before interest, taxes, depreciation and amortization) it would take to repay the debt net... - [Net Debt to Equity Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-debt-to-equity-ratio): `get_net_debt_to_equity_ratio`. The net debt to equity ratio (net gearing): the debt net of cash against the equity, how much a company relies on borrowed money. - [Net Debt to Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-debt-to-price): `get_enterprise_book_to_price`. The Net Debt to Price is the net debt over the market value of the equity. - [Net Equity Financing](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-equity-financing): `get_net_external_financing`. The Net Equity Financing is the net cash raised from the shareholders over a year, the share issues minus the buybacks and the dividends, as a share of the... - [Net External Financing](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-external-financing): `get_net_external_financing`. The Net External Financing is the net cash raised from shareholders and lenders together over a year, as a share of the average total assets. - [Net Income per Employee](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-income-per-employee): `get_net_income_per_employee`. The net income per employee, the profit a company makes per employee, a measure of the productivity of its workforce. - [Net Long-Term Asset Turnover](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-long-term-asset-turnover): `get_net_long_term_asset_turnover`. The net long-term asset turnover: the revenue a company makes per unit of long-term assets, net of the long-term liabilities that bear no interest. - [Net Operating Assets](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-operating-assets): `get_net_operating_assets`. The net operating assets of Hirshleifer, Hou, Teoh and Zhang (2004): the operating assets minus the operating liabilities, scaled by the total assets at... - [Net Profit Margin](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-profit-margin): `get_net_profit_margin`. The net profit margin, a profitability ratio that measures the percentage of profit a company earns per dollar of revenue. - [Net Share Issuance](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-share-issuance): `get_net_share_issuance`. The net share issuance of Pontiff and Woodgate (2008): the log change in the split-adjusted number of shares over a year. - [Net-Net Working Capital per Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/net-net-working-capital-per-share): `get_net_net_working_capital_per_share`. Benjamin Graham's net-net working capital per share, the current assets discounted to a rough liquidation value minus all liabilities, per share. - [Operating Cash Flow Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-cash-flow-ratio): `get_operating_cash_flow_ratio`. The operating cash flow ratio, a liquidity ratio that measures a company's ability to pay off its current liabilities with its operating cash flow. - [Operating Cash Flow Sales Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-cash-flow-sales-ratio): `get_operating_cash_flow_sales_ratio`. The operating cash flow to sales ratio, a liquidity ratio that measures the ability of a company to generate cash from its sales. - [Operating Cash Flow per Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-cash-flow-per-share): `get_operating_cash_flow_per_share`. Cash flow from operations is less affected by accruals and non-cash charges than net income, so the operating cash flow per share is a check on the... - [Operating Cycle](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-cycle): `get_operating_cycle`. The operating cycle ratio, an efficiency ratio that measures the average number of days it takes a company to turn its inventory into cash. - [Operating Leverage](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-leverage): `get_operating_leverage`. The operating leverage of Novy-Marx (2011): the operating costs, the cost of goods sold plus the selling, general and administrative expenses, relative to... - [Operating Margin](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-margin): `get_operating_margin`. The operating margin, a profitability ratio that measures the percentage of revenue that remains after deducting operating expenses. - [Operating Profitability](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-profitability): `get_operating_profitability`. The Fama-French Operating Profitability is the revenue minus the cost of goods sold, the selling, general and administrative expenses, the research and... - [Operating Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-ratio): `get_operating_ratio`. The operating ratio, a financial metric that measures the efficiency of a company's operations by comparing its operating expenses to its revenue. - [Operating Return on Assets](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/operating-return-on-assets): `get_operating_return_on_assets`. Operating income is before interest and taxes, so unlike the return on assets the operating return on assets does not depend on how the company is financed... - [Percent Accruals](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/percent-accruals): `get_percent_accruals`. The percent accruals of Hafzalla, Lundholm and Van Winkle (2011): the accruals, the part of the net income that is not received in cash, as a share of the... - [Preferred Dividend Coverage Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/preferred-dividend-coverage-ratio): `get_preferred_dividend_coverage_ratio`. The preferred dividend coverage ratio, a solvency ratio that measures a company's ability to pay dividends owed to preferred shareholders out of its net... - [Price to Book Ratio (PB)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/price-to-book-ratio-pb): `get_price_to_book_ratio`. The price to book ratio, a valuation ratio that compares a company's market price to its book value per share. With the formula and an example in Python. - [Price to Cash Flow Ratio (P/CF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/price-to-cash-flow-ratio-p-cf): `get_price_to_cash_flow_ratio`. The price to cash flow ratio, a valuation ratio that compares a company's market price to its operating cash flow per share. - [Price to Earnings Growth Ratio (PEG)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/price-to-earnings-growth-ratio-peg): `get_price_to_earnings_growth_ratio`. The price earnings to growth (PEG) ratio, a valuation metric that measures the ratio of the price-to-earnings ratio to earnings growth rate. - [Price to Earnings Ratio (PE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/price-to-earnings-ratio-pe): `get_price_to_earnings_ratio`. The price earnings ratio (P/E), a valuation ratio that compares a company's stock price to its earnings per share. With the formula and an example in Python. - [Price to Free Cash Flow Ratio (P/FCF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/price-to-free-cash-flow-ratio-p-fcf): `get_price_to_free_cash_flow_ratio`. The price to free cash flow ratio, a valuation ratio that compares a company's market price to its free cash flow per share. - [Price to Sales Ratio (PS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/price-to-sales-ratio-ps): `get_price_to_sales_ratio`. The price to sales ratio (P/S), a valuation ratio that compares a company's market capitalization to its total revenue. - [Price to Tangible Book](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/price-to-tangible-book): `get_price_to_tangible_book_ratio`. The price to tangible book ratio, the market value of the common equity against its book value without goodwill and other intangible assets. - [Quick Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/quick-ratio): `get_quick_ratio`. The quick ratio (also known as the acid-test ratio), a more stringent measure of liquidity that excludes inventory from current assets. - [Receivables Turnover](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/receivables-turnover): `get_receivables_turnover`. The receivables turnover, a ratio that measures how efficiently a company uses its assets by comparing the amount of credit extended to customers to the... - [Recent IPO Indicator](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/recent-ipo-indicator): `get_firm_age`. The Recent IPO Indicator marks the companies that listed between 6 and 36 months before the end of the period. With the formula and an example in Python. - [Remaining Life of Fixed Assets](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/remaining-life-of-fixed-assets): `get_fixed_asset_age`. The Remaining Life of Fixed Assets is the number of years of depreciation left on the property, plant and equipment, the useful life minus the average age. - [Research and Development Capital to Assets](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/research-and-development-capital-to-assets): `get_research_and_development_ratio`. The Research and Development Capital to Assets of Li (2011) treats the spending of the past five years as a stock of research capital that loses a fifth of... - [Research and Development Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/research-and-development-ratio): `get_research_and_development_ratio`. The Research and Development Intensity is the research and development expenses as a share of the revenue. - [Research and Development Surprise](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/research-and-development-surprise): `get_research_and_development_ratio`. The Research and Development Surprise of Eberhart, Maxwell and Siddique (2004) marks an unexpected, economically large increase in research and... - [Research and Development to Market Cap](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/research-and-development-to-market-cap): `get_research_and_development_ratio`. The Research and Development to Market Cap of Chan, Lakonishok and Sougiannis (2001) is the research and development expenses of a year over the market... - [Retention Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/retention-ratio): `get_retention_ratio`. The retention ratio helps investors assess the portion of a company's earnings that is retained for future growth. With the formula and an example in Python. - [Return on Assets (RoA)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/return-on-assets-roa): `get_return_on_assets`. The return on assets (ROA), a profitability ratio that measures how efficiently a company uses its assets to generate profits. - [Return on Capital Employed (RoCE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/return-on-capital-employed-roce): `get_return_on_capital_employed`. The return on capital employed (ROCE), a profitability ratio that measures the amount of return a company generates from the capital it has invested in the... - [Return on Equity (RoE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/return-on-equity-roe): `get_return_on_equity`. The return on equity (ROE), a profitability ratio that measures how efficiently a company generates profits using its shareholders' equity. - [Return on Invested Capital (RoIC)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/return-on-invested-capital-roic): `get_return_on_invested_capital`. The return on invested capital (ROIC), a financial ratio that measures the company's return on the capital invested in it, including both equity and debt. - [Return on Net Operating Assets (RNOA)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/return-on-net-operating-assets-rnoa): `get_return_on_net_operating_assets`. The return on net operating assets (RNOA) of Nissim and Penman (2001), the after-tax return a company earns on its operations, separated from how they are... - [Return on Tangible Assets (RoTA)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/return-on-tangible-assets-rota): `get_return_on_tangible_assets`. The return on tangible assets, a financial ratio that measures the amount of profit generated by a company's tangible assets. - [Revenue Growth Rank](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/revenue-growth-rank): `get_revenue_growth_rank`. The weighted revenue growth rank of Lakonishok, Shleifer and Vishny (1994). - [Revenue per Employee](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/revenue-per-employee): `get_revenue_per_employee`. The revenue per employee, the revenue a company generates per employee, a measure of the productivity of its workforce. - [Revenue per Share (RPS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/revenue-per-share-rps): `get_revenue_per_share`. The revenue per share, a valuation ratio that measures the amount of revenue generated per outstanding share of a company's stock. - [SBC Adjusted Free Cash Flow](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/sbc-adjusted-free-cash-flow): `get_sbc_adjusted_free_cash_flow`. The stock-based compensation (SBC) adjusted free cash flow, which deducts non-cash SBC expenses from free cash flow to give a more conservative view of the... - [SGA to Revenue Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/sga-to-revenue-ratio): `get_sga_to_revenue_ratio`. The sales, general, and administrative (SG&A) expenses to revenue ratio, which measures the SG&A expenses relative to the revenue of the company. - [Selling and Marketing Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/selling-and-marketing-ratio): `get_selling_and_marketing_ratio`. The selling and marketing (S&M) expenses to revenue ratio, an efficiency ratio that measures the proportion of revenue spent on selling and marketing... - [Shareholder Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/shareholder-yield): `get_shareholder_yield`. The total shareholder yield, a valuation ratio that combines the dividend yield and the buyback yield to measure the total cash returned to shareholders... - [Short Term Coverage Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/short-term-coverage-ratio): `get_short_term_coverage_ratio`. The short-term coverage ratio, a liquidity ratio that measures a company's ability to pay off its short-term obligations with its operating cash flow. - [Short-Term Debt Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/short-term-debt-ratio): `get_short_term_debt_ratio`. Debt that falls due within a year has to be repaid or refinanced soon, so a high share is a refinancing risk when credit markets close. - [Solvency Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/solvency-ratio): `get_solvency_ratio`. The solvency ratio, the cash earnings (net income plus the non-cash depreciation and amortization) against all liabilities. - [Stock-Based Compensation Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/stock-based-compensation-ratio): `get_stock_based_compensation_ratio`. The stock-based compensation (SBC) to revenue ratio, an efficiency ratio that measures how much of a company's revenue is being used to compensate... - [Tangible Asset Value](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/tangible-asset-value): `get_tangible_asset_value`. The tangible asset value: the book value of a company's equity without goodwill and other intangible assets, what remains of its tangible assets once all... - [Tangible Book Value per Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/tangible-book-value-per-share): `get_tangible_book_value_per_share`. The tangible book value per share, the common equity without goodwill and other intangible assets per outstanding share. - [Tax Burden Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/tax-burden-ratio): `get_tax_burden_ratio`. The tax burden ratio, which is the ratio of a company's net income to its income before tax, indicating how much of a company's income is retained after... - [Tax Expense Surprise](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/tax-expense-surprise): `get_tax_expense_surprise`. The tax expense surprise of Thomas and Zhang (2011): the change in a company's income tax expense against the same period a year earlier, scaled by its... - [Tax Rate Divergence](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/tax-rate-divergence): `get_tax_rate_divergence`. The tax rate divergence, which measures the difference between the cash tax rate and the accrual-based effective tax rate. - [Tax to Book Income Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/tax-to-book-income-ratio): `get_tax_to_book_income_ratio`. The taxable income to book income ratio of Lev and Nissim (2004): the income a company reports to the tax authority against the net income it reports to... - [Total Payout Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/total-payout-ratio): `get_dividend_payout_ratio`. The Total Payout Ratio adds the share repurchases to the dividends, as Grullon and Michaely (2002) show that repurchases have overtaken dividends as the... - [Useful Life of Fixed Assets](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/useful-life-of-fixed-assets): `get_fixed_asset_age`. The Useful Life of Fixed Assets is the number of years over which the property, plant and equipment is written off: its cost in years of depreciation. - [Weighted Dividend Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/weighted-dividend-yield): `get_weighted_dividend_yield`. The weighted dividend yield ratio, a valuation ratio that measures the amount of dividends distributed per share of stock relative to the stock's price. - [Working Capital](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/working-capital): `get_working_capital`. The working capital is calculated by subtracting total current liabilities from total current assets. With the formula and an example in Python. - [Working Capital Turnover Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/ratios/working-capital-turnover-ratio): `get_working_capital_turnover_ratio`. The working capital turnover ratio, an efficiency ratio that measures how effectively a company uses its working capital to generate revenue. ## [Models](https://www.jeroenbouma.com/projects/financetoolkit/docs/models) - [Accounting Conservatism](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/accounting-conservatism): `get_accounting_conservatism`. The accounting conservatism of Givoly and Hayn (2000): how much of a company's losses and write-downs it recognizes before its gains, measured by its... - [Accrual Components](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/accrual-components): `get_accrual_components`. The accrual components of Richardson, Sloan, Soliman and Tuna (2005): which changes in the balance sheet make up a company's total accruals, each over the... - [Accrual Quality](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/accrual-quality): `get_accrual_quality`. The Dechow-Dichev Accrual Quality of Dechow and Dichev (2002) maps the working capital accruals of a company into its operating cash flows of the year... - [Accruals Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/accruals-ratio): `get_accruals_ratio`. The accruals ratios: the part of earnings that is not backed by cash, relative to the average of the total assets at the start and the end of the year. - [Adjusted Present Value](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/adjusted-present-value): `get_adjusted_present_value`. The Adjusted Present Value (APV) of Myers (1974): what a share is worth as the value of the company without debt plus the value its debt adds through the... - [Altman Emerging Market Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/altman-emerging-market-score): `get_altman_z_score`. The Altman Emerging Market Score (Z''-EM) is the Altman Z''-Score plus a constant of 3.25, which Altman set so that a score of zero or below matches a bond... - [Altman Z''-Score (Non-Manufacturers)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/altman-z-score-non-manufacturers): `get_altman_z_score`. The Altman Z''-Score leaves out the sales to total assets ratio, as asset turnover differs most between industries, so that the score fits... - [Altman Z'-Score (Private Firms)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/altman-z-score-private-firms): `get_altman_z_score`. The Altman Z'-Score is the version for private manufacturers that Altman (1983) estimated with the book value of the equity in place of its market value... - [Altman Z-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/altman-z-score): `get_altman_z_score`. The Altman Z-Score is the original model of Altman (1968), estimated on listed US manufacturers. With the formula, how to read it and an example in Python. - [Analyst Forecast Dispersion](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/analyst-forecast-dispersion): `get_analyst_forecast_dispersion`. The dispersion of the analysts' forecasts of the EPS, revenue or EBITDA. - [Analyst Growth Forecast](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/analyst-growth-forecast): `get_analyst_growth_forecast`. The EPS growth the analysts' consensus implies: for the next fiscal year, per year over the furthest years they cover, and the disparity between the two. - [Average Implied Cost of Capital](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/average-implied-cost-of-capital): `get_implied_cost_of_capital`. The Average Implied Cost of Capital is the mean of the rates of the five models, as Hou, van Dijk and Zhang (2012) report it, so that the errors in the... - [Beneish M-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/beneish-m-score): `get_beneish_m_score`. The Eight-Variable Beneish M-Score is the model of Beneish (1999), which weighs eight indices. - [Benford's Law Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/benford-s-law-score): `get_benford_score`. How closely the first digits of a company's reported numbers follow Benford's law, a test of whether its financial statements look manipulated or in error. - [Black-Cox Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/black-cox-model): `get_merton_distance_to_default`. The Black-Cox Model lets the company default when its assets first reach the default point at any time before the horizon, not only at the horizon, as bond... - [Bottom-Up Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/bottom-up-beta): `get_bottom_up_beta`. Damodaran's bottom-up beta: the unlevered beta of each company's industry, relevered at the company's own debt to equity, a steadier beta than a regression... - [Campbell-Hilscher-Szilagyi Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/campbell-hilscher-szilagyi-score): `get_campbell_hilscher_szilagyi_score`. The probability of failure of Campbell, Hilscher and Szilagyi (2008), a logit model that combines accounting figures with market data to predict failure. - [Capitalized R&D](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/capitalized-r-and-d): `get_capitalized_research_and_development`. Capitalize the research and development expenses as Aswath Damodaran does. - [Cash Flow Return on Investment (CFROI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/cash-flow-return-on-investment-cfroi): `get_cash_flow_return_on_investment`. The Cash Flow Return on Investment (CFROI) of Bartley Madden (the HOLT model): the internal rate of return of a company's assets seen as one project. - [Claus-Thomas Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/claus-thomas-model): `get_implied_cost_of_capital`. The Claus-Thomas Model of Claus and Thomas (2001) is a residual income model over five years of forecasts, after which the abnormal earnings grow at the... - [CreditGrades Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/creditgrades-model): `get_merton_distance_to_default`. The CreditGrades Model of RiskMetrics (Finger et al., 2002) is a first passage model whose default barrier, the debt recovered in default, is uncertain. - [Dechow F-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/dechow-f-score): `get_dechow_f_score`. The Dechow F-Score, the probability that a company's financial statements are misstated relative to the average company. - [Discretionary Accruals](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/discretionary-accruals): `get_discretionary_accruals`. They are the part of a company's accruals that its change in revenues and its fixed assets do not explain and that is therefore attributed to management's... - [DuPont Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/dupont-analysis): `get_dupont_analysis`. The DuPont Analysis splits the return on equity into three factors: the Net Profit Margin (profitability), the Asset Turnover (efficiency) and the Equity... - [Earnings Attributes](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/earnings-attributes): `get_earnings_attributes`. The Francis Earnings Attributes are the persistence, predictability and smoothness of a company's earnings over the past years, three of the... - [Earnings Consistency](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/earnings-consistency): `get_earnings_consistency`. How steadily a company's earnings per share grow: the number of periods in a row they rose against a year earlier, and how consistent their changes were. - [Earnings Power Value](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/earnings-power-value): `get_earnings_power_value`. Bruce Greenwald uses it to separate what is known (today's earnings power) from what is speculative (growth). - [Economic Value Added (EVA)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/economic-value-added-eva): `get_economic_value_added`. The Economic Value Added (EVA) is the operating profit after tax less a charge for the capital invested to earn it, at the weighted average cost of capital. - [Economic Value Added Momentum](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/economic-value-added-momentum): `get_economic_value_added`. The Economic Value Added Momentum (EVA Momentum) of Stewart (2009) is the change in the Economic Value Added over a year as a share of the revenue of the... - [Enterprise Value Breakdown](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/enterprise-value-breakdown): `get_enterprise_value_breakdown`. The Enterprise Value breakdown includes the following components for each quarter or year. - [Equity Duration](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/equity-duration): `get_equity_duration`. The implied equity duration of Dechow, Sloan and Soliman (2004): the weighted average time, in years, at which the shareholders receive the cash flows that... - [Extended DuPont Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/extended-dupont-analysis): `get_dupont_analysis`. The Extended DuPont Analysis splits the Net Profit Margin of the three-factor analysis further into the Tax Burden, the Interest Burden and the Operating... - [Factor Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/factor-analysis): `get_factor_analysis`. Factor analysis (predictive power) of the models. With the formula, how to read it and an example in Python. - [Fama-French Cost of Equity](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/fama-french-cost-of-equity): `get_fama_french_cost_of_equity`. The cost of equity of the Fama and French three-factor model: the return each company's exposure to the market, size and value factors requires. - [Five-Variable Beneish M-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/five-variable-beneish-m-score): `get_beneish_m_score`. The Five-Variable Beneish M-Score is the model of Beneish (1997), which weighs only the five indices of the receivables, the gross margin, the asset... - [Frankel-Lee Value](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/frankel-lee-value): `get_frankel_lee_value`. The intrinsic value of Frankel and Lee (1998) and its ratio to the share price (V/P). - [Free Cash Flow to Equity (FCFE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/free-cash-flow-to-equity-fcfe): `get_free_cash_flow_to_equity`. Free Cash Flow to Equity (FCFE) is the cash flow available to a company's common equity holders. With the formula, how to read it and an example in Python. - [Free Cash Flow to Firm (FCFF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/free-cash-flow-to-firm-fcff): `get_free_cash_flow_to_firm`. Free Cash Flow to the Firm (FCFF) is the cash flow available to all providers of capital, both debt and equity holders. - [Fulmer H-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/fulmer-h-score): `get_fulmer_h_score`. Unlike the Altman Z-Score, which was built on relatively large, listed manufacturing companies, the Fulmer H-Score was calibrated on a matched-pair sample... - [Fundamental Growth Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/fundamental-growth-rate): `get_fundamental_growth_rate`. It is the growth that a company's reinvestment produces at its return on capital, with the reinvestment rate and the sales-to-capital ratio it is built from. - [Gebhardt-Lee-Swaminathan Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/gebhardt-lee-swaminathan-model): `get_implied_cost_of_capital`. The Gebhardt-Lee-Swaminathan Model of Gebhardt, Lee and Swaminathan (2001) is a residual income model. - [Gordon Growth Implied Cost of Capital](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/gordon-growth-implied-cost-of-capital): `get_implied_cost_of_capital`. The Gordon Growth Model, as Hou, van Dijk and Zhang (2012) apply it, takes the expected earnings yield of the next year as the cost of equity. - [Gordon Growth Model (GGM)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/gordon-growth-model-ggm): `get_gordon_growth_model`. The Gordon Growth Model shows the intrinsic value of a stock from its expected future dividends. With the formula, how to read it and an example in Python. - [Graham Criteria](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/graham-criteria): `get_graham_criteria`. The seven criteria Benjamin Graham sets for the stocks of the defensive investor in The Intelligent Investor (chapter 14), with the number met. - [Graham Intrinsic Value](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/graham-intrinsic-value): `get_graham_intrinsic_value`. It is the value of a growth stock from its earnings, their expected growth and the yield of high grade corporate bonds. - [Graham Number](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/graham-number): `get_graham_number`. The Graham Number, a conservative estimate of a stock's fair value based on its earnings and book value, as devised by Benjamin Graham. - [Grover Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/grover-score): `get_grover_score`. It was developed by re-estimating the coefficients of a reduced-form Altman Z-Score and adding a Return on Assets term, using a sample that paired each of... - [H-Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/h-model): `get_h_model`. The H-Model of Fuller and Hsia (1984) shows the value of a stock whose dividend growth declines linearly to a stable rate. - [Harris-Pringle Unlevered Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/harris-pringle-unlevered-beta): `get_unlevered_beta`. The Harris-Pringle Unlevered Beta assumes that the company keeps its debt at a fixed share of its value, as most valuations do, so that the debt and its... - [Implied Cost of Capital](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/implied-cost-of-capital): `get_implied_cost_of_capital`. The Easton Model of Easton (2004) derives the cost of equity from the growth in the expected earnings from the first to the second forecast year relative... - [Internal Growth Rate (IGR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/internal-growth-rate-igr): `get_internal_growth_rate`. The Internal Growth Rate (IGR) is the maximum rate at which a company can grow its revenue using only its retained earnings. - [Intrinsic Valuation](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/intrinsic-valuation): `get_intrinsic_valuation`. Intrinsic value shows what a share is worth by its discounted future cash flows, independent of its market price. With the formula and an example in Python. - [Iterative Distance to Default](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/iterative-distance-to-default): `get_merton_distance_to_default`. The Iterative Distance to Default is the procedure of Moody's KMV (Crosbie and Bohn, 2003) as Vassalou and Xing (2004) apply it. - [Justified Multiples](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/justified-multiples): `get_justified_multiples`. The justified multiples are the Price-to-Earnings, Price-to-Book and Price-to-Sales ratios that a company's fundamentals justify. - [Kaplan-Zingales Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/kaplan-zingales-index): `get_kaplan_zingales_index`. The Kaplan-Zingales (KZ) index of financial constraints: how hard it is for a firm to fund its investments with external finance. - [Leuz Earnings Management Measures](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/leuz-earnings-management-measures): `get_earnings_attributes`. The Leuz Earnings Management Measures show how much management smooths the reported earnings with accruals instead of letting them follow the cash flows. - [Lintner Dividend Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/lintner-dividend-model): `get_lintner_dividend_model`. Lintner's dividend model shows the payout ratio a company aims for and how fast it moves its dividend towards that target when its earnings change. - [Magic Formula](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/magic-formula): `get_magic_formula`. Companies are ranked on two measures and the ranks are added; the lowest total combines a good business with a low price. - [Market Value Added (MVA)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/market-value-added-mva): `get_market_value_added`. Market Value Added (MVA) shows the difference between a company's market value and the capital invested in it. With the formula and an example in Python. - [McNichols Accrual Quality](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/mcnichols-accrual-quality): `get_accrual_quality`. The McNichols Accrual Quality adds the change in revenue and the property, plant and equipment to the regression of Dechow and Dichev. - [Merton Distance to Default](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/merton-distance-to-default): `get_merton_distance_to_default`. The Merton Distance to Default solves the two equations of the model on the last day of the period for the asset value and the asset volatility, and gives... - [Miles-Ezzell Unlevered Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/miles-ezzell-unlevered-beta): `get_unlevered_beta`. The Miles-Ezzell Unlevered Beta assumes that the company rebalances its debt to a target share of its value once a year. - [Mohanram G-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/mohanram-g-score): `get_mohanram_g_score`. It is a score from 0 to 8 for companies with a low book-to-market ratio, where value measures such as the Piotroski F-Score say little. - [Monte Carlo Intrinsic Valuation](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/monte-carlo-intrinsic-valuation): `get_monte_carlo_intrinsic_valuation`. The distribution of the intrinsic value per share when the inputs of the Discounted Cash Flow model are uncertain. - [Montier C-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/montier-c-score): `get_montier_c_score`. Montier found that companies scoring 5 or 6 underperformed the market markedly. Also known as: C-Score, cooking the books score. - [Naive Distance to Default](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/naive-distance-to-default): `get_merton_distance_to_default`. The Naive Distance to Default of Bharath and Shumway (2008) solves no equations. - [Nissim-Penman Decomposition](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/nissim-penman-decomposition): `get_nissim_penman_decomposition`. The Nissim and Penman (2001) decomposition of the return on common equity (ROCE) into the return on the operations and the effect of how they are financed. - [Normalized Earnings](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/normalized-earnings): `get_normalized_earnings`. Normalized earnings show what a company earns in a typical year of its business cycle, rather than in the boom or bust of the latest year, the earnings to... - [Ohlson O-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/ohlson-o-score): `get_ohlson_o_score`. Unlike the Altman Z-Score, which is built with multiple discriminant analysis, the O-Score's coefficients come from a fitted logistic regression (logit)... - [Ohlson-Juettner-Nauroth Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/ohlson-juettner-nauroth-model): `get_implied_cost_of_capital`. The Ohlson-Juettner-Nauroth Model of Ohlson and Juettner-Nauroth (2005) values a share by its expected earnings and their abnormal growth, without book... - [Optimal Capital Structure](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/optimal-capital-structure): `get_optimal_capital_structure`. The optimal capital structure: the cost of capital each company would have at debt ratios from 0% to 90%, and the debt ratio at which it is lowest. - [Organization Capital](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/organization-capital): `get_organization_capital`. The organization capital of Eisfeldt and Papanikolaou (2013): the stock of know-how, processes and talent a company builds with its selling, general and... - [Owner Earnings](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/owner-earnings): `get_owner_earnings`. Warren Buffett's owner earnings: the cash a business could pay its owners while keeping its competitive position and unit volume. - [Peer Comparison](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/peer-comparison): `get_peer_comparison`. Compare every company with its peers on valuation, profitability, growth and leverage. With what it means and an example in Python. - [Piotroski Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/piotroski-score): `get_piotroski_score`. The Piotroski Score, a comprehensive financial assessment tool that helps investors and analysts evaluate a company's financial health and fundamental... - [Present Value of Growth Opportunities (PVGO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/present-value-of-growth-opportunities-pvgo): `get_present_value_of_growth_opportunities`. The Present Value of Growth Opportunities (PVGO) is a financial metric that represents the present value of a company's future growth opportunities. - [Quality Score (QMJ)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/quality-score-qmj): `get_quality_score`. The Quality Score follows the Quality Minus Junk (QMJ) score of Asness, Frazzini and Pedersen (2019). With the formula and an example in Python. - [Relative Valuation](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/relative-valuation): `get_relative_valuation`. Relative valuation by regression shows the multiple each company would trade at given its growth, payout and risk, and how far its actual multiple lies... - [Residual Income](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/residual-income): `get_residual_income`. Residual Income is a measure of the profit a company generates in excess of the return required by its equity holders. - [Return Decomposition](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/return-decomposition): `get_return_decomposition`. The Return Decomposition splits the share price return over a window into the growth of the Earnings per Share and the change of the Price-to-Earnings ratio. - [Return on Incremental Invested Capital (ROIIC)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/return-on-incremental-invested-capital-roiic): `get_return_on_incremental_invested_capital`. The Return on Incremental Invested Capital (ROIIC): the growth in after-tax operating profit over the capital invested to produce it. - [Reverse Discounted Cash Flow](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/reverse-discounted-cash-flow): `get_reverse_discounted_cash_flow`. The growth rate the share price implies, a reverse Discounted Cash Flow (DCF), or the number of years of value-creating growth it implies (the competitive... - [Rule of 40](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/rule-of-40): `get_rule_of_40`. The Rule of 40 score: the revenue growth plus the profit margin, the measure of software and other subscription companies that trade growth against... - [Shumway Hazard Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/shumway-hazard-model): `get_shumway_score`. The bankruptcy probability of Shumway's (2001) hazard model, which combines two accounting ratios of Zmijewski's model with three market variables. - [Size-Age Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/size-age-index): `get_size_age_index`. They coded the financial constraints of a random sample of firms from the text of their 10-K filings (1995-2004) and found that, of the usual measures... - [Springate Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/springate-score): `get_springate_score`. It follows the same multiple discriminant analysis methodology as the Altman Z-Score, but was calibrated on a smaller, Canadian-firm sample using four... - [Sustainable Growth Rate (SGR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/sustainable-growth-rate-sgr): `get_sustainable_growth_rate`. The Sustainable Growth Rate (SGR) is the maximum rate at which a company can grow its revenue without new equity or more leverage. - [Synthetic Credit Rating](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/synthetic-credit-rating): `get_synthetic_credit_rating`. A synthetic credit rating and the cost of debt that comes with it, from the interest coverage ratio (EBIT divided by interest expense), following Aswath... - [Taffler Z-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/taffler-z-score): `get_taffler_z_score`. The Taffler z-score, a discriminant model of financial distress estimated on UK listed industrial companies (Taffler, 1983). - [Tobin's Q Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/tobin-s-q-ratio): `get_tobins_q_ratio`. Tobin's Q Ratio, a valuation metric developed by economist James Tobin that compares the market value of a company to the cost of replacing its assets. - [Total Payout Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/total-payout-model): `get_gordon_growth_model`. The Total Payout Model values the dividends plus the net buybacks per share, Damodaran's augmented dividends, as many companies return much of their cash... - [Two-Stage Dividend Discount Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/two-stage-dividend-discount-model): `get_two_stage_dividend_discount_model`. The Two-Stage Dividend Discount Model extends the (single-stage) Gordon Growth Model to companies that are not expected to grow at a constant rate forever. - [Unlevered Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/unlevered-beta): `get_unlevered_beta`. The Hamada Unlevered Beta assumes a fixed amount of debt, whose tax shields are as risky as the debt itself. With the formula and an example in Python. - [Value Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/value-score): `get_value_score`. The Value Score ranks how cheap each company is against the others on six valuation yields at once, the value counterpart of the Quality Score. - [Walter Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/walter-model): `get_gordon_growth_model`. The Walter Model values the dividend and the retained earnings apart, with the retained earnings earning the company's return on equity forever (Walter... - [Weighted Average Cost of Capital (WACC)](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/weighted-average-cost-of-capital-wacc): `get_weighted_average_cost_of_capital`. The Weighted Average Cost of Capital (WACC) is a financial metric used to estimate the cost of capital for a company. - [Whited-Wu Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/whited-wu-index): `get_whited_wu_index`. The Whited-Wu (WW) index of financial constraints: how hard it is for a firm to fund its investments with external finance. - [Zmijewski Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/models/zmijewski-score): `get_zmijewski_score`. It is a simpler, three-variable model compared to both the Altman Z-Score and the Ohlson O-Score, and is commonly used as a robustness check when those two... ## [Options](https://www.jeroenbouma.com/projects/financetoolkit/docs/options) - [American Options](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/american-options): `get_american_option`. The QD+ Approximation (Li, 2010) values the American put as its European value plus the early exercise premium, which Kim (1990) wrote as an integral over... - [Asian Option](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/asian-option): `get_asian_option`. The Geometric Average Option (Kemna and Vorst, 1990) pays on the geometric average G of the stock price. With the formula and an example in Python. - [Barone-Adesi-Whaley Approximation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/barone-adesi-whaley-approximation): `get_american_option`. The Barone-Adesi-Whaley Approximation (Barone-Adesi and Whaley, 1987) writes the early exercise premium as a power of the stock price, which solves the... - [Barrier Option](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/barrier-option): `get_barrier_option`. The closed-form price of a barrier option: what a European option on each ticker is worth that knocks in or out when the stock price touches a barrier... - [Binary Option](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/binary-option): `get_binary_option`. The price of a Binary (Digital) Option: what a payoff of all or nothing at expiration is worth, a fixed cash amount or the stock itself when the option... - [Binomial Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/binomial-model): `get_binomial_model`. The Cox-Ross-Rubinstein Tree (Cox, Ross and Rubinstein, 1979) is the original binomial option pricing model. With the formula and an example in Python. - [Bjerksund-Stensland 1993 Approximation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/bjerksund-stensland-1993-approximation): `get_american_option`. The Bjerksund-Stensland 1993 Approximation (Bjerksund and Stensland, 1993) is the original version. - [Bjerksund-Stensland 2002 Approximation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/bjerksund-stensland-2002-approximation): `get_american_option`. The Bjerksund-Stensland 2002 Approximation (Bjerksund and Stensland, 2002) values the American call as the strategy that exercises once the stock price... - [Black Scholes Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/black-scholes-model): `get_black_scholes_model`. The Black Scholes Model: what European calls and puts on each ticker are worth today, for a range of strike prices and times to expiration, when the stock... - [Black-76 Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/black-76-model): `get_black_76_model`. The Black (1976) model: what European calls and puts on futures and forwards are worth, the Black-Scholes model with each ticker's price taken as the... - [Charm](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/charm): `get_charm`. The charm of an option based on the Black Scholes Model: how much the delta changes as time passes, the delta decay. - [Chooser Options](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/chooser-options): `get_chooser_option`. The closed-form price of a simple chooser option: what the right to decide at the choice time whether the option on each ticker becomes a European call or... - [Color](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/color): `get_color`. Color: The Black Scholes Model is a mathematical model used to estimate the price of European-style options. With the formula and an example in Python. - [Constant Elasticity of Variance (CEV) Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/constant-elasticity-of-variance-cev-model): `get_cev_model`. European option prices in the constant elasticity of variance (CEV) model of Cox (1975). - [Curran Approximation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/curran-approximation): `get_asian_option`. The Curran Approximation (Curran, 1994) conditions on the geometric average G. With the formula, how to read it and an example in Python. - [Delta](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/delta): `get_delta`. The delta of an option based on the Black Scholes Model: how much the option value changes for a 1.00 change in the price of the underlying asset. - [Delta Hedging Backtest](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/delta-hedging-backtest): `get_delta_hedging_backtest`. The realized profit and loss of selling a European option on each ticker and delta hedging it on the ticker's own prices until it expires days trading days... - [Delta Hedging Simulation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/delta-hedging-simulation): `get_delta_hedging_simulation`. The distribution of the hedging error of selling a European option and delta hedging it. - [Dual Delta](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/dual-delta): `get_dual_delta`. The dual delta of an option based on the Black Scholes Model: how much the option value changes for a 1.00 change in the strike price. - [Dual Gamma](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/dual-gamma): `get_dual_gamma`. The dual gamma of an option based on the Black Scholes Model: how much the dual delta changes for a 1.00 change in the strike price. - [Epsilon](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/epsilon): `get_epsilon`. The epsilon of an option based on the Black Scholes Model: how much the option value changes for a 1.00 change in the dividend yield. - [Exact Inversion Tree](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/exact-inversion-tree): `get_binomial_model`. The Exact Inversion Tree is the Leisen-Reimer Tree with the Peizer-Pratt inversion replaced by the exact inverse of the binomial distribution. - [Exchange Options](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/exchange-options): `get_exchange_option`. The price of an option to exchange a second asset (the benchmark by default) for each ticker, an outperformance option. - [Finite Difference Method](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/finite-difference-method): `get_american_option`. The Finite Difference Method solves the Black-Scholes partial differential equation of the option value backwards from the payoff at expiration on a grid... - [Forward-Start Options](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/forward-start-options): `get_forward_start_option`. The closed-form price of a forward-start option: what a European option on each ticker is worth whose strike is set later at a share of the stock price... - [Gamma](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/gamma): `get_gamma`. The gamma of an option based on the Black Scholes Model: how much the delta changes for a 1.00 change in the price of the underlying asset. - [Gamma Exposure](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/gamma-exposure): `get_gamma_exposure`. The dealer gamma exposure (GEX): the dollar value of shares market makers would have to buy or sell for every 1% move in the underlying to keep their... - [Garman-Kohlhagen Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/garman-kohlhagen-model): `get_garman_kohlhagen`. The Garman-Kohlhagen Model: what European calls and puts on each currency pair are worth, the Black-Scholes model with the foreign interest rate in the... - [Heston Model Calibration](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/heston-model-calibration): `get_heston_parameters`. Calibrate the Heston (1993) stochastic volatility model to each ticker's option chain. - [Heston-Nandi GARCH Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/heston-nandi-garch-model): `get_heston_nandi_model`. European option prices in the GARCH model of Heston and Nandi (2000): what calls and puts on each ticker are worth when its variance follows a GARCH... - [Implied Move](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/implied-move): `get_implied_move`. The move the options market expects up to every expiry: the size of the move, in either direction, that the price of the at-the-money straddle (buying the... - [Implied Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/implied-volatility): `get_implied_volatility`. The Implied Volatility (IV): the volatility at which the Black Scholes Model (or the American price) reproduces the actual option prices, for any of the... - [Implied Volatility Term Structure](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/implied-volatility-term-structure): `get_implied_volatility_term_structure`. The term structure of implied volatility: the at-the-money implied volatility of every expiry, interpolated at the current price and averaged over calls... - [Jarrow-Rudd Tree](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/jarrow-rudd-tree): `get_binomial_model`. The Jarrow-Rudd Tree (Jarrow and Rudd, 1983) gives the up and down move equal probabilities of one half and centres both moves on the drift of the... - [Ju-Zhong Approximation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/ju-zhong-approximation): `get_american_option`. The Ju-Zhong Approximation (Ju and Zhong, 1999) corrects the Barone-Adesi-Whaley Approximation for the term it leaves out, the derivative of the early... - [Kirk Approximation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/kirk-approximation): `get_spread_option`. The Kirk Approximation (Kirk, 1995) treats the second asset's forward price plus the strike as the price of one lognormal asset, which turns the spread... - [Lambda](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/lambda): `get_lambda`. The lambda of an option based on the Black Scholes Model: the percentage change in the option value per percentage change in the price of the underlying... - [Leisen-Reimer Tree](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/leisen-reimer-tree): `get_binomial_model`. The Leisen-Reimer Tree (Leisen and Reimer, 1996) centres the tree on the strike. - [Local Volatility Surface](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/local-volatility-surface): `get_local_volatility_surface`. The Dupire (1994) local volatility surface: the volatility of the stock at each price and time that reproduces the SVI or SSVI implied volatility surface... - [Lookback Options](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/lookback-options): `get_lookback_option`. The closed-form price of a lookback option: what an option on each ticker is worth whose payoff depends on the highest or lowest stock price over its life. - [Max Pain](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/max-pain): `get_max_pain`. The max pain strike of every expiry: the expiry price at which the options outstanding would pay their holders the least, the sum over every call of open... - [Model-Free Implied Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/model-free-implied-volatility): `get_model_free_implied_volatility`. The model-free implied volatility with the Cboe VIX methodology, for any ticker with listed options. - [Monte Carlo Asian Option](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/monte-carlo-asian-option): `get_asian_option`. The Monte Carlo Simulation simulates paths of the stock price, averages each path arithmetically and discounts the mean payoff. - [Monte Carlo Option Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/monte-carlo-option-price): `get_monte_carlo_option_price`. Option prices through Monte Carlo simulation: what European calls and puts on each ticker are worth on simulated Geometric Brownian Motion (GBM) stock... - [Option Chains](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/option-chains): `get_option_chains`. The Option Chains: the currently available options of each ticker as reported by Yahoo Finance, with their prices, volume, open interest and implied... - [Partial Derivative](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/partial-derivative): `get_partial_derivative`. The partial derivative of an option based on the Black Scholes Model: how fast the dual delta changes with the strike price, the second derivative of the... - [Put-Call Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/put-call-parity): `get_put_call_parity`. The Put-Call Parity gap, the amount by which Black-Scholes call and put prices deviate from the no-arbitrage relationship between them. - [Put-Call Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/put-call-ratio): `get_put_call_ratio`. The put-call ratio of every expiry, by volume and by open interest: how many puts are traded or held per call, which is usually read as hedging demand or... - [QD Fixed Point Method](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/qd-fixed-point-method): `get_american_option`. The QD Fixed Point Method (Andersen, Lake and Offengenden, 2016) solves the early exercise boundary rather than approximating it. - [Rho](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/rho): `get_rho`. The rho of an option based on the Black Scholes Model: how much the option value changes for a 1.00 change in the risk free rate. - [Risk-Neutral Density](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/risk-neutral-density): `get_risk_neutral_density`. The market-implied risk-neutral probability density of the underlying's price at expiration. - [Risk-Neutral Moments](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/risk-neutral-moments): `get_risk_neutral_moments`. The risk-neutral (option-implied) volatility, skewness and kurtosis of the log return up to every expiry. - [SABR Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/sabr-model): `get_volatility_surface`. The SABR Model (Hagan, Kumar, Lesniewski and Woodward, 2002), short for stochastic alpha, beta, rho, lets the forward price follow a process whose... - [SKEW Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/skew-index): `get_skew_index`. A SKEW index with the Cboe SKEW Index methodology, for any ticker with listed options. - [Speed](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/speed): `get_speed`. The speed of an option based on the Black Scholes Model: how much the gamma changes for a 1.00 change in the price of the underlying asset. - [Spread Options](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/spread-options): `get_spread_option`. The Bjerksund-Stensland Approximation (Bjerksund and Stensland, 2014) values the spread option as the strategy that exercises when the first asset's... - [Stock Price Simulation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/stock-price-simulation): `get_stock_price_simulation`. Simulate the Stock Price based on the Binomial Model: the prices each ticker can reach after every combination of up and down movements up to expiration. - [Strategy Payoff](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/strategy-payoff): `get_strategy_payoff`. The net expiration profit and loss (P&L) profile of a multi-leg option (and, optionally, stock) strategy. - [Surface SVI Parametrization](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/surface-svi-parametrization): `get_volatility_surface`. The Surface SVI Parametrization (SSVI) of Gatheral and Jacquier (2014) describes all expiries at once. - [Theta](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/theta): `get_theta`. The theta of an option based on the Black Scholes Model: how much the option value changes as time passes, its time decay. - [Tian Tree](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/tian-tree): `get_binomial_model`. The Tian Tree (Tian, 1993) chooses the up move, the down move and the probability so that every step matches the first three moments of the lognormal... - [Touch Options](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/touch-options): `get_touch_option`. The closed-form price of a one-touch, no-touch, double one-touch or double no-touch option. - [Trigeorgis Tree](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/trigeorgis-tree): `get_binomial_model`. The Trigeorgis Tree (Trigeorgis, 1991) works in the logarithm of the stock price. - [Turnbull-Wakeman Approximation](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/turnbull-wakeman-approximation): `get_asian_option`. The Turnbull-Wakeman Approximation (Turnbull and Wakeman, 1991) takes the arithmetic average A to be lognormal with its exact first two moments and prices... - [Ultima](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/ultima): `get_ultima`. The ultima of an option based on the Black Scholes Model: how much the vomma changes for a 1.00 change in the volatility. - [Vanna](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/vanna): `get_vanna`. The vanna of an option based on the Black Scholes Model: how much the delta changes for a 1.00 change in the volatility, or equally the vega for a 1.00... - [Variance Swap](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/variance-swap): `get_variance_swap`. The fair strike of a variance swap up to every expiry from the option chain. - [Vega](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/vega): `get_vega`. The vega of an option based on the Black Scholes Model: how much the option value changes for a one percentage point change in the volatility of the... - [Vera](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/vera): `get_vera`. The vera of an option based on the Black Scholes Model: how much the rho changes for a 1.00 change in the volatility. - [Veta](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/veta): `get_veta`. The Black Scholes Model is a mathematical model used to estimate the price of European-style options. With the formula and an example in Python. - [Volatility Risk Premium](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/volatility-risk-premium): `get_volatility_risk_premium`. The volatility risk premium: the model-free implied volatility over the coming days minus the volatility the stock actually realized over the same span in... - [Volatility Skew](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/volatility-skew): `get_volatility_skew`. The volatility skew of every expiry: how much more the market pays for downside than for upside protection (the risk reversal) and how much both tails cost... - [Volatility Surface](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/volatility-surface): `get_volatility_surface`. The Stochastic Volatility Inspired Parametrization (SVI) of Gatheral (2004) describes the smile of one expiry with five parameters. - [Vomma](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/vomma): `get_vomma`. The vomma of an option based on the Black Scholes Model: how much the vega changes for a 1.00 change in the volatility, the convexity of the option value... - [Zomma](https://www.jeroenbouma.com/projects/financetoolkit/docs/options/zomma): `get_zomma`. The zomma of an option based on the Black Scholes Model: how much the gamma changes for a 1.00 change in the volatility. ## [Technicals](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals) - [AR and BR Sentiment (BRAR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/ar-and-br-sentiment-brar): `get_brar`. The AR and BR sentiment indicators (BRAR), which show how popular a security is and how willing the market is to buy it. - [ATR Trailing Stop](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/atr-trailing-stop): `get_supertrend`. The ATR Trailing Stop follows the close itself at a multiple of the Average True Range. It goes back to the Volatility System of J. - [Aberration Bands](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/aberration-bands): `get_keltner_channels`. The Aberration Bands place one Average True Range above and below a short simple moving average of the typical price. - [Acceleration Bands](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/acceleration-bands): `get_acceleration_bands`. Headley's Acceleration Bands: bands around a moving average that widen with the range of the candles, whose breakouts show an accelerating trend. - [Accelerator Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/accelerator-oscillator): `get_awesome_oscillator`. The Accelerator Oscillator (AC), or Accelerator/Decelerator Oscillator, measures how the momentum of the Awesome Oscillator changes, its acceleration. - [Accumulation/Distribution Line (ADL)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/accumulation-distribution-line-adl): `get_accumulation_distribution_line`. The Accumulation/Distribution Line: a running total of volume weighted by where each close lies within its high-low range, to show whether a security is... - [Adaptive Price Zone (APZ)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/adaptive-price-zone-apz): `get_adaptive_price_zone`. Leibfarth's Adaptive Price Zone (APZ): bands around a double-smoothed exponential moving average that adapt to the range, which show turning points in a... - [Advancers/Decliners Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/advancers-decliners-ratio): `get_advancers_decliners`. The advance/decline signal: whether each ticker closed higher (1) or lower (-1) than the period before, the building block of the market breadth measures. - [Archer Moving Averages Trends (AMAT)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/archer-moving-averages-trends-amat): `get_archer_moving_average_trends`. Archer's Moving Averages Trends (AMAT): whether a fast and a slow moving average both rise (a long run) or both fall (a short run), which shows the... - [Archer On-Balance Volume (AOBV)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/archer-on-balance-volume-aobv): `get_archer_on_balance_volume`. The Archer On-Balance Volume (AOBV): a fast and a slow average of the On-Balance Volume and whether the volume trend is up or down. - [Arnaud Legoux Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/arnaud-legoux-moving-average): `get_moving_average`. The Arnaud Legoux Moving Average (ALMA) of Arnaud Legoux and Dimitris Kouzis-Loukas (2009) weights the prices of the window with a Gaussian curve whose... - [Aroon Indicator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/aroon-indicator): `get_aroon_indicator`. The Aroon Indicator: how many periods ago the highest high and the lowest low of a window were, which shows whether a trend is starting and how strong it is. - [Average Day Range](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/average-day-range): `get_average_true_range`. The Average Day Range (ADR) is the simple average of the high-low range of each period. With the formula, how to read its signals and an example in Python. - [Average Directional Index (ADX)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/average-directional-index-adx): `get_average_directional_index`. The Average Directional Index (ADX) measures how strong a trend is, whether prices rise or fall. J. With the formula and an example in Python. - [Average Directional Movement Index Rating](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/average-directional-movement-index-rating): `get_average_directional_index`. The Average Directional Movement Index Rating (ADXR) is Wilder's smoothed ADX: the average of the current ADX and the ADX a window earlier. - [Average Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/average-price): `get_price_transform`. The Average Price is the average of the open, high, low and close of a period: the four prices of a bar weighted equally. - [Average True Range (ATR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/average-true-range-atr): `get_average_true_range`. The Average True Range (ATR) measures volatility as the average size of the range of each period, including any gap from the close of the period before. J. - [Awesome Oscillator (AO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/awesome-oscillator-ao): `get_awesome_oscillator`. The Awesome Oscillator (AO) measures the momentum of the market as the gap between a fast and a slow simple moving average of the median price, the... - [Balance of Power (BOP)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/balance-of-power-bop): `get_balance_of_power`. The Balance of Power (BOP): how far the close lies from the open as a share of the range, which shows whether buyers or sellers control the period. - [Bet Sizes](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/bet-sizes): `get_bet_sizes`. López de Prado's bet size for meta-labelled bets: how much of the budget to put on each date, from -1 (fully short) to 1 (fully long). - [Bias](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/bias): `get_bias`. The Bias, or deviation rate, is a standard indicator on Asian trading platforms. With the formula, how to read its signals and an example in Python. - [Bollinger %B and BandWidth](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/bollinger-b-and-bandwidth): `get_bollinger_percent_b_and_bandwidth`. The Bollinger %B and BandWidth: where the close lies within the Bollinger Bands and how wide the bands are, which show overbought and oversold levels and... - [Bollinger Bands](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/bollinger-bands): `get_bollinger_bands`. The Bollinger Bands are a volatility indicator: an upper and a lower band around a moving average of the price, a number of standard deviations wide. - [Butterworth Filter](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/butterworth-filter): `get_swiss_army_knife_filter`. The Butterworth Filter, the two-pole Butterworth low-pass filter, smooths away the cycles shorter than the cutoff period n and keeps the trend, with a flat... - [Buying and Selling Pressure (BASP)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/buying-and-selling-pressure-basp): `get_buying_selling_pressure`. It compares the distance of the close above the low (buying) and of the high above the close (selling) with their averages, weighted by volume. - [Calendar Effects](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/calendar-effects): `get_calendar_effects`. The calendar effects in every ticker's daily returns: whether returns differ by weekday, around the turn of the month or before holidays, tested with... - [Camarilla Pivot Points](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/camarilla-pivot-points): `get_pivot_points`. The Camarilla Pivot Points place four levels of resistance and support around the previous period's close rather than the pivot, at fixed fractions of the... - [Candlestick Patterns](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/candlestick-patterns): `get_candlestick_patterns`. Recognise 62 classic candlestick patterns in every ticker's candles: the shapes of one to five candles that traders read as a reversal or a continuation of... - [Center of Gravity Oscillator (CG)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/center-of-gravity-oscillator-cg): `get_center_of_gravity_oscillator`. Ehlers' Center of Gravity (CG) Oscillator: the weighted position of the prices within a window, which marks the turning points of the cycle with little lag. - [Chaikin Money Flow (CMF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/chaikin-money-flow-cmf): `get_chaikin_money_flow`. The Chaikin Money Flow (CMF) measures buying and selling pressure as the share of the volume over a window that came with closes near the high of the... - [Chaikin Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/chaikin-oscillator): `get_chaikin_oscillator`. The Chaikin Oscillator: the momentum of the Accumulation/Distribution Line, as the difference between its fast and slow exponential moving averages. - [Chaikin Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/chaikin-volatility): `get_chaikin_volatility`. Chaikin's Volatility: the percentage change of the average high-low range over a window, which shows whether the range is widening or narrowing. - [Chande Kroll Stop](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/chande-kroll-stop): `get_chande_kroll_stop`. The Chande Kroll Stop: a long and a short stop a multiple of the Average True Range from the recent extremes, which shows where a trend would be broken. - [Chande Momentum Oscillator (CMO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/chande-momentum-oscillator-cmo): `get_chande_momentum_oscillator`. The Chande Momentum Oscillator (CMO): the gains minus the losses over a window as a share of their sum, from -100 to 100, to show momentum and overbought... - [Chandelier Exit](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/chandelier-exit): `get_chandelier_exit`. The Chandelier Exit is a trailing stop set a multiple of the Average True Range away from the most extreme price of the recent periods. - [Choppiness Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/choppiness-index): `get_choppiness_index`. The Choppiness Index (CHOP): how much of the range of a window the price travelled, from trending (near 0) to choppy and sideways (near 100). - [Commodity Channel Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/commodity-channel-index): `get_commodity_channel_index`. The Commodity Channel Index (CCI): how far the typical price lies from its average, in units of its mean deviation, to show cyclical turns and overbought... - [ConnorsRSI](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/connorsrsi): `get_relative_strength_index`. The ConnorsRSI is a short-term version of the RSI by Larry Connors, Cesar Alvarez and Matt Radtke, built for mean reversion trading. - [Coppock Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/coppock-curve): `get_coppock_curve`. The Coppock Curve: a weighted moving average of the sum of a long and a short rate of change, which shows long-term buying opportunities after a decline. - [Correlation Trend Indicator (CTI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/correlation-trend-indicator-cti): `get_correlation_trend_indicator`. The Correlation Trend Indicator (CTI) of a price series: the Pearson correlation of the prices over the window with a straight line rising over time. - [Cumulative Force Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/cumulative-force-index): `get_force_index`. The Cumulative Force Index (CFI) is the running total of the Force Index. - [Cyber Cycle](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/cyber-cycle): `get_cyber_cycle`. Ehlers' Cyber Cycle: the cycle of the prices with the trend taken out by a two-pole high-pass filter, and its trigger line, whose crossings mark the turns... - [DV Intermediate Oscillator (DVI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/dv-intermediate-oscillator-dvi): `get_dv_intermediate_oscillator`. It blends rankings of how far the price stands from its short average and of the balance of up and down days. With the formula and an example in Python. - [DeMark Pivot Points](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/demark-pivot-points): `get_pivot_points`. The DeMark Pivot Points of Tom DeMark (1994) weight the previous high, low or close twice depending on how the previous period closed relative to its open... - [Decycler](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/decycler): `get_swiss_army_knife_filter`. The Decycler of John Ehlers (2013) is the price minus its one-pole High-Pass Filter. - [Derivative Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/derivative-oscillator): `get_derivative_oscillator`. The Derivative Oscillator: a double-smoothed Relative Strength Index minus its average, which shows the momentum of the RSI itself. - [Detrended Price Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/detrended-price-oscillator): `get_detrended_price_oscillator`. The Detrended Price Oscillator (DPO): the price minus a moving average shifted back in time, which removes the trend to show the cycles. - [Detrended Synthetic Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/detrended-synthetic-price): `get_detrended_synthetic_price`. Ehlers' Detrended Synthetic Price: the difference between a fast and a slow average tuned to the prices' cycle, which shows the cycle without the trend. - [Directional Movement Index (DMI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/directional-movement-index-dmi): `get_directional_movement_index`. Wilder's Directional Movement System: the smoothed Plus and Minus Directional Movement (+DM, -DM), the Directional Indicators (+DI, -DI) and the... - [Donchian Channels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/donchian-channels): `get_donchian_channels`. The Donchian Channels: the highest high and the lowest low of the previous periods, whose breakouts signal the start of a trend. - [Double Exponential Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/double-exponential-moving-average): `get_moving_average`. The Double Exponential Moving Average (DEMA) of Patrick Mulloy (1994) reduces the lag of the EMA by subtracting the EMA of the EMA, which lags twice as... - [Dynamic Momentum Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/dynamic-momentum-index): `get_relative_strength_index`. The Dynamic Momentum Index is an RSI by Tushar Chande and Stanley Kroll whose period changes with the volatility. With the formula and an example in Python. - [Ease of Movement (EMV)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/ease-of-movement-emv): `get_ease_of_movement`. The Ease of Movement (EMV): how far the price moves per unit of volume, so a large value shows a price rising or falling on little volume. - [Efficiency Ratio (ER)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/efficiency-ratio-er): `get_efficiency_ratio`. The Efficiency Ratio (ER) compares the net change of the price over a window with the path the price travelled to get there, the sum of the absolute... - [Elastic Volume Weighted Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/elastic-volume-weighted-moving-average): `get_moving_average`. The Elastic Volume Weighted Moving Average (EVWMA) of Christian Fries (2001) moves the average towards each close by the share of the volume that traded in... - [Elder Impulse](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/elder-impulse): `get_elder_impulse`. Elder's Impulse System: whether the trend and the momentum both rise (1, a green bar), both fall (-1, a red bar) or disagree (0, a blue bar). - [Elder Ray Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/elder-ray-index): `get_elder_ray_index`. The Elder Ray Index: how far the high (Bull Power) and the low (Bear Power) lie from an exponential moving average, which shows the strength of the buyers... - [Even Better Sinewave](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/even-better-sinewave): `get_even_better_sinewave`. Ehlers' Even Better Sinewave: an oscillator between -1 and 1 that shows whether the prices move in a cycle or a trend and where they are in the cycle. - [Event Filter](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/event-filter): `get_event_filter`. The events of an event filter: the dates something happens that is worth labeling, such as a run of returns in one direction. - [Exponential Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/exponential-moving-average): `get_moving_average`. The Exponential Moving Average (EMA) weights the prices with exponentially decaying weights, so the latest price weighs the most and older prices fade... - [Factor Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/factor-analysis): `get_factor_analysis`. Factor analysis (predictive power) of the technical indicators: whether the tickers that score high on an indicator go on to return more than those that... - [Fair Value Gaps](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/fair-value-gaps): `get_fair_value_gaps`. Mark the fair value gaps and their order blocks in every ticker's candles. - [Fibonacci Pivot Points](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/fibonacci-pivot-points): `get_pivot_points`. The Fibonacci Pivot Points take the same pivot point as the Classic Pivot Points and place the levels at the Fibonacci ratios of the previous period's... - [Fibonacci Retracement Levels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/fibonacci-retracement-levels): `get_fibonacci_retracement_levels`. The Fibonacci Retracement Levels: the prices at the Fibonacci ratios of the range between the high and the low, where a pullback may find support or... - [Fibonacci Weighted Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/fibonacci-weighted-moving-average): `get_moving_average`. The Fibonacci Weighted Moving Average (FWMA) weights the prices of the window with the Fibonacci numbers, which grow by about 1.618 a period, so the latest... - [Finite Volume Elements (FVE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/finite-volume-elements-fve): `get_finite_volume_elements`. Markos Katsanos' Finite Volume Elements (FVE): the share of volume over a window classified as buying rather than selling, leaving out moves too small to... - [Fisher Transform](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/fisher-transform): `get_fisher_transform`. The Fisher Transform: the prices' position within their range turned into a near-normal distribution, which makes the turning points sharper and easier to... - [Fixed-Horizon Labels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/fixed-horizon-labels): `get_fixed_horizon_labels`. The fixed-horizon labels: the sign of the return over the next horizon periods, 0 when it stays within the threshold, the most common labels of financial... - [Force Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/force-index): `get_force_index`. The Force Index measures the force behind a price move by combining its direction, its size and the volume traded on it. - [Forecast Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/forecast-oscillator): `get_forecast_oscillator`. The Forecast Oscillator of a price series: how far the price lies from the Time Series Forecast made for it one period earlier, as a share of the price. - [Fractal Adaptive Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/fractal-adaptive-moving-average): `get_moving_average`. The Fractal Adaptive Moving Average (FRAMA) of John Ehlers (2005) adapts its speed to the fractal dimension of the price. - [Gann HiLo Activator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/gann-hilo-activator): `get_gann_hilo_activator`. The Gann HiLo Activator: a trailing stop drawn from a moving average of the lows in an uptrend and of the highs in a downtrend, which flips when the close... - [Gaussian Filter](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/gaussian-filter): `get_swiss_army_knife_filter`. The Gaussian Filter, the two-pole Gaussian low-pass filter, smooths away the cycles shorter than the cutoff period n and keeps the trend, with the least... - [Guppy Multiple Moving Averages (GMMA)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/guppy-multiple-moving-averages-gmma): `get_guppy_multiple_moving_averages`. Daryl Guppy's Multiple Moving Averages (GMMA), whose spread and order show the strength of the traders' and the investors' trend. - [Heikin-Ashi Candles](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/heikin-ashi-candles): `get_heikin_ashi`. The Heikin-Ashi ("average bar") candles of every ticker: candles built from two-period averages, which smooth the noise so the trend stands out. - [High-Pass Filter](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/high-pass-filter): `get_swiss_army_knife_filter`. The High-Pass Filter, the one-pole high-pass filter, removes the trend and keeps the cycles shorter than the cutoff period n. Angles are in degrees. - [Hilbert Transform Dominant Cycle Period (HT_DCPERIOD)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/hilbert-transform-dominant-cycle-period-ht-dcperiod): `get_hilbert_dominant_cycle_period`. The Hilbert Transform Dominant Cycle Period (HT_DCPERIOD): the length, in periods, of the main cycle in the prices. With the formula and an example in Python. - [Hilbert Transform Dominant Cycle Phase (HT_DCPHASE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/hilbert-transform-dominant-cycle-phase-ht-dcphase): `get_hilbert_dominant_cycle_phase`. The Hilbert Transform Dominant Cycle Phase (HT_DCPHASE): where the prices are within their main cycle, in degrees. With the formula and an example in Python. - [Hilbert Transform Instantaneous Trendline](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/hilbert-transform-instantaneous-trendline): `get_moving_average`. The Hilbert Transform Instantaneous Trendline of John Ehlers (2001) averages the price over its dominant cycle, measured with the Hilbert transform, so... - [Hilbert Transform Phasor Components (HT_PHASOR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/hilbert-transform-phasor-components-ht-phasor): `get_hilbert_phasor_components`. The Hilbert Transform Phasor Components (HT_PHASOR): the in-phase and quadrature parts of the prices' cycle, from which its phase and period follow. - [Hilbert Transform Sine Wave (HT_SINE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/hilbert-transform-sine-wave-ht-sine): `get_hilbert_sine_wave`. The Hilbert Transform SineWave (HT_SINE) of John Ehlers (2001) measures the phase over the dominant cycle period, which it measures from the price itself... - [Hilbert Transform Trend vs Cycle Mode (HT_TRENDMODE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/hilbert-transform-trend-vs-cycle-mode-ht-trendmode): `get_hilbert_trend_mode`. The Hilbert Transform Trend vs Cycle Mode (HT_TRENDMODE): whether the prices are trending (1) or moving in a cycle (0). - [Holt-Winters Channel](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/holt-winters-channel): `get_holt_winters_channel`. The Holt-Winters Channel: bands a multiple of the smoothed standard deviation around the Holt-Winters Moving Average, which widen when the price strays... - [Holt-Winters Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/holt-winters-moving-average): `get_moving_average`. The Holt-Winters Moving Average (HWMA) applies the exponential smoothing of Holt (1957) and Winters (1960), which smooths the level and the trend of a... - [Hull Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/hull-moving-average): `get_moving_average`. The Hull Moving Average (HMA) of Alan Hull (2005) combines weighted moving averages of different lengths to remove almost all lag while staying smooth. - [Ichimoku Cloud](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/ichimoku-cloud): `get_ichimoku_cloud`. The Ichimoku Cloud: the midpoints of the highs and lows over three windows, which show the trend, the momentum and the support and resistance of the prices... - [Indicator Summary](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/indicator-summary): `get_indicator_summary`. Summarise the history of a technical indicator per ticker in a single row instead of the series itself. With the formula and an example in Python. - [Inertia](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/inertia): `get_inertia`. Dorsey's Inertia: the Relative Volatility Index smoothed with a linear regression, which shows the direction of a trend, up above 50 and down below it. - [Internal Bar Strength (IBS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/internal-bar-strength-ibs): `get_internal_bar_strength`. The Internal Bar Strength (IBS): where the close lies within the range of its period, from 0 (at the low) to 1 (at the high). - [Intraday Momentum Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/intraday-momentum-index): `get_relative_strength_index`. The Intraday Momentum Index is an RSI of the moves within each period by Tushar Chande. - [Inverse Fisher Transform of the RSI](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/inverse-fisher-transform-of-the-rsi): `get_inverse_fisher_transform_rsi`. The Inverse Fisher Transform of the RSI: the smoothed Relative Strength Index squeezed between -1 and 1, which makes its overbought and oversold signals... - [KDJ Indicator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/kdj-indicator): `get_kdj_indicator`. The KDJ indicator: the Stochastic Oscillator's %K and %D with the J line that leads them, to show overbought and oversold levels and turning points. - [Kaufman Adaptive Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/kaufman-adaptive-moving-average): `get_moving_average`. The Kaufman Adaptive Moving Average (KAMA) of Perry Kaufman changes its speed with the efficiency of the price move. - [Keltner Channels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/keltner-channels): `get_keltner_channels`. The Keltner Channels are an envelope around a moving average of the price whose width follows the volatility, measured by the Average True Range. - [Klinger Volume Oscillator (KVO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/klinger-volume-oscillator-kvo): `get_klinger_volume_oscillator`. The Klinger Volume Oscillator (KVO): the difference between a fast and a slow average of the volume force, which compares the volume of up and down trends... - [Know Sure Thing (KST)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/know-sure-thing-kst): `get_know_sure_thing`. The Know Sure Thing (KST): a weighted sum of four smoothed rates of change over increasing windows, which shows the momentum of the major price cycles. - [Label Uniqueness](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/label-uniqueness): `get_label_uniqueness`. The concurrency and the average uniqueness of labels: how many labels span each date and how much of its span each label shares with others. - [Laguerre RSI](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/laguerre-rsi): `get_relative_strength_index`. The Laguerre RSI is an RSI by John Ehlers that runs over the four elements of a Laguerre filter instead of over four prices. - [Liquidity Sweep](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/liquidity-sweep): `get_liquidity_sweep`. Mark the liquidity sweeps in every ticker's candles: a candle that trades through the lowest low (or highest high) of the previous 15 bars, where stop... - [MESA Adaptive Moving Average (MAMA)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/mesa-adaptive-moving-average-mama): `get_mesa_adaptive_moving_average`. The MESA Adaptive Moving Average (MAMA) and the Following Adaptive Moving Average (FAMA). - [MESA Sine Wave](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/mesa-sine-wave): `get_hilbert_sine_wave`. The MESA Sine Wave (MSW), from Ehlers' MESA work (1992), measures the phase over a fixed window of n periods instead of the measured dominant cycle... - [Market Breadth](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/market-breadth): `get_market_breadth`. An index can rise on the strength of a few large companies while most of its members fall. - [Market Facilitation Index (BW MFI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/market-facilitation-index-bw-mfi): `get_market_facilitation_index`. Bill Williams' Market Facilitation Index (BW MFI): the range of a period per unit of volume, which shows how efficiently volume moves the price. - [Market Thermometer](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/market-thermometer): `get_market_thermometer`. Elder's Market Thermometer: how far each period's range pushes outside that of the previous period, which shows how hot or quiet the market is. - [Mass Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/mass-index): `get_mass_index`. The Mass Index: the sum of the ratios of an exponential moving average of the high-low range to its own average, which signals a reversal when the range... - [Matrix Flag Labels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/matrix-flag-labels): `get_matrix_flag_labels`. The matrix flag labels: how closely the prices of the last window periods fit a bull (or bear) flag, a sharp move followed by a consolidation that... - [McClellan Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/mcclellan-oscillator): `get_mcclellan_oscillator`. The McClellan Oscillator: the momentum of the market's breadth, as the difference between a fast and a slow average of the advancing minus declining tickers. - [McGinley Dynamic](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/mcginley-dynamic): `get_moving_average`. The McGinley Dynamic (MD) of John McGinley (1997) is a moving average that adjusts its speed to the market. - [Median Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/median-price): `get_price_transform`. The Median Price is the middle of the high and the low of a period, the centre of its range. With the formula and an example in Python. - [Midpoint](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/midpoint): `get_midpoint`. The Midpoint is the middle of the highest and the lowest close over the last n periods, including the current one. With the formula and an example in Python. - [Midpoint Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/midpoint-price): `get_midpoint`. The Midpoint Price is the middle of the highest high and the lowest low over the last n periods, including the current one. - [Momentum](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/momentum): `get_rate_of_change`. The Momentum is the change of the price over a fixed number of periods in price units, the simplest measure of the speed of a move. - [Money Flow Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/money-flow-index): `get_money_flow_index`. The Money Flow Index is a momentum indicator that measures the strength and direction of money flowing in and out of a security by considering both price... - [Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/moving-average): `get_moving_average`. The Simple Moving Average (SMA) is the plain average of the closing price over the last n periods: every price in the window weighs the same. - [Moving Average Convergence Divergence (MACD)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/moving-average-convergence-divergence-macd): `get_moving_average_convergence_divergence`. The Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator that tracks the gap between a fast and a slow moving average of... - [Moving Average Envelope](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/moving-average-envelope): `get_bollinger_bands`. The Moving Average Envelope places a band a fixed percentage above and below a moving average of the price. With the formula and an example in Python. - [Negative and Positive Volume Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/negative-and-positive-volume-index): `get_volume_index`. The Negative Volume Index (NVI) is a running index of the price that only moves on periods when the volume falls. With the formula and an example in Python. - [New Highs - New Lows](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/new-highs-new-lows): `get_new_highs_new_lows`. The New Highs - New Lows: the number of tickers at a new high over a window minus the number at a new low, which shows how broad a rise or a fall is. - [Normalized Average True Range](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/normalized-average-true-range): `get_average_true_range`. The Normalized Average True Range (NATR) is the Average True Range as a share of the closing price. With the formula and an example in Python. - [On-Balance Volume (OBV)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/on-balance-volume-obv): `get_on_balance_volume`. The On-Balance Volume (OBV): a running total of volume that adds the volume of up periods and subtracts that of down periods, to show whether volume flows... - [Original Keltner Channels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/original-keltner-channels): `get_keltner_channels`. The Original Keltner Channels are the channels as Chester Keltner defined them. - [Parabolic SAR](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/parabolic-sar): `get_parabolic_sar`. The Parabolic Stop and Reverse (SAR): a trailing stop that speeds up as the trend extends and flips side when the price crosses it. - [Pascal Weighted Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/pascal-weighted-moving-average): `get_moving_average`. The Pascal Weighted Moving Average (PWMA) weights the prices of the window with a row of Pascal's triangle, the binomial coefficients, which form a bell... - [Percentage Price Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/percentage-price-oscillator): `get_moving_average_convergence_divergence`. The Percentage Price Oscillator (PPO) is the MACD expressed as a percentage of the slow moving average. With the formula and an example in Python. - [Percentage Volume Oscillator (PVO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/percentage-volume-oscillator-pvo): `get_percentage_volume_oscillator`. The Percentage Volume Oscillator (PVO): the difference between a fast and a slow average of the volume as a share of the slow one, which shows whether... - [Pivot Points](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/pivot-points): `get_pivot_points`. The Classic Pivot Points, also called the floor trader pivots, take the average of the previous period's high, low and close as the pivot and place three... - [Polarized Fractal Efficiency](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/polarized-fractal-efficiency): `get_efficiency_ratio`. The Polarized Fractal Efficiency (PFE) measures the same efficiency with the geometry of the path. With the formula and an example in Python. - [Positive Volume Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/positive-volume-index): `get_volume_index`. The Positive Volume Index (PVI) mirrors the Negative Volume Index: a running index of the price that only moves on periods when the volume rises. - [Premier Stochastic Oscillator (PSO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/premier-stochastic-oscillator-pso): `get_premier_stochastic_oscillator`. The Premier Stochastic Oscillator (PSO): the smoothed and normalised Stochastic %K squeezed between -1 and 1, which gives clearer overbought and oversold... - [Pretty Good Oscillator (PGO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/pretty-good-oscillator-pgo): `get_pretty_good_oscillator`. Johnson's Pretty Good Oscillator (PGO): how far the close lies from its moving average, in units of the Average True Range, which shows breakouts from a... - [Price Bands](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/price-bands): `get_bollinger_bands`. The Price Bands are a variant of the Bollinger Bands whose width comes from how far a fast moving average of the price strays from the slow one, rather... - [Price Distance](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/price-distance): `get_price_distance`. The Price Distance: the distance the price travelled within each period, including the gap from the previous close, a measure of how much the price moves. - [Price Transform](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/price-transform): `get_price_transform`. The Typical Price is the average of the high, low and close of a period. With the formula, how to read its signals and an example in Python. - [Price Volume Rank (PVR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/price-volume-rank-pvr): `get_price_volume_rank`. The Price Volume Rank (PVR): a code from 1 (a rising price on rising volume) to 4 (a falling price on falling volume), which shows whether volume confirms... - [Price Volume Trend (PVT)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/price-volume-trend-pvt): `get_price_volume_trend`. The Price Volume Trend (PVT): a running total of volume weighted by the percentage change of the close, which shows how strongly buying or selling pressure... - [Price Zone Oscillator (PZO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/price-zone-oscillator-pzo): `get_price_zone_oscillator`. The Price Zone Oscillator (PZO): the share of the recent closes that moved up, from -100 to 100, which shows overbought and oversold levels and the... - [Price-Volume (Dollar Volume)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/price-volume-dollar-volume): `get_price_volume`. The Price-Volume is the value traded in a period: the close times the volume. With the formula, how to read its signals and an example in Python. - [Profit Maximizer](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/profit-maximizer): `get_supertrend`. The Profit Maximizer (PMax) by Kivanc Ozbilgic applies the trailing logic of the Supertrend to a moving average instead of the price. - [Projection Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/projection-oscillator): `get_projection_oscillator`. The Projection Oscillator of a price series: where the close lies within Widner's Projection Bands, 0 on the lower band and 1 on the upper band. - [Psychological Line (PSL)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/psychological-line-psl): `get_psychological_line`. The Psychological Line (PSL): the share of periods in a window that closed higher, which shows whether buyers or sellers have the upper hand. - [Qstick](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/qstick): `get_qstick`. The Qstick: the average of the close minus the open over a window, which shows whether candles have been mostly rising or falling. - [Quantitative Qualitative Estimation (QQE)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/quantitative-qualitative-estimation-qqe): `get_quantitative_qualitative_estimation`. The Quantitative Qualitative Estimation (QQE): a smoothed Relative Strength Index with a trailing stop line a multiple of its own average move away, whose... - [Random Walk Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/random-walk-index): `get_random_walk_index`. Poulos' Random Walk Index (RWI): how much larger the move up (or down) is than a random walk would make over the same number of periods, so above 1 a trend. - [Rate of Change (ROC)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/rate-of-change-roc): `get_rate_of_change`. The Rate of Change (ROC) is a pure momentum oscillator: the change of the price over a fixed number of periods as a share of the price at the start. - [Reflex Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/reflex-oscillator): `get_reflex_oscillator`. The Reflex takes out the straight line from the smoothed price n periods ago to the latest one, which leaves only the curvature of the path the price took. - [Relative Momentum Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/relative-momentum-index): `get_relative_strength_index`. The Relative Momentum Index is an RSI by Roger Altman of the change over several periods, the momentum, instead of the change over one period. - [Relative Strength](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/relative-strength): `get_relative_strength`. The relative strength of every ticker against the Benchmark and against the other tickers: which tickers outperform and by how much. - [Relative Strength Index (RSI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/relative-strength-index-rsi): `get_relative_strength_index`. The Relative Strength Index (RSI) is a momentum oscillator that compares the size of the recent gains of a price with the size of its recent losses, on a... - [Relative Vigor Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/relative-vigor-index): `get_relative_vigor_index`. The Relative Vigor Index (RVI): how strongly the close ends above the open relative to the range, which shows the conviction behind a move. - [Relative Volatility Index (RVI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/relative-volatility-index-rvi): `get_relative_volatility_index`. Dorsey's Relative Volatility Index (RVI): the standard deviation of the up periods against that of the down periods, from 0 to 100, which shows the... - [Relative Volume (RVOL)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/relative-volume-rvol): `get_relative_volume`. The Relative Volume (RVOL) or the volume z-score: the volume of a period against its average over a window, as a ratio or in standard deviations, which... - [Roofing Filter](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/roofing-filter): `get_swiss_army_knife_filter`. The Roofing Filter of John Ehlers (2013) is a two-pole high-pass filter followed by a SuperSmoother, which keeps only the cycles between the shortest... - [SMI Ergodic Indicator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/smi-ergodic-indicator): `get_true_strength_index`. The SMI Ergodic Indicator is the True Strength Index with short smoothing periods, also by William Blau, together with its signal line and the gap between... - [SafeZone Stop](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/safezone-stop): `get_chandelier_exit`. The SafeZone Stop of Alexander Elder places the stop outside the noise of the market instead of a fixed number of Average True Ranges away. - [Sample Weights](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/sample-weights): `get_sample_weights`. The sample weights of labels for training a model: how much each label should count, by its uniqueness, its return or its age, as López de Prado proposes... - [Schaff Trend Cycle (STC)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/schaff-trend-cycle-stc): `get_schaff_trend_cycle`. The Schaff Trend Cycle (STC): a stochastic of the MACD, applied twice, from 0 to 100, which shows the turns of a trend faster than the MACD. - [Seasonality](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/seasonality): `get_seasonality`. Monthly returns give the months and daily returns the days of the week, each with the median, the hit rate (the share of positive returns), the t-statistic... - [Signal-to-Noise Ratio (SNR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/signal-to-noise-ratio-snr): `get_signal_to_noise_ratio`. The Signal-to-Noise Ratio (SNR): the net move of the close over a window divided by the Average True Range, which shows how cleanly the price trends. - [Signals](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/signals): `get_signals`. Turn moving averages, the MACD, the RSI, the Bollinger Bands and new highs and lows into the events traders act on: the period a line is crossed. - [Sine Weighted Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/sine-weighted-moving-average): `get_moving_average`. The Sine Weighted Moving Average (SINWMA) weights the prices of the window with the first half of a sine wave, so the prices in the middle of the window... - [Squeeze Momentum (TTM Squeeze)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/squeeze-momentum-ttm-squeeze): `get_squeeze_momentum`. The Squeeze Momentum (TTM Squeeze): whether the Bollinger Bands lie inside the Keltner Channels (a squeeze of volatility) and the momentum that shows the... - [Standard Deviation Channel](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/standard-deviation-channel): `get_standard_deviation_channel`. The Standard Deviation Channel: a least-squares line through the prices with bands a number of standard deviations above and below it. - [Stochastic Momentum Index (SMI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/stochastic-momentum-index-smi): `get_stochastic_momentum_index`. The Stochastic Momentum Index (SMI): where the close lies relative to the middle of the high-low range of a window, smoothed, from -100 to 100. - [Stochastic Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/stochastic-oscillator): `get_stochastic_oscillator`. The Stochastic Oscillator is a momentum indicator that shows where the close lies within the range between the highest high and the lowest low of the last... - [Stochastic RSI](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/stochastic-rsi): `get_stochastic_oscillator`. The Stochastic RSI applies the Stochastic Oscillator to the Relative Strength Index instead of to the price. - [SuperSmoother](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/supersmoother): `get_moving_average`. The SuperSmoother of John Ehlers is a low-pass filter that removes the cycles shorter than its critical period n with far less lag than a moving average of... - [Supertrend](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/supertrend): `get_supertrend`. The Supertrend is a trailing stop that also marks the direction of the trend. - [Support/Resistance Levels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/support-resistance-levels): `get_support_resistance_levels`. The support and resistance levels: the prices at which the prices repeatedly stopped falling (support) or rising (resistance). - [Swing Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/swing-index): `get_swing_index`. Wilder's Swing Index and Accumulative Swing Index: the strength of each period's move compared with the previous period, and its running total, which shows... - [Swiss Army Knife Filter](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/swiss-army-knife-filter): `get_swiss_army_knife_filter`. The Band-Pass Filter keeps only the cycles around a centre period n and removes both the trend and the shorter cycles, so it shows how strongly that cycle... - [TD Sequential](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/td-sequential): `get_td_sequential`. Count Tom DeMark's TD Sequential for every ticker: the TD Setup of nine closes in a row beyond the close four bars earlier, and the TD Countdown to 13 that... - [TRIN (Arms Index)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/trin-arms-index): `get_trin`. The TRIN (Arms Index): the ratio of advancing to declining tickers divided by the ratio of their volumes, which shows whether volume favours the rising or... - [TTM Trend](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/ttm-trend): `get_ttm_trend`. Carter's TTM Trend: whether the close lies above the average midpoint of the previous bars (1) or not (-1), which shows the direction of the trend. - [Tail-Set Labels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/tail-set-labels): `get_tail_set_labels`. The tail-set labels: per date, rank the tickers on their volatility-adjusted return over the next horizon periods and label the top quantile 1, the bottom... - [Tillson T3 Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/tillson-t3-moving-average): `get_moving_average`. The Tillson T3 Moving Average (T3) of Tim Tillson (1998) applies a generalized DEMA three times, for an average that is both smooth and quick. - [Time Segmented Volume](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/time-segmented-volume): `get_time_segmented_volume`. The Time Segmented Volume (TSV): the money flowing in or out over a window, the price change of each period times its volume, which shows accumulation... - [Trend Detection Index (TDI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/trend-detection-index-tdi): `get_trend_detection_index`. M.H. With the formula, how to read its signals and an example in Python. - [Trend Intensity Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/trend-intensity-index): `get_trend_intensity_index`. Pee's Trend Intensity Index (TII): the share of the recent deviations from a long moving average that were above it, from 0 to 100, which shows how strong... - [Trend Scanning Labels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/trend-scanning-labels): `get_trend_scanning_labels`. López de Prado's trend-scanning labels: the sign of the most significant linear trend in the prices after every date. - [Trendflex](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/trendflex): `get_reflex_oscillator`. The Trendflex keeps the differences between the latest smoothed price and each smoothed price of the window as they are, so it measures how far the price... - [Triangular Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/triangular-moving-average): `get_moving_average`. The Triangular Moving Average (TMA) is a simple moving average of a simple moving average, which gives the prices in the middle of the window the largest... - [Triple Exponential Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/triple-exponential-moving-average): `get_moving_average`. The Triple Exponential Moving Average (TEMA) of Patrick Mulloy (1994) takes the lag reduction of the DEMA one step further with a third EMA. - [Triple Exponential Moving Average (TRIX)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/triple-exponential-moving-average-trix): `get_trix`. The TRIX (Triple Exponential Moving Average oscillator): the rate of change of a triple exponential moving average, which shows momentum without the noise... - [Triple-Barrier Labels](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/triple-barrier-labels): `get_triple_barrier_labels`. The triple-barrier labels of López de Prado: for every date (or event) the first of three barriers the price reaches. - [True Range (TR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/true-range-tr): `get_true_range`. The True Range (TR): the range of a period including any gap from the previous close, the basic measure of how far the price moved. - [True Strength Index (TSI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/true-strength-index-tsi): `get_true_strength_index`. The True Strength Index (TSI) is a momentum oscillator that shows the direction and strength of momentum on a scale of -100 to 100. - [Twiggs Money Flow](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/twiggs-money-flow): `get_chaikin_money_flow`. The Twiggs Money Flow (TMF) is a refinement of the Chaikin Money Flow by Colin Twiggs. With the formula, how to read its signals and an example in Python. - [Two-Pole High-Pass Filter](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/two-pole-high-pass-filter): `get_swiss_army_knife_filter`. The Two-Pole High-Pass Filter removes the trend and keeps the cycles shorter than the cutoff period n, with a steeper cut than the one-pole High-Pass Filter. - [Ultimate Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/ultimate-oscillator): `get_ultimate_oscillator`. The Ultimate Oscillator: the buying pressure over three windows combined into one value from 0 to 100, to show overbought and oversold levels with fewer... - [Variable Index Dynamic Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/variable-index-dynamic-average): `get_moving_average`. The Variable Index Dynamic Average (VIDYA) of Tushar Chande (1992) is an EMA whose smoothing factor grows with the strength of the price move, measured by... - [Vertical Horizontal Filter (VHF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/vertical-horizontal-filter-vhf): `get_vertical_horizontal_filter`. The Vertical Horizontal Filter (VHF): the range of a window as a share of the path travelled, which shows whether prices trend or move sideways. - [Volatility Cone](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/volatility-cone): `get_volatility_cone`. The Volatility Cone for the specified period: the range of the historical annualised realised volatility over several windows, which shows whether the... - [Volatility-Based Momentum (VBM)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/volatility-based-momentum-vbm): `get_volatility_based_momentum`. The Volatility-Based Momentum (VBM): the change of the price over a window in units of the Average True Range, which compares momentum across tickers of... - [Volume Adjusted Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/volume-adjusted-moving-average): `get_moving_average`. The Volume Adjusted Moving Average (VAMA) weights each close with its traded value relative to the average volume, so the closes of the busiest periods... - [Volume Flow Indicator (VFI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/volume-flow-indicator-vfi): `get_volume_flow_indicator`. Markos Katsanos' Volume Flow Indicator (VFI): the volume of the periods with a meaningful move of the typical price, signed by the direction of the move... - [Volume Profile](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/volume-profile): `get_volume_profile`. The Volume Profile (Volume by Price) between the start and end date: how much volume traded at each price level, which shows the prices the market accepted... - [Volume Weighted Average Price (VWAP)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/volume-weighted-average-price-vwap): `get_volume_weighted_average_price`. The Volume Weighted Average Price (VWAP): the average price weighted by volume since an anchor date, the price at which most volume traded. - [Volume Weighted Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/volume-weighted-moving-average): `get_moving_average`. The Volume Weighted Moving Average (VWMA) weights each close with the volume traded in its period, so the prices at which most shares changed hands count... - [Volume Zone Oscillator (VZO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/volume-zone-oscillator-vzo): `get_volume_zone_oscillator`. The Volume Zone Oscillator (VZO): the volume of up closes minus that of down closes as a share of the total volume, smoothed, which shows whether buying or... - [Vortex Indicator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/vortex-indicator): `get_vortex_indicator`. The Vortex Indicator: the upward and downward movement of the prices relative to their true range, whose crossings mark the start of a new trend. - [WaveTrend Oscillator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/wavetrend-oscillator): `get_wavetrend_oscillator`. The WaveTrend Oscillator: how far the typical price lies from its average in units of its average distance, smoothed, to show overbought and oversold... - [Weighted Close Price](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/weighted-close-price): `get_price_transform`. The Weighted Close Price is the average of the high, low and close of a period with the close counted twice, as the price the period settled at. - [Weighted Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/weighted-moving-average): `get_moving_average`. The Weighted Moving Average (WMA), also called the linearly weighted moving average, gives each price a weight that rises linearly from the oldest to the... - [Wilder's Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/wilder-s-moving-average): `get_moving_average`. The Wilder's Moving Average (RMA), also called Wilder's smoothing or the smoothed moving average, is the average J. With the formula and an example in Python. - [Williams %R](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/williams-r): `get_williams_percent_r`. The Williams Percent R (Williams %R): where the close lies within the high-low range of a window, from 0 (at the high) to -100 (at the low), to show... - [Williams Accumulation/Distribution (WAD)](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/williams-accumulation-distribution-wad): `get_williams_accumulation_distribution`. Larry Williams' Accumulation/Distribution (WAD): a running total of how far each close moved from the opposite end of its true range, which shows... - [Williams Alligator](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/williams-alligator): `get_williams_alligator`. Bill Williams' Alligator and Gator Oscillator: three smoothed averages of the median price, shifted forward, whose order and spread show whether a trend is... - [Williams Fractals](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/williams-fractals): `get_williams_fractal`. Mark Bill Williams' fractals in every ticker's prices: an up fractal is a high above the highs of the two bars before and the two bars after it, a down... - [Woodie Pivot Points](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/woodie-pivot-points): `get_pivot_points`. The Woodie Pivot Points weight the previous close twice in the pivot, since the close is the price the period settled at, and place two levels of... - [Zero Lag Exponential Moving Average](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/zero-lag-exponential-moving-average): `get_moving_average`. The Zero Lag Exponential Moving Average (ZLEMA) of John Ehlers and Ric Way (2010) removes the lag of the EMA by feeding it the price extrapolated by the... - [Zig Zag](https://www.jeroenbouma.com/projects/financetoolkit/docs/technicals/zig-zag): `get_zigzag`. The Zig Zag: the swing highs and lows of the prices, ignoring moves smaller than a threshold, which shows the trend's turning points. ## [Fixed Income](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome) - [10-Year Government Bond Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/10-year-government-bond-yield): `get_government_bond_yield`. The government bond yield for a variety of countries over time from the OECD. - [3-Month Government Bond Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/3-month-government-bond-yield): `get_government_bond_yield`. Short-term interest rates are the rates at which short-term borrowings are effected between financial institutions or the rate at which short-term... - [Affordable Loan](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/affordable-loan): `get_affordable_loan`. The loan a fixed monthly payment carries at every weekly US mortgage rate. - [Amortization Schedule](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/amortization-schedule): `get_amortization_schedule`. The amortization schedule of a new 30-year fixed-rate mortgage at the US mortgage rate of a date. - [Asset Swap Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/asset-swap-spread): `get_asset_swap_spread`. The par and the market value asset swap spreads of US dollar corporate bonds over the swap curve. - [Bank of England Yield Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/bank-of-england-yield-curve): `get_bank_of_england_yield_curve`. The UK yield curves the Bank of England estimates daily from 1985: the spot rates of UK government bonds (gilts) and of overnight index swaps on SONIA... - [Bond Universe](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/bond-universe): `get_bond_universe`. Thousands of individual US dollar bonds with their price, yield to maturity, modified duration and spread over Treasuries, read from the holdings of bond... - [Bond-Equivalent Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/bond-equivalent-yield): `get_bond_equivalent_yield`. The bond-equivalent yield (BEY) of every Treasury bill from its price: the return of the bill on a basis comparable to coupon-bearing notes and bonds. - [Breakeven Inflation Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/breakeven-inflation-rate): `get_breakeven_inflation_rate`. The breakeven inflation rates of the US Treasury curve on a day: the nominal par yield minus the real (TIPS) par yield of the 5, 7, 10, 20 and 30-year... - [Broad General Collateral Rate (BGCR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/broad-general-collateral-rate-bgcr): `get_federal_reserve_rates`. The BGCR is calculated as a volume-weighted median of transaction-level tri-party repo data collected from the Bank of New York Mellon as well as GCF Repo... - [Bucketed Delta](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/bucketed-delta): `get_bucketed_delta`. The bucketed delta of individual bonds on the Treasury curve: the change in each bond's present value, per 100 of par, when one maturity of the curve rises... - [Carry and Roll-Down](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/carry-and-roll-down): `get_carry_and_roll_down`. The carry and roll-down of zero-coupon government bonds on every date: the return in excess of financing that a bond of each maturity earns over the... - [Corporate Bond Yields](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/corporate-bond-yields): `get_corporate_bond_yields`. The yields of corporate bonds of a variety of countries, by rating where the source splits them, monthly and with long histories. - [Corporate Borrowing Cost (ECB)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/corporate-borrowing-cost-ecb): `get_corporate_borrowing_cost`. The composite cost of borrowing for non-financial corporations the European Central Bank publishes monthly from 2003, for the euro area and every member. - [Credit Default Swap (CDS) Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/credit-default-swap-cds-spread): `get_credit_default_swap_spread`. The CDS-equivalent spreads of US corporate credit: the spread a protection buyer would pay each year to insure against a default of an issuer with that... - [Default Rates](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/default-rates): `get_default_rates`. The one-year default rates per rating of a credit rating agency, year by year from 1989. - [Deposit Facility (ECB)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/deposit-facility-ecb): `get_european_central_bank_rates`. The deposit facility rate is one of the three interest rates the ECB sets every six weeks as part of its monetary policy. - [Dollar Duration](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/dollar-duration): `get_duration`. The Dollar Duration is the price change, in currency per 100 of face value, for a one percentage point change in the yield (Fabozzi, 2007). - [Duration Metrics](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/duration-metrics): `get_duration`. The Modified Duration is the percentage change in the bond's price for a change in its yield. - [EIOPA Risk-Free Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/eiopa-risk-free-rate): `get_eiopa_risk_free_rate`. The risk-free interest rate term structures the European Insurance and Occupational Pensions Authority (EIOPA) publishes monthly. - [EIOPA Symmetric Adjustment](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/eiopa-symmetric-adjustment): `get_eiopa_symmetric_adjustment`. The symmetric adjustment of the equity capital charge of Solvency II: how much the "equity dampener" EIOPA publishes, daily from 1991, raises or lowers the... - [Effective Duration](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/effective-duration): `get_duration`. The Effective Duration measures the same percentage sensitivity by repricing the bond with its yield shifted down and up, rather than from the formula of a... - [Effective Federal Funds Rate (EFFR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/effective-federal-funds-rate-effr): `get_federal_reserve_rates`. The Federal Reserve rates as published by the Federal Reserve Bank of New York. - [Effective Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/effective-yield): `get_ice_bofa_effective_yield`. The effective yield of the ICE BofA Indices: the yield that US corporate bonds of a given maturity or rating category pay, an index of the cost of... - [Euro Interbank Offered Rate (Euribor)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/euro-interbank-offered-rate-euribor): `get_euribor_rates`. The Euribor rates, short for Euro Interbank Offered Rate: the interest rates at which a panel of European banks lend funds to one another in the interbank... - [Excess Bond Premium](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/excess-bond-premium): `get_excess_bond_premium`. The credit spread of Gilchrist and Zakrajšek (2012) and its excess bond premium, monthly from 1973, as the Federal Reserve Board updates them. - [FX Forward Rates](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/fx-forward-rates): `get_fx_forward_rates`. FX forward rates by covered interest parity: the exchange rate, agreed today, at which currencies are exchanged at a future date. - [Federal Reserve Svensson Parameters](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/federal-reserve-svensson-parameters): `get_federal_reserve_svensson_parameters`. The parameters of the Svensson curve that the Federal Reserve Board fits every day to US Treasury notes and bonds (from 1961) or to TIPS (from 1999) with... - [Federal Reserve Yield Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/federal-reserve-yield-curve): `get_federal_reserve_yield_curve`. The US Treasury zero-coupon yield curve that the Federal Reserve Board fits every day with the method of Gürkaynak, Sack and Wright. - [Financial Stress Index (CISS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/financial-stress-index-ciss): `get_financial_stress_index`. The Composite Indicator of Systemic Stress (CISS) the European Central Bank publishes daily for the euro area, its largest members, the United Kingdom, the... - [Fitted Bond Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/fitted-bond-curve): `get_fitted_bond_curve`. The Svensson Model is the Nelson-Siegel-Svensson zero rate of Svensson (1994): a level, a slope and two humps, with six parameters. - [Forward Inflation Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/forward-inflation-index): `get_forward_inflation_index`. The forward US consumer price index (CPI-U, not seasonally adjusted) of every coming month. - [Forward Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/forward-rate): `get_forward_rate`. The implied forward rates between pairs of maturities of a country's zero-coupon (spot) yield curve on a day. - [Forward Rate Agreements (FRAs)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/forward-rate-agreements-fras): `get_forward_rate_agreement`. The rates of forward rate agreements (FRAs) from a zero-coupon curve: the simple interest rate, fixed today, of a loan that starts and ends at future dates. - [Government Bond Yield Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/government-bond-yield-curve): `get_government_bond_yield_curve`. The government bond yield curve of a variety of countries: the yield of every maturity a country's government borrows at, from treasury bills to bonds of... - [HQM Corporate Bond Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/hqm-corporate-bond-spread): `get_hqm_corporate_bond_spread`. The credit spread of high quality US corporate bonds per maturity: the Treasury's High Quality Market (HQM) corporate par yield minus the Treasury constant... - [HQM Corporate Bond Yield Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/hqm-corporate-bond-yield-curve): `get_hqm_corporate_bond_yield_curve`. The High Quality Market (HQM) corporate bond yield curve of the U.S. With the historical data and an example in Python. - [I-Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/i-spread): `get_i_spread`. The I-spread (interpolated spread) of US dollar corporate bonds: the yield to maturity over the par swap rate of the bond's maturity. - [Implied Default Probability](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/implied-default-probability): `get_implied_default_probability`. The default probabilities that credit spreads imply: how likely the market prices a default of an issuer of each rating within each horizon. - [Inflation Swap Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/inflation-swap-rate): `get_inflation_swap_rate`. The zero-coupon and year-on-year inflation swap rates the government bond market implies. - [Instantaneous Forward Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/instantaneous-forward-curve): `get_instantaneous_forward_curve`. The instantaneous forward curve of a country's zero-coupon curve on a day. - [Issuer Spreads](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/issuer-spreads): `get_issuer_spreads`. Compares the credit spreads of bond issuers at the same maturities: the G-Spread (yield to maturity minus the Treasury par yield) of each issuer at, for... - [Key Rate Duration](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/key-rate-duration): `get_key_rate_duration`. The key rate durations of individual bonds on the Treasury zero-coupon curve. - [Kim-Wright Term Premium](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/kim-wright-term-premium): `get_term_premium`. The Kim-Wright Term Premium comes from the three-factor arbitrage-free model of Kim and Wright (2005), which the Federal Reserve Board publishes. - [Loan Payment](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/loan-payment): `get_loan_payment`. The monthly payment of a new 30-year fixed-rate mortgage at every weekly US mortgage rate. - [Macaulay Duration](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/macaulay-duration): `get_duration`. The Macaulay Duration is the weighted average time until the bond's cash flows arrive, each weighted by its present value as a share of the price. - [Main Refinancing Operations (ECB)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/main-refinancing-operations-ecb): `get_european_central_bank_rates`. The main refinancing operations (MRO) rate is the interest rate banks pay when they borrow money from the ECB for one week. - [Marginal Lending Facility (ECB)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/marginal-lending-facility-ecb): `get_european_central_bank_rates`. The marginal lending facility rate is the interest rate banks pay when they borrow from the ECB overnight. With the historical data and an example in Python. - [McCulloch Cubic Spline](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/mcculloch-cubic-spline): `get_fitted_bond_curve`. The McCulloch Cubic Spline fits the discount function with a cubic spline, a smooth curve made of cubic pieces joined at knots. - [Moody's Corporate Bond Yields](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/moody-s-corporate-bond-yields): `get_moodys_corporate_bond_yields`. Moody's seasoned corporate bond yields for Aaa (the highest rating) and Baa (the lowest investment grade rating) US corporate bonds. - [Nelson-Siegel Fitted Bond Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/nelson-siegel-fitted-bond-curve): `get_fitted_bond_curve`. The Nelson-Siegel Model is the three-factor zero rate of Nelson and Siegel (1987). - [Nelson-Siegel Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/nelson-siegel-model): `get_nelson_siegel_svensson`. The Nelson-Siegel Model is the three-factor curve of Nelson and Siegel (1987). - [Nelson-Siegel-Svensson](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/nelson-siegel-svensson): `get_nelson_siegel_svensson`. The Nelson-Siegel-Svensson Model (NSS) is the Nelson-Siegel Model with a second hump. With the formula, how to read it and an example in Python. - [Option Adjusted Spread (OAS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/option-adjusted-spread-oas): `get_ice_bofa_option_adjusted_spread`. The ICE BofA Option-Adjusted Spreads (OASs): the extra yield that US corporate bonds of a given maturity or rating category pay over a spot Treasury curve... - [Overnight Bank Funding Rate (OBFR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/overnight-bank-funding-rate-obfr): `get_federal_reserve_rates`. The overnight bank funding rate (OBFR) is calculated as a volume-weighted median of overnight federal funds transactions, Eurodollar transactions, and the... - [Par Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/par-yield): `get_par_yield`. The par yields of any maturity from a country's zero-coupon (spot) yield curve on a day. - [Present Value](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/present-value): `get_present_value`. The present value of individual bonds: what their coupons and principal are worth when discounted with the Treasury zero-coupon curve of the price date... - [Rate Shift Ladder](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/rate-shift-ladder): `get_rate_shift_ladder`. The parallel shift ladder of individual bonds on the Treasury zero-coupon curve. - [Rating Transition Matrix](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/rating-transition-matrix): `get_rating_transition_matrix`. The rating transition matrix of a credit rating agency: for every rating at the start of a period, the share of ratings that ended the period in each... - [Secured Overnight Financing Rate (SOFR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/secured-overnight-financing-rate-sofr): `get_federal_reserve_rates`. The SOFR is calculated as a volume-weighted median of transaction-level tri-party repo data collected from the Bank of New York Mellon as well as GCF Repo... - [Short-Rate Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/short-rate-model): `get_short_rate_model`. Calibrates the Vasicek and Cox-Ingersoll-Ross (CIR) short-rate models to the history of a country's short-term government bond yield. - [Short-Rate Simulation](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/short-rate-simulation): `get_short_rate_simulation`. Simulates the future path of a country's short-term interest rate with the Hull-White, Vasicek or Cox-Ingersoll-Ross model. - [Smith-Wilson Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/smith-wilson-curve): `get_smith_wilson_curve`. Extends a country's government bond yield curve to any maturity with the Smith-Wilson method (Smith and Wilson, 2001). - [Survival Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/survival-curve): `get_survival_curve`. Bootstraps survival curves, the probability that a US corporate issuer has not defaulted after each horizon, from the ICE BofA option-adjusted spreads. - [Swap Rates](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/swap-rates): `get_swap_rate`. The par swap rates and annuities of interest rate swaps of any maturity on a single curve. - [Swaption Prices](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/swaption-prices): `get_swaption_price`. The prices of European or Bermudan swaptions for a grid of expiries and swap tenors in a one-factor short-rate model fitted to today's government... - [Taylor Series Price Change](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/taylor-series-price-change): `get_taylor_price_change`. The percentage change in the price of individual bonds for a change in their yield, using a second-order Taylor series expansion that combines modified... - [Term Premium](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/term-premium): `get_term_premium`. The Adrian-Crump-Moench Term Premium (ACM) comes from the affine term structure model of Adrian, Crump and Moench (2013), which the Federal Reserve Bank of... - [Total Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/total-return): `get_ice_bofa_total_return`. The total return of the ICE BofA Indices: the gain of holding US corporate bonds of a given maturity or rating category, coupons and price changes included. - [Treasury Auctions](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/treasury-auctions): `get_treasury_auctions`. The results of the US Treasury auctions held between the start and end date. - [Treasury Floating Rate Notes (FRNs)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/treasury-floating-rate-notes-frns): `get_treasury_floating_rate_notes`. The discount margin, yield and durations of every US Treasury floating rate note (FRN) from its FedInvest price. - [Treasury Forward Prices](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/treasury-forward-prices): `get_treasury_forward_prices`. The forward price of every US Treasury bill, note and bond: the price for delivery at a later date at which buying the security today with money borrowed... - [Treasury Futures Basis](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/treasury-futures-basis): `get_treasury_futures_basis`. The conversion factor, basis and implied repo rate of every Treasury that can be delivered into a CME US Treasury futures contract. - [Treasury Inflation-Protected Securities (TIPS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/treasury-inflation-protected-securities-tips): `get_treasury_inflation_protected_securities`. The index ratio, inflation-adjusted price and breakeven inflation rate of every US Treasury Inflation-Protected Security (TIPS) from its FedInvest price. - [Treasury Securities](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/treasury-securities): `get_treasury_securities`. Every marketable US Treasury (bills, notes, bonds, TIPS and floating rate notes) with its price, yield to maturity and modified duration on a day, without... - [Tri-Party General Collateral Rate (TGCR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/tri-party-general-collateral-rate-tgcr): `get_federal_reserve_rates`. The TGCR is calculated as a volume-weighted median of transaction-level tri-party repo data collected from the Bank of New York Mellon. - [U.S. Treasury Par Yield Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/u-s-treasury-par-yield-curve): `get_treasury_rates`. The daily U.S. Treasury par yield curve rates as officially published by the U.S. With the historical data and an example in Python. - [Vasicek-Fong Exponential Spline](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/vasicek-fong-exponential-spline): `get_fitted_bond_curve`. The Vasicek-Fong Exponential Spline writes the discount function as a sum of exponentials. With the formula, how to read it and an example in Python. - [Yield Curve Principal Components](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/yield-curve-principal-components): `get_yield_curve_principal_components`. The principal components of a country's government bond yield curve: the few independent movements that explain nearly all of how the curve changes. - [Yield Curve Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/yield-curve-spread): `get_yield_curve_spread`. The spreads between pairs of maturities of a country's government bond yield curve on a day. - [Yield to Maturity](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/yield-to-maturity): `get_yield_to_maturity`. The yield to maturity of individual bonds from their market price: the internal rate of return of the bond, the discount rate that equates the present... - [Yield to Worst](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/yield-to-worst): `get_ice_bofa_yield_to_worst`. The semi-annual yield to worst of the ICE BofA Indices: the lowest yield US corporate bonds of a given maturity or rating category pay if their issuers... - [Z-Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/z-spread): `get_z_spread`. The zero-volatility spread (Z-spread) of individual bonds over the Treasury zero-coupon curve. - [Zero-Coupon Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/fixedincome/zero-coupon-curve): `get_zero_coupon_curve`. The zero-coupon (spot) yield curve of a country by bootstrapping its government bond par yields: the single rate that discounts a payment at each maturity. ## [Risk](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk) - [Abdi-Ranaldo Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/abdi-ranaldo-spread): `get_bid_ask_spread`. The Abdi-Ranaldo Spread of Abdi and Ranaldo (2017) adds the Close to the High and the Low. With the formula, how to read it and an example in Python. - [Absolute Value GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/absolute-value-garch): `get_garch`. The Absolute Value GARCH (AVGARCH) is the absolute value model of the family GARCH of Hentschel (1995). - [Absorption Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/absorption-ratio): `get_absorption_ratio`. The Absorption Ratio of the Toolkit's tickers: the share of their total variance that a few common drivers (the largest eigenvectors) explain, how tightly... - [Acerbi-Szekely Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/acerbi-szekely-test): `get_acerbi_szekely_test`. Backtest a Conditional Value at Risk (Expected Shortfall) model against realized returns with the Acerbi-Szekely (2014) Z2 statistic. - [Amihud Illiquidity](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/amihud-illiquidity): `get_amihud_illiquidity`. The Amihud (2002) Illiquidity ratio per asset: how much the price moves per dollar traded, high for an illiquid asset. - [Amihud Lambda](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/amihud-lambda): `get_price_impact`. The Amihud Lambda is the regression form of the illiquidity ratio of Amihud (2002), the absolute return per dollar traded, as López de Prado (2018, section... - [Amivest Liquidity Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/amivest-liquidity-ratio): `get_price_impact`. The Amivest Liquidity Ratio of Cooper, Groth and Avera (1985) is the dollar volume traded per unit of absolute return, the older relative of the Amihud... - [Asymmetric Power ARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/asymmetric-power-arch): `get_garch`. The Asymmetric Power ARCH (APARCH) of Ding, Granger and Engle (1993) models a power Delta of the volatility, estimated from the data instead of fixed at 2... - [Autocorrelation (ACF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/autocorrelation-acf): `get_autocorrelation`. The Autocorrelation Function (ACF) of each asset's daily returns: how strongly a return is related to the returns before it, for a range of lags. - [Average Drawdown](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/average-drawdown): `get_average_drawdown`. The Average Drawdown of an investment portfolio or asset's returns: how deep a typical setback is, or how far below its high the asset typically was. - [Bekker-Parkinson Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/bekker-parkinson-volatility): `get_bekker_parkinson_volatility`. The Bekker-Parkinson Volatility per asset and period: the volatility in the daily High/Low range once the bid-ask spread of Corwin and Schultz (2012) is... - [Best Fitting Copula](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/best-fitting-copula): `get_best_fitting_copula`. Which copula family best describes how ticker_a and ticker_b move together, by comparing all five supported families on their AIC (Akaike Information... - [Bid-Ask Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/bid-ask-spread): `get_bid_ask_spread`. The Efficient Discrete Generalized Estimator (EDGE) of Ardia, Guidotti and Kroencke (2024) uses all four prices of the day. - [Central Moments](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/central-moments): `get_central_moment`. A Central Moment: the average deviation of the returns of an investment portfolio or asset from their mean raised to a power, the spread, asymmetry or... - [CoVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/covar): `get_covar`. The (Delta-)CoVaR of ticker: how much worse its Value at Risk gets when conditioning_ticker is in its own distress state, the spillover of tail risk. - [Coefficient of Variation (CV)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/coefficient-of-variation-cv): `get_coefficient_of_variation`. The Coefficient of Variation (CV): how large the spread of the daily returns of an investment portfolio or asset is relative to their mean in each period. - [Component GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/component-garch): `get_garch`. The Component GARCH (CGARCH) of Engle and Lee (1999) splits the variance into a long-run component that fades slowly and a short-run component that fades... - [Component Value at Risk (cVaR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/component-value-at-risk-cvar): `get_component_value_at_risk`. The Component Value at Risk (Component VaR) of each asset in a portfolio: the part of the portfolio's VaR that each holding accounts for. - [Compounded Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/compounded-volatility): `get_volatility`. Compounded Volatility: Volatility measures the amount of dispersion or variability in returns. It is the square root of the Variance. With the formula and... - [Conditional Drawdown at Risk (CDaR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/conditional-drawdown-at-risk-cdar): `get_conditional_drawdown_at_risk`. The Conditional Drawdown at Risk (CDaR) of an investment portfolio or asset's returns. - [Conditional Expected Drawdown (CED)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/conditional-expected-drawdown-ced): `get_conditional_expected_drawdown`. The Conditional Expected Drawdown (CED) of an investment portfolio or asset's returns. - [Conditional Value at Risk (cVaR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/conditional-value-at-risk-cvar): `get_conditional_value_at_risk`. The Historical CVaR is the average of the returns at or below the Historical VaR: no distribution is assumed, the past returns are the distribution. - [Copula Parameters](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/copula-parameters): `get_copula_parameters`. Calibrate a bivariate copula between ticker_a and ticker_b: how their returns move together apart from their own distributions, including how often their... - [Copula Simulation](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/copula-simulation): `get_copula_simulation`. Simulate joint return scenarios of ticker_a and ticker_b from a bivariate copula: draws that keep how the two move together, including in their tails. - [Cornish-Fisher CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/cornish-fisher-cvar): `get_conditional_value_at_risk`. The Cornish-Fisher CVaR, also called the modified CVaR or modified Expected Shortfall, averages the Cornish-Fisher VaR over the tail. - [Cornish-Fisher VaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/cornish-fisher-var): `get_value_at_risk`. The Cornish-Fisher VaR, also called the modified VaR, corrects the Gaussian VaR for the skewness and excess kurtosis of the returns with the Cornish-Fisher... - [Correlation Dimension](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/correlation-dimension): `get_correlation_dimension`. The Correlation Dimension of each asset's log returns by the Grassberger-Procaccia algorithm. - [Corwin-Schultz Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/corwin-schultz-spread): `get_bid_ask_spread`. The Corwin-Schultz Spread of Corwin and Schultz (2012) backs out the spread from the daily High and Low only. With the formula and an example in Python. - [Detrended Fluctuation Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/detrended-fluctuation-analysis): `get_hurst_exponent`. The Detrended Fluctuation Analysis (DFA) of Peng et al. With the formula, how to read it and an example in Python. - [Downside Deviation](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/downside-deviation): `get_downside_deviation`. The Downside Deviation: how widely the returns of an investment portfolio or asset fall below a minimum acceptable return, the volatility of the losses. - [Drawdown Series](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/drawdown-series): `get_drawdown_series`. The drawdown in every period: how far an asset stands below its highest value so far, or the gain it needs to get back there. - [Drawdown Statistics](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/drawdown-statistics): `get_drawdown_statistics`. Summarize the drawdowns of each asset: how many there were, how deep they were on average, how much their depth varied, how long they took to reach the... - [Drawdown Table](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/drawdown-table): `get_drawdown_table`. List the largest drawdowns of each asset with their peak, trough and recovery dates, depth and length. - [Drawdown at Risk (DaR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/drawdown-at-risk-dar): `get_drawdown_at_risk`. The Drawdown at Risk (DaR) of an investment portfolio or asset's returns. - [EVT CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/evt-cvar): `get_conditional_value_at_risk`. The EVT CVaR uses Extreme Value Theory: it fits a Generalized Pareto Distribution to the losses beyond a high threshold only (peaks over threshold) and... - [EVT VaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/evt-var): `get_value_at_risk`. The EVT VaR uses Extreme Value Theory: it fits a Generalized Pareto Distribution to the losses beyond a high threshold only (peaks over threshold) and... - [EWMA Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/ewma-volatility): `get_ewma_volatility`. The exponentially weighted moving average (EWMA) Volatility: how volatile the daily returns of an investment portfolio or asset are now, weighing recent... - [Eckmann Lyapunov Exponent](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/eckmann-lyapunov-exponent): `get_lyapunov_exponent`. The Eckmann Lyapunov Exponent, from the method of Eckmann, Kamphorst, Ruelle and Ciliberto (1986), estimates the whole spectrum of exponents rather than... - [Entropic Drawdown at Risk (EDaR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/entropic-drawdown-at-risk-edar): `get_entropic_drawdown_at_risk`. The Entropic Drawdown at Risk (EDaR) of an investment portfolio or asset's returns. - [Entropic Risk Measure (ERM)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/entropic-risk-measure-erm): `get_entropic_risk_measure`. The Entropic Risk Measure (ERM) of an investment portfolio or asset's returns at a given risk aversion. - [Entropic Value at Risk (eVaR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/entropic-value-at-risk-evar): `get_entropic_value_at_risk`. The Entropic Value at Risk (EVaR) of an investment portfolio or asset's returns. - [Excess Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/excess-volatility): `get_excess_volatility`. The Excess Volatility: how much the returns of an investment portfolio or asset above the risk free rate fluctuate in each period. - [Expected Quadratic Shortfall (EQS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/expected-quadratic-shortfall-eqs): `get_expected_quadratic_shortfall`. The Expected Quadratic Shortfall (EQS) of an investment portfolio or asset's returns: the average squared loss in the worst alpha share of the periods. - [Expectile VaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/expectile-var): `get_value_at_risk`. The Expectile VaR is the alpha expectile of the returns: the level at which the expected gains above it, weighted by alpha, balance the expected losses... - [Exponential GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/exponential-garch): `get_garch`. The Exponential GARCH (EGARCH) of Nelson (1991) models the logarithm of the variance, which keeps the variance positive without constraints on the... - [Factor Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/factor-analysis): `get_factor_analysis`. The factor analysis (predictive power) of the risk metrics: whether the tickers that score high on a metric go on to return more than those that score low. - [Filtered Historical CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/filtered-historical-cvar): `get_conditional_value_at_risk`. The Filtered Historical CVaR, from filtered historical simulation (FHS), combines the GARCH CVaR with the Historical CVaR. - [Filtered Historical VaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/filtered-historical-var): `get_value_at_risk`. The Filtered Historical VaR, from filtered historical simulation (FHS), combines the GARCH VaR with the Historical VaR. - [Financial Turbulence](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/financial-turbulence): `get_financial_turbulence`. The Financial Turbulence of the Toolkit's tickers: how unusual their returns of a day are given their history, in the size of the moves and in how they... - [Fong-Holden-Trzcinka Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/fong-holden-trzcinka-spread): `get_bid_ask_spread`. The Fong-Holden-Trzcinka Spread of Fong, Holden and Trzcinka (2017) needs only the daily Close. With the formula, how to read it and an example in Python. - [Fractal Dimension](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/fractal-dimension): `get_fractal_dimension`. The Higuchi Fractal Dimension (HFD), introduced by Tomoyuki Higuchi in 1988 for irregular time series, measures how the length of the path grows as it is... - [Fractionally Integrated GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/fractionally-integrated-garch): `get_garch`. The Fractionally Integrated GARCH (FIGARCH) of Baillie, Bollerslev and Mikkelsen (1996) lets a shock fade hyperbolically rather than by a fixed factor per... - [GARCH CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/garch-cvar): `get_conditional_value_at_risk`. The GARCH CVaR is the conditional CVaR of the next period: it scales the average tail of the standardized innovations of a GARCH-family model with the... - [GARCH Parameters](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/garch-parameters): `get_garch_parameters`. The parameters of a GARCH model fitted to the returns: how strongly volatility reacts to a shock, how long it lasts and the level it reverts to. - [GARCH Simulation](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/garch-simulation): `get_garch_simulation`. A GARCH simulation of each asset: the spread of the returns (or the conditional volatility) a GARCH-family model fitted to its returns expects for the... - [GARCH VaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/garch-var): `get_value_at_risk`. The GARCH VaR is the conditional VaR of the next period: it scales a quantile with the volatility that a GARCH-family model forecasts from the latest returns. - [GARCH Volatility Forecast](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/garch-volatility-forecast): `get_garch_forecast`. The GARCH variance forecast (σ_2): the conditional variance a GARCH model expects for each period after the last return, as a volatility shock fades... - [GARCH Volatility Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/garch-volatility-model): `get_garch`. The Generalized Autoregressive Conditional Heteroskedasticity Model (GARCH) of Bollerslev (1986) makes the variance of a period a weighted sum of a... - [Garman-Klass Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/garman-klass-volatility): `get_volatility`. Garman-Klass Volatility: Volatility measures the amount of dispersion or variability in returns. It is the square root of the Variance. With the formula... - [Garman-Klass Yang-Zhang Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/garman-klass-yang-zhang-volatility): `get_volatility`. Garman-Klass Yang-Zhang Volatility: Volatility measures the amount of dispersion or variability in returns. It is the square root of the Variance. With... - [Gaussian CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/gaussian-cvar): `get_conditional_value_at_risk`. The Gaussian CVaR, also called the parametric or variance-covariance CVaR, assumes normally distributed returns, for which the average of the tail has a... - [Gaussian VaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/gaussian-var): `get_value_at_risk`. The Gaussian VaR, also called the parametric or variance-covariance VaR, assumes normally distributed returns. With the formula and an example in Python. - [Generalized Pareto Fit (EVT)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/generalized-pareto-fit-evt): `get_generalized_pareto_fit`. A Generalized Pareto Distribution to the losses above a threshold (Peak-over-Threshold). - [Gini Mean Difference (GMD)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/gini-mean-difference-gmd): `get_gini_mean_difference`. The Gini Mean Difference (GMD): how far apart two returns of an investment portfolio or asset lie on average, a measure of dispersion that does not square... - [Glosten-Jagannathan-Runkle GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/glosten-jagannathan-runkle-garch): `get_garch`. The Glosten-Jagannathan-Runkle GARCH (GJR-GARCH) of Glosten, Jagannathan and Runkle (1993) adds a leverage term to the GARCH. - [HAR-RV Forecast](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/har-rv-forecast): `get_har_rv_forecast`. The Corsi (2009) Heterogeneous Autoregressive Realized Volatility (HAR-RV) forecast. - [Hasbrouck Lambda](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/hasbrouck-lambda): `get_price_impact`. The Hasbrouck Lambda is the price impact that Hasbrouck (2009) estimates from daily data, with the impact growing with the square root of the dollar... - [Higher Moment Coherent Risk (HMCR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/higher-moment-coherent-risk-hmcr): `get_higher_moment_coherent_risk`. The Higher Moment Coherent Risk (HMCR) of an investment portfolio or asset's returns. - [Hill Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/hill-estimator): `get_hill_estimator`. The Hill Estimator, introduced by Bruce Hill in 1975, is the maximum likelihood estimator of the shape of a power-law tail. - [Hui-Heubel Liquidity Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/hui-heubel-liquidity-ratio): `get_price_impact`. The Hui-Heubel Liquidity Ratio of Hui and Heubel (1984) relates the price range of a period to its turnover. - [Hurst Exponent](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/hurst-exponent): `get_hurst_exponent`. The Generalized Hurst Exponent of Di Matteo, Aste and Dacorogna (2005) measures how the q-th moment of the price changes grows with the horizon over which... - [Idiosyncratic Skewness](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/idiosyncratic-skewness): `get_idiosyncratic_skewness`. The Idiosyncratic Skewness per asset and period: the skewness of the part of the returns the factors do not explain, positive for a stock with lottery-like... - [Idiosyncratic Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/idiosyncratic-volatility): `get_idiosyncratic_volatility`. The Idiosyncratic Volatility per asset and period: the volatility of the part of the returns the factors do not explain. - [Integrated GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/integrated-garch): `get_garch`. The Integrated GARCH (IGARCH) of Engle and Bollerslev (1986) restricts the weights of the last squared shock and the last variance to sum to 1, so a shock... - [Invariance Illiquidity](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/invariance-illiquidity): `get_price_impact`. The Invariance Illiquidity is the illiquidity that market microstructure invariance implies (Kyle and Obizhaeva, 2016). - [Jump Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/jump-test): `get_jump_test`. The jump test of every day from its intraday returns: whether the price jumped within the day, from how far its realized variance exceeds its bipower... - [Katz Fractal Dimension](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/katz-fractal-dimension): `get_fractal_dimension`. The Katz Fractal Dimension (KFD), from Michael Katz's 1988 analysis of waveforms, compares the total length of the path with how far it gets from its... - [Kernel CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/kernel-cvar): `get_conditional_value_at_risk`. The Kernel CVaR is a smoothed Historical CVaR: the average return below the Kernel VaR under a Gaussian kernel density of the returns. - [Kernel VaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/kernel-var): `get_value_at_risk`. The Kernel VaR is a smoothed Historical VaR: the alpha quantile of a Gaussian kernel density of the returns. With the formula and an example in Python. - [Kurtosis](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/kurtosis): `get_kurtosis`. The Kurtosis: how heavy the tails of the returns of an investment portfolio or asset are, how likely extreme returns are compared with a normal distribution. - [L-Moment Risk Measure](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/l-moment-risk-measure): `get_l_moment_risk_measure`. The L-moment Convex Risk Measure: one risk figure for the spread, skew and tails of the returns of an investment portfolio or asset, robust to outliers. - [L-Moments](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/l-moments): `get_l_moment`. An L-moment, or an L-moment ratio: the location, spread, asymmetry or tails of the returns of an investment portfolio or asset, robust to a few extreme... - [Laplace CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/laplace-cvar): `get_conditional_value_at_risk`. The Laplace CVaR assumes a Laplace (double exponential) distribution of the returns, whose tails decay exponentially and so are fatter than those of the... - [Liu Liquidity Measure](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/liu-liquidity-measure): `get_zero_trading_days`. The Liu Liquidity Measure (LM) of Liu (2006) is the number of zero-volume days, standardised to a month of 21 trading days and adjusted by the turnover to... - [Logistic CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/logistic-cvar): `get_conditional_value_at_risk`. The Logistic CVaR assumes a logistic distribution of the returns, bell-shaped like the normal distribution but with somewhat fatter tails. - [Lyapunov Exponent](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/lyapunov-exponent): `get_lyapunov_exponent`. The Rosenstein Lyapunov Exponent, from the method of Rosenstein, Collins and De Luca (1993), estimates the largest exponent by following pairs of nearby... - [Marginal Expected Shortfall (MES)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/marginal-expected-shortfall-mes): `get_marginal_expected_shortfall`. The Marginal Expected Shortfall (MES) of each ticker per period: its average return on the days the market (the benchmark) is in its worst alpha tail. - [Marginal Value at Risk (mVaR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/marginal-value-at-risk-mvar): `get_marginal_value_at_risk`. The Marginal Value at Risk (Marginal VaR) of each asset in a portfolio: how much the portfolio's VaR changes when the weight of that asset rises a little. - [Martin Liquidity Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/martin-liquidity-index): `get_price_impact`. The Martin Liquidity Index of Martin (1975) sums the squared daily price changes per share traded. - [Maximum Drawdown (MDD)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/maximum-drawdown-mdd): `get_maximum_drawdown`. The Maximum Drawdown (MDD) of an investment portfolio or asset's returns. - [Maximum Drawdown Duration](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/maximum-drawdown-duration): `get_maximum_drawdown_duration`. The Maximum Drawdown Duration of an investment portfolio or asset's returns: how many periods the largest drawdown took from its peak to its lowest point. - [Maximum Drawdown Recovery Time](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/maximum-drawdown-recovery-time): `get_maximum_drawdown_recovery_time`. The Maximum Drawdown Recovery Time of an investment portfolio or asset's returns. - [Mean Absolute Deviation (MAD)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/mean-absolute-deviation-mad): `get_mean_absolute_deviation`. The Mean Absolute Deviation (MAD): how far the daily returns of an investment portfolio or asset lie from their mean on average in each period. - [Mean Excess Function](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/mean-excess-function): `get_mean_excess_function`. The Mean Excess Function of the losses: the average amount by which the losses exceed a range of thresholds, the plot used to choose the threshold of a... - [Moment Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/moment-estimator): `get_hill_estimator`. The Moment Estimator of Dekkers, Einmahl and de Haan (1989) extends the Hill Estimator with the second moment of the same log ratios, which corrects it for... - [News Impact Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/news-impact-curve): `get_news_impact_curve`. The news impact curve of Engle and Ng (1993) of a GARCH-family model fitted to the returns of each asset. - [Nonlinear Asymmetric GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/nonlinear-asymmetric-garch): `get_garch`. The Nonlinear Asymmetric GARCH (NAGARCH) of Engle and Ng (1993) shifts the last shock before squaring it, so that the smallest reaction of the variance... - [Nonlinear GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/nonlinear-garch): `get_garch`. The Nonlinear GARCH (NGARCH) of Higgins and Bera (1992) is the symmetric power model. - [Pain Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/pain-index): `get_pain_index`. The Pain Index of an investment portfolio or asset's returns: the average depth below its high over every day of a period, the area under water per day. - [Parkinson Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/parkinson-volatility): `get_volatility`. Volatility measures the amount of dispersion or variability in returns. It is the square root of the Variance. With the formula and an example in Python. - [Partial Moments](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/partial-moments): `get_partial_moment`. The Lower (or Upper) Partial Moment: how often and how far the returns of an investment portfolio or asset fall below (or rise above) a minimum acceptable... - [Pastor-Stambaugh Liquidity](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/pastor-stambaugh-liquidity): `get_price_impact`. The Pastor-Stambaugh Liquidity of Pastor and Stambaugh (2003) measures how much of the order flow of a day reverses the next day. - [Petrosian Fractal Dimension](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/petrosian-fractal-dimension): `get_fractal_dimension`. The Petrosian Fractal Dimension (PFD), from Arthur Petrosian's 1995 work on EEG recordings, measures roughness by how often the path changes direction. - [Pickands Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/pickands-estimator): `get_hill_estimator`. The Pickands Estimator, introduced by James Pickands in 1975, estimates the shape of the tail from three order statistics only, the k-th, 2k-th and 4k-th... - [Price Delay](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/price-delay): `get_price_delay`. The price delay of Hou and Moskowitz (2005) per asset and period: how much of the market's news the price takes up only in the weeks after, a measure of... - [Price Impact](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/price-impact): `get_price_impact`. The Kyle Lambda is the price impact of the model of Kyle (1985), in which market makers cannot tell informed from uninformed orders and move the price by... - [Realized GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/realized-garch): `get_garch`. The Realized GARCH of Hansen, Huang and Shek (2012) adds a second source of information on the volatility, a realized measure x_t of every period, and... - [Realized Variance](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/realized-variance): `get_realized_variance`. The Realized Variance of every day from its intraday returns: how much the price moved within the day, split into the upside and downside semivariance and... - [Rescaled Range Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/rescaled-range-analysis): `get_hurst_exponent`. The Rescaled Range Analysis (R/S analysis) is the original method of Hurst (1951), applied to prices by Mandelbrot and Wallis (1969) and Peters (1994). - [Return Distribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/return-distribution): `get_return_distribution`. The Return Distribution: how many of each asset's returns fall in each bin of equal width, the table behind a histogram of the returns. - [Return-to-Turnover Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/return-to-turnover-ratio): `get_price_impact`. The Return-to-Turnover Ratio of Florackis, Gregoriou and Kostakis (2011) is the Amihud illiquidity ratio with the turnover of the day in place of its... - [Risk Range](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/risk-range): `get_risk_range`. A Range measure: how far the gain tail of the returns of an investment portfolio or asset lies from its loss tail. With the formula and an example in Python. - [Rogers-Satchell Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/rogers-satchell-volatility): `get_volatility`. Rogers-Satchell Volatility: Volatility measures the amount of dispersion or variability in returns. It is the square root of the Variance. With the... - [Roll Impact](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/roll-impact): `get_price_impact`. The Roll Impact divides the bid-ask spread of Roll (1984) by the dollar volume, as López de Prado (2018, section 19.3.2) proposes. - [Roll Spread](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/roll-spread): `get_roll_spread`. The Roll (1984) implied bid-ask spread per asset: the cost of a round trip implied by the bounce of the price between the bid and the ask. - [SRISK](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/srisk): `get_srisk`. SRISK, the capital each firm is expected to need in a crisis, per period, with the Long-Run Marginal Expected Shortfall (LRMES) it is based on and each... - [Share Turnover](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/share-turnover): `get_share_turnover`. The Share Turnover per asset and period: the number of shares traded relative to the number of shares outstanding, high for a liquid asset. - [Skewness](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/skewness): `get_skewness`. The Skewness: how asymmetric the returns of an investment portfolio or asset are, negative when the large deviations from the mean are losses. - [Skewness-Kurtosis Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/skewness-kurtosis-ratio): `get_skewness_kurtosis_ratio`. The Skewness-Kurtosis Ratio: how lopsided the returns of an investment portfolio or asset are relative to how heavy their tails are, higher being better. - [Student-T CVaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/student-t-cvar): `get_conditional_value_at_risk`. The Student-T CVaR averages the tail of a Student-T distribution fitted to the returns, whose fat tails suit financial returns better than the normal... - [Student-T VaR](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/student-t-var): `get_value_at_risk`. The Student-T VaR takes the quantile of a Student-T distribution fitted to the returns, whose fat tails suit financial returns better than the normal... - [Tail Dependence Coefficient](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/tail-dependence-coefficient): `get_tail_dependence_coefficient`. The Upper and Lower Tail Dependence Coefficients between ticker_a and ticker_b. - [Tail Gini](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/tail-gini): `get_tail_gini`. The Tail Gini: the loss in the worst tail of the returns of an investment portfolio or asset, weighing the worst returns within that tail most. - [Tail Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/tail-ratio): `get_tail_ratio`. The Tail Ratio: how large the best returns of an investment portfolio or asset are compared with its worst returns. With the formula and an example in Python. - [Threshold GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/threshold-garch): `get_garch`. The Threshold GARCH (TGARCH) of Zakoian (1994) models the conditional volatility rather than the variance, piecewise linear in the last shock with a... - [Ulcer Index (UI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/ulcer-index-ui): `get_ulcer_index`. The Ulcer Index of an investment portfolio or asset's returns: how deep and how long its drawdowns are, the root mean square of the declines from a recent... - [Upside Deviation](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/upside-deviation): `get_upside_deviation`. The Upside Deviation: how widely the returns of an investment portfolio or asset rise above a minimum acceptable return, the volatility an investor welcomes. - [Value at Risk (VaR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/value-at-risk-var): `get_value_at_risk`. The Historical VaR is the empirical quantile of the returns: no distribution is assumed, the past returns are the distribution. - [Value at Risk Backtest](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/value-at-risk-backtest): `get_var_backtest`. Backtest a Value at Risk model against realized returns: whether its breaches come as often and as independently as they should. - [Variance](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/variance): `get_variance`. The Variance: how widely the daily returns of an investment portfolio or asset spread around their mean in each period. - [Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/volatility): `get_volatility`. The Volatility: how much the returns of an investment portfolio or asset fluctuate in each period, from the daily prices. - [Volatility Skewness](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/volatility-skewness): `get_volatility_skewness`. The Volatility Skewness or Variability Skewness: whether the returns of an investment portfolio or asset spread out more on the gain side than on the loss... - [Volume-Synchronized Probability of Informed Trading (VPIN)](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/volume-synchronized-probability-of-informed-trading-vpin): `get_vpin`. The Volume-Synchronized Probability of Informed Trading (VPIN) of Easley, López de Prado and O'Hara (2012) per asset and day, from daily bars. - [Worst Realization](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/worst-realization): `get_worst_realization`. The Worst Realization: the lowest return of an investment portfolio or asset, the loss on the worst day (or week, month) of the sample. - [Yang-Zhang Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/yang-zhang-volatility): `get_volatility`. Yang-Zhang Volatility: Volatility measures the amount of dispersion or variability in returns. It is the square root of the Variance. With the formula and... - [Zero Trading Days](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/zero-trading-days): `get_zero_trading_days`. The Zero Return Days measure is the share of the trading days of a period on which the price does not change. With the formula and an example in Python. - [Zero Volume Days](https://www.jeroenbouma.com/projects/financetoolkit/docs/risk/zero-volume-days): `get_zero_trading_days`. The Zero Volume Days measure is the share of the trading days of a period on which the asset does not trade at all, the count that Liu (2006) builds his... ## [Performance](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance) - [52-Week High Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/52-week-high-ratio): `get_52_week_high_ratio`. The 52-Week High Ratio of each ticker: its price as a fraction of its highest price of the last year, how close it trades to the anchor investors compare... - [Active Premium](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/active-premium): `get_alpha`. The Active Premium is the difference between the annualized return of an asset and that of its benchmark over the whole date range, the annualized active... - [Adjusted Sharpe Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/adjusted-sharpe-ratio): `get_sharpe_ratio`. The Adjusted Sharpe Ratio of Pezier and White (2008) corrects the Sharpe Ratio for the skewness and kurtosis of the returns. - [Adjusted Sortino Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/adjusted-sortino-ratio): `get_sortino_ratio`. The Adjusted Sortino Ratio is the Sortino Ratio divided by the square root of 2, as Jack Schwager proposed to make it comparable with the Sharpe ratio. - [Alpha](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/alpha): `get_alpha`. The Alpha is the plain difference between the return of an asset and that of its benchmark over the same period, also called the active return. - [Alternative Jensen Alpha](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/alternative-jensen-alpha): `get_appraisal_ratio`. The Alternative Jensen Alpha is the Jensen Alpha per unit of systematic risk, the Beta times the volatility of the benchmark, the other way Bacon (2008)... - [Appraisal Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/appraisal-ratio): `get_appraisal_ratio`. The Appraisal Ratio of Treynor and Black (1973) is the Jensen Alpha divided by the specific risk, the standard deviation of the residuals of the CAPM... - [Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/beta): `get_beta`. The Ordinary Least Squares Beta (OLS Beta) is the textbook Beta: the slope of the least squares regression of the asset returns on the benchmark returns. - [Beta Fragility](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/beta-fragility): `get_beta_fragility`. The beta fragility heuristic of an investment portfolio or asset, the stress-testing measure of Taleb, Canetti, Kinda, Loukoianova and Schmieder (2012). - [Beta-Implied Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/beta-implied-return): `get_beta_implied_return`. The Beta-Implied Return, the part of an asset's return that its Beta to the benchmark explains, and the Residual, the part that is the asset's own. - [Blume Adjusted Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/blume-adjusted-beta): `get_beta`. The Blume Adjusted Beta pulls the Ordinary Least Squares Beta a third of the way towards 1. With the formula, how to read it and an example in Python. - [Bootstrap Statistics](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/bootstrap-statistics): `get_bootstrap_statistics`. How much the performance statistics of the history could have differed by chance. - [Bull and Bear Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/bull-and-bear-beta): `get_bull_bear_beta`. The bull and bear market Beta and Alpha and the Timing Ratio of an investment portfolio or asset. - [Burke Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/burke-ratio): `get_burke_ratio`. The Burke Ratio: the excess return an asset earns per unit of the square root of its summed squared drawdowns, which weighs deep drawdowns more than... - [Calendar Returns](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/calendar-returns): `get_calendar_returns`. The calendar returns of every ticker: the return of every month with the years as the rows and the months as the columns, and the return of the whole year... - [Calmar Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/calmar-ratio): `get_calmar_ratio`. The Calmar Ratio: the return an asset earns per unit of its Maximum Drawdown, how well the return pays for the worst fall. - [Capital Asset Pricing Model (CAPM)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/capital-asset-pricing-model-capm): `get_capital_asset_pricing_model`. The Capital Asset Pricing Model (CAPM): the return an asset should have earned given its Beta and what the market returned, the yardstick its actual return... - [Capital Market Line](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/capital-market-line): `get_capital_market_line`. The Capital Market Line and Security Market Line of the benchmark and where an investment portfolio or asset stands against them (Sharpe, 1964), with the... - [Capture Ratios](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/capture-ratios): `get_capture_ratios`. The capture ratios and the up and down statistics of an investment portfolio or asset against its benchmark in one table. - [Carhart Four-Factor Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/carhart-four-factor-model): `get_carhart_four_factor_model`. The Carhart four factor model: how much of each asset's excess return the market, size, value and momentum factors explain, and its exposure to each of them. - [Cokurtosis](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/cokurtosis): `get_cokurtosis`. The co-kurtosis of each asset with the benchmark: how the asset's return moves with the cubed moves of the market, i.e. how much it shares the market's... - [Compound Growth Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/compound-growth-rate): `get_compound_growth_rate`. The Compound Growth Rate (CGR): the constant rate per period at which an investment would have grown from its first to its last value, for yearly... - [Correlation Matrix](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/correlation-matrix): `get_correlation_matrix`. The full pairwise Correlation Matrix across all assets (and the benchmark) in the Toolkit instance, based on the returns at the frequency given by period. - [Coskewness](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/coskewness): `get_coskewness`. The co-skewness of each asset with the benchmark: how the asset's return moves with the squared, i.e. large, moves of the market in either direction. - [Covariance Matrix](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/covariance-matrix): `get_covariance_matrix`. The full pairwise Covariance Matrix across all assets (and the benchmark) in the Toolkit instance, based on the returns at the frequency given by period. - [Deflated Sharpe Ratio (DSR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/deflated-sharpe-ratio-dsr): `get_sharpe_ratio`. The Deflated Sharpe Ratio (DSR) of Bailey and López de Prado (2014) is the Probabilistic Sharpe Ratio against the best Sharpe Ratio that luck alone would... - [Dimson Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/dimson-beta): `get_beta`. The Dimson Beta adds the slopes on the benchmark returns of the periods before and after to the slope on the same period. - [Downside Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/downside-beta): `get_beta`. The Downside Beta is the Ordinary Least Squares Beta over the periods in which the benchmark fell only. With the formula and an example in Python. - [Downside Capture Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/downside-capture-ratio): `get_downside_capture_ratio`. The Downside Capture Ratio: how much of the benchmark's loss an asset takes in the periods the benchmark falls, below 1 when it loses less than the market... - [Excess Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/excess-return): `get_excess_return`. The excess return of each period: how much each asset returned above the risk free rate over each week, month, quarter or year, compounded from the daily... - [Factor Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/factor-analysis): `get_factor_analysis`. The factor analysis (predictive power) of the performance metrics, or of a factor of your own. - [Factor Asset Correlations](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/factor-asset-correlations): `get_factor_asset_correlations`. The factor asset correlations: how closely each asset's excess returns move with each of the Fama and French five factors within each period. - [Factor Correlations](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/factor-correlations): `get_factor_correlations`. The factor correlations: how closely the Fama and French five factors move with each other within each period, which shows how much of what one factor... - [Fama Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/fama-beta): `get_beta`. The Fama Beta is the Beta the asset would have if it moved perfectly with the benchmark: its total risk in units of market risk. - [Fama Decomposition](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/fama-decomposition): `get_fama_decomposition`. The Fama (1972) decomposition: Jensen's Alpha split into Selectivity, the return above what a fully diversified portfolio with the same total risk would... - [Fama and French Model (FF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/fama-and-french-model-ff): `get_fama_and_french_model`. The Fama and French five factor model: how much of each asset's excess return the market, size, value, profitability and investment factors explain, and... - [Forecast Cone](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/forecast-cone): `get_forecast_cone`. A forecast cone of the growth of 1 over the coming trading days, bootstrapped from the daily returns. - [Frazzini-Pedersen Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/frazzini-pedersen-beta): `get_beta`. The Frazzini-Pedersen Beta is the Beta of the betting against beta factor of Frazzini and Pedersen (2014). - [GRS Test (Gibbons-Ross-Shanken)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/grs-test-gibbons-ross-shanken): `get_grs_test`. The Gibbons, Ross and Shanken (GRS) test: whether the Fama and French factors explain the returns of all the Toolkit's tickers together, judged by whether... - [Gain-to-Pain Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/gain-to-pain-ratio): `get_gain_to_pain_ratio`. The Gain-to-Pain Ratio: the sum of the returns divided by the sum of the absolute losses, how much an asset gained for the losses it went through. - [Henriksson-Merton Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/henriksson-merton-model): `get_market_timing_model`. The Henriksson-Merton Model of Henriksson and Merton (1981) models timing as a switch between two Betas, one for falling and one for rising markets, rather... - [Information Discreteness](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/information-discreteness): `get_information_discreteness`. The Information Discreteness of each ticker: whether its momentum return of the last year came in many small daily moves (continuous information) or in a... - [Information Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/information-ratio): `get_information_ratio`. The Information Ratio (IR): the return an asset earns above its benchmark per unit of Tracking Error, how consistently it beats the benchmark. - [Intermediary Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/intermediary-beta): `get_intermediary_beta`. The Intermediary (Broker-Dealer Leverage) Beta of Adrian, Etula and Muir (2014) per ticker and quarter. - [Intermediate Momentum](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/intermediate-momentum): `get_momentum`. The Intermediate Momentum is the return over months 12 to 7 before month t, the first half of the momentum year. With the formula and an example in Python. - [Jensen Alpha](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/jensen-alpha): `get_alpha`. The Jensen Alpha is the return of an asset above the return that the Capital Asset Pricing Model expects for its Beta. - [Kappa Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/kappa-ratio): `get_kappa_ratio`. The Kappa Ratio: the excess return an asset earns per unit of the lower partial moment of a chosen order, a generalization of the Sortino ratio that weighs... - [Kelly Criterion](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/kelly-criterion): `get_kelly_criterion`. The Kelly Criterion, the share of capital to put at risk that maximizes the expected logarithmic growth of wealth, from the returns of an investment... - [Ledoit-Wolf Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/ledoit-wolf-test): `get_sharpe_ratio_difference_test`. The Ledoit-Wolf Test of Ledoit and Wolf (2008) replaces that standard error with a heteroskedasticity and autocorrelation consistent (HAC) one, so that it... - [Liquidity Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/liquidity-beta): `get_liquidity_beta`. The Liquidity Beta of Pastor and Stambaugh (2003) per ticker and month. - [Lo Annualized Sharpe Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/lo-annualized-sharpe-ratio): `get_sharpe_ratio`. The Lo Adjusted Sharpe Ratio is the annualized Sharpe Ratio of Lo (2002), with the annualization corrected for serially correlated returns. - [Long-Term Reversal](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/long-term-reversal): `get_momentum`. The Long-Term Reversal is the return over months 60 to 13 before month t, the four years before the momentum year. With the formula and an example in Python. - [M2 Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/m2-ratio): `get_m2_ratio`. The M2 Ratio (Modigliani-Modigliani Measure): the return an asset would have earned at the volatility of the benchmark, which puts its risk-adjusted... - [Market Timing Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/market-timing-model): `get_market_timing_model`. The Treynor-Mazuy Model of Treynor and Mazuy (1966) adds the square of the benchmark excess return to the regression. - [Maximum Daily Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/maximum-daily-return): `get_maximum_daily_return`. MAX, the largest daily return of each ticker within each period (or the average of the few largest). - [Medium-Term Reversal](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/medium-term-reversal): `get_momentum`. The Medium-Term Reversal is the return over months 18 to 13 before month t, the half year before the momentum year, as defined in the open source asset... - [Minimum Track Record Length](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/minimum-track-record-length): `get_minimum_track_record_length`. The Minimum Track Record Length (MinTRL): how many return observations are needed before the measured Sharpe ratio is, with the given confidence, above the... - [Modified Jensen Alpha](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/modified-jensen-alpha): `get_appraisal_ratio`. The Modified Jensen Alpha is the Jensen Alpha per unit of Beta, one of the ways Bacon (2008) scales the Jensen Alpha by risk. - [Momentum](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/momentum): `get_momentum`. The Twelve-Minus-One Momentum is the return over the past twelve months leaving out the most recent one, the momentum signal of Jegadeesh and Titman (1993)... - [Morningstar Risk](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/morningstar-risk): `get_morningstar_risk`. Morningstar Risk, the return a risk-averse investor would give up to remove the variation of the returns. - [Morningstar Risk-Adjusted Return (MRAR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/morningstar-risk-adjusted-return-mrar): `get_morningstar_risk_adjusted_return`. The Morningstar Risk-Adjusted Return (MRAR): the return that penalizes the variation of the returns as a risk-averse investor would, the measure... - [Off-Season Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/off-season-return): `get_momentum`. The Off-Season Return is a stock's average return in the other months of the same years, all months of years K_1 to K_2 back except the same calendar month. - [Omega Excess Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/omega-excess-return): `get_omega_excess_return`. The Omega Excess Return of an investment portfolio or asset, its return minus a charge for its downside risk, priced at the downside risk of the benchmark. - [Omega Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/omega-ratio): `get_omega_ratio`. The Omega Ratio: the probability-weighted gains above a threshold divided by the probability-weighted losses below it, a ratio of upside to downside that... - [Outperformance Probability](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/outperformance-probability): `get_outperformance_probability`. The probability of outperformance of an investment portfolio or asset: the share of all windows of a given number of periods (for example every 12... - [Pain Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/pain-ratio): `get_pain_ratio`. The Pain Ratio: the excess return an asset earns per unit of the Pain Index, the average depth of its drawdowns over every day. - [Probabilistic Adjusted Sortino Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/probabilistic-adjusted-sortino-ratio): `get_sortino_ratio`. The Probabilistic Adjusted Sortino Ratio is the same probability for the Adjusted Sortino Ratio, the Sortino Ratio divided by the square root of 2, as... - [Probabilistic Momentum](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/probabilistic-momentum): `get_probabilistic_momentum`. The Probabilistic Momentum of Varadi (2014): the confidence that an asset outperforms the benchmark, the probability under Student's t distribution that... - [Probabilistic Sharpe Ratio (PSR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/probabilistic-sharpe-ratio-psr): `get_sharpe_ratio`. The Probabilistic Sharpe Ratio (PSR) of Bailey and López de Prado (2012) is the probability that the true Sharpe Ratio of an asset is above a benchmark... - [Probabilistic Sortino Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/probabilistic-sortino-ratio): `get_sortino_ratio`. The Probabilistic Sortino Ratio is the probability that the true Sortino Ratio of an asset is above zero, with the standard error of the Probabilistic... - [Probability of Backtest Overfitting (PBO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/probability-of-backtest-overfitting-pbo): `get_probability_of_backtest_overfitting`. The Probability of Backtest Overfitting (PBO) of picking the ticker with the best Sharpe ratio. - [Prospect Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/prospect-ratio): `get_prospect_ratio`. The Prospect Ratio of an investment portfolio or asset's returns, a Sortino-type ratio in which losses weigh more heavily than gains, following the loss... - [R-Squared](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/r-squared): `get_r_squared`. The R-squared of an investment portfolio or asset against its benchmark. - [Rachev Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/rachev-ratio): `get_rachev_ratio`. The Rachev Ratio (R-Ratio): the average of the best returns in the right tail divided by the average loss in the left tail, how large the extreme gains are... - [Residual Momentum](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/residual-momentum): `get_residual_momentum`. The Residual Momentum of each ticker per month: the momentum of the part of its returns that the Fama and French three factors do not explain, standardized... - [Return Concentration](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/return-concentration): `get_return_concentration`. The concentration of the returns of an investment portfolio or asset, as López de Prado measures a strategy's bets. - [Return Seasonality](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/return-seasonality): `get_momentum`. The Return Seasonality is a stock's average return in the same calendar month of earlier years. With the formula, how to read it and an example in Python. - [Return Statistics](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/return-statistics): `get_return_statistics`. The statistics traders report about the returns of an investment portfolio or asset. - [Returns](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/returns): `get_returns`. The returns of each period: how much the value of each asset changed over each week, month, quarter or year, compounded from the daily returns. - [Risk Decomposition](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/risk-decomposition): `get_risk_decomposition`. The systematic, specific and total risk of an investment portfolio or asset. - [Risk Measure Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/risk-measure-ratio): `get_risk_measure_ratio`. The mean excess return per unit of any risk measure of the risk module. - [Risk-Return Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/risk-return-ratio): `get_risk_return_ratio`. The risk-return ratio of an investment portfolio or asset: its mean return per unit of volatility, the Sharpe ratio without the risk free rate. - [Roy's Safety-First Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/roy-s-safety-first-ratio): `get_safety_first_ratio`. Roy's Safety-First Ratio: how many standard deviations the mean return lies above a minimum acceptable return. - [STARR Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/starr-ratio): `get_starr_ratio`. The STARR (Stable Tail Adjusted Return Ratio): the excess return an asset earns per unit of Conditional Value at Risk, the average loss in the tail. - [Scholes-Williams Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/scholes-williams-beta): `get_beta`. The Scholes-Williams Beta corrects for nonsynchronous trading as well, with three simple regressions instead of one multiple regression. - [Serenity Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/serenity-index): `get_serenity_index`. The Serenity Index (Serenity Ratio) of an investment portfolio or asset, KeyQuant's excess return per unit of drawdown risk. - [Sharpe Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/sharpe-ratio): `get_sharpe_ratio`. The Sharpe Ratio is the average excess return of an asset over the risk free rate divided by the standard deviation of that excess return. - [Sharpe Ratio Difference Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/sharpe-ratio-difference-test): `get_sharpe_ratio_difference_test`. The Jobson-Korkie-Memmel Test (JKM test) is the test of Jobson and Korkie (1981) with the correction of Memmel (2003). - [Sharpe Ratio Standard Error](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/sharpe-ratio-standard-error): `get_sharpe_ratio_standard_error`. The standard error of the Sharpe ratio: how far the measured Sharpe ratio may lie from the true one. With the formula and an example in Python. - [Short-Term Reversal](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/short-term-reversal): `get_momentum`. The Short-Term Reversal is the return of the most recent month. With the formula, how to read it and an example in Python. - [Six-Minus-One Momentum](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/six-minus-one-momentum): `get_momentum`. The Six-Minus-One Momentum is the return over the past six months leaving out the most recent one, the six-month formation period that Jegadeesh and Titman... - [Smart Sharpe Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/smart-sharpe-ratio): `get_sharpe_ratio`. The Smart Sharpe Ratio of quantstats divides the Sharpe Ratio by an autocorrelation penalty, so that serially correlated returns no longer flatter it. - [Smart Sortino Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/smart-sortino-ratio): `get_sortino_ratio`. The Smart Sortino Ratio of quantstats divides the Sortino Ratio by the autocorrelation penalty that also gives the Smart Sharpe Ratio, so that serially... - [Smoothing Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/smoothing-index): `get_smoothing_index`. The Smoothing Index of Getmansky, Lo and Makarov (2004), how much the returns look smoothed. - [Sortino Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/sortino-ratio): `get_sortino_ratio`. The Sortino Ratio is the average excess return of an asset over the risk free rate divided by the downside deviation of that excess return. - [Stability of Returns](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/stability-of-returns): `get_stability_of_returns`. The stability of the returns of an investment portfolio or asset: how closely its growth follows a straight line on a logarithmic scale, a constant rate of... - [Sterling Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/sterling-ratio): `get_sterling_ratio`. The Sterling Ratio: the return an asset earns per unit of the average depth of its deepest drawdowns, a Calmar ratio that rests on more than one drawdown. - [Strategy Risk](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/strategy-risk): `get_strategy_risk`. The strategy risk of López de Prado for an investment portfolio or asset. - [Style Analysis](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/style-analysis): `get_style_analysis`. The returns-based style analysis (Sharpe, 1992) of every ticker: the mix of style indices, such as growth and value, large and small caps or bonds, whose... - [Time-Series Momentum](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/time-series-momentum): `get_time_series_momentum`. The Time Series Momentum position of each ticker: long when its excess return of the last year was positive and short when it was negative, scaled to a... - [Tracking Error](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/tracking-error): `get_tracking_error`. The Tracking Error: the volatility of the difference between an asset's returns and those of its benchmark, how closely the asset follows the benchmark. - [Trailing Returns](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/trailing-returns): `get_trailing_returns`. The trailing returns of every ticker up to its last close: month to date, the last 3 and 6 months, year to date, the last year, the last 3, 5 and 10 years... - [Treynor Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/treynor-ratio): `get_treynor_ratio`. The Treynor Ratio: the excess return an asset earns per unit of market risk (Beta), which judges its return against the risk that diversification cannot... - [Ulcer Performance Index (UPI)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/ulcer-performance-index-upi): `get_ulcer_performance_index`. The Ulcer Performance Index (UPI), also called the Martin ratio: the excess return an asset earns per unit of the Ulcer Index, the depth and length of its... - [Upside Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/upside-beta): `get_beta`. The Upside Beta is the Ordinary Least Squares Beta over the periods in which the benchmark rose only. With the formula and an example in Python. - [Upside Capture Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/upside-capture-ratio): `get_upside_capture_ratio`. The Upside Capture Ratio: how much of the benchmark's return an asset captures in the periods the benchmark rises, above 1 when it gains more than the... - [Upside Potential Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/upside-potential-ratio): `get_upside_potential_ratio`. The Upside Potential Ratio: the average gain above a minimum acceptable return per unit of downside deviation below it, how much upside an asset offers for... - [Variability-Weighted Return (VWR)](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/variability-weighted-return-vwr): `get_variability_weighted_return`. The Variability-Weighted Return (VWR) of an investment portfolio or asset. - [Vasicek Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/vasicek-beta): `get_beta`. The Vasicek Beta shrinks the Ordinary Least Squares Beta towards the average Beta of the assets, by how uncertain the estimate is. - [Win Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/win-rate): `get_win_rate`. The Win Rate of an investment portfolio or asset against its benchmark. - [d Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/performance/d-ratio): `get_d_ratio`. The d ratio of an investment portfolio or asset's returns, the size of its losses relative to its gains, each weighted by how often they occur. ## [Econometrics](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics) - [ARCH-LM Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/arch-lm-test): `get_arch_lm_test`. Engle's ARCH-LM test: whether the volatility of every asset's returns clusters, with large squared returns following large ones, or the weighted... - [ARDL Bounds Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/ardl-bounds-test): `get_ardl_bounds_test`. The ARDL bounds test for every ordered pair of tickers: whether a long-run relation runs from the second ticker to the first, without first having to... - [ARIMA Forecast](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/arima-forecast): `get_arima_forecast`. An ARIMA(p, d, q) model to every ticker's price series and forecast it: the future path of each series from its own past values and past forecast errors. - [Anatolyev-Gerko Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/anatolyev-gerko-test): `get_directional_accuracy_test`. The Anatolyev-Gerko Test (Anatolyev and Gerko, 2005) weighs every sign by the size of the return. - [Anderson-Darling Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/anderson-darling-test): `get_normality_test`. The Anderson-Darling Test (Anderson and Darling, 1952 and 1954) measures the distance between the empirical distribution of the standardized returns and... - [Approximate Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/approximate-entropy): `get_entropy`. The Approximate Entropy (ApEn) of Pincus (1991) is the average logarithmic likelihood that stretches of m values that are alike stay alike at the next value. - [BDS Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/bds-test): `get_bds_test`. The BDS test of every asset's returns: whether they are independent and identically distributed, against any kind of dependence, linear or nonlinear. - [Bartlett Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/bartlett-test): `get_two_sample_t_test`. The Bartlett Test of Bartlett (1937) asks whether two samples have equal variances by comparing the log of the pooled variance with the logs of the... - [Berkowitz Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/berkowitz-test): `get_berkowitz_test`. Berkowitz's likelihood ratio test of the one-period-ahead density forecasts of a return model. - [Binary Choice Regression](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/binary-choice-regression): `get_binary_choice_regression`. The Logit Model, introduced by Berkson (1944), uses the logistic function as its link. - [Box-Pierce Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/box-pierce-test): `get_ljung_box_test`. The Box-Pierce Test (Box and Pierce, 1970) is the original portmanteau test, introduced to check the residuals of ARIMA models. - [Breusch-Godfrey Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/breusch-godfrey-test): `get_durbin_watson_test`. The Breusch-Godfrey Test of Breusch (1978) and Godfrey (1978) is a Lagrange multiplier test of autocorrelation up to any number of lags p, which stays... - [Brown-Forsythe Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/brown-forsythe-test): `get_two_sample_t_test`. The Brown-Forsythe Test of Brown and Forsythe (1974) is the Levene Test centred on the median instead of the mean. - [Bubble Episodes](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/bubble-episodes): `get_bubble_episodes`. Date-stamp the explosive episodes (bubbles) of the log prices, per asset, with the backward SADF (BSADF) sequence of Phillips, Shi and Yu (2015) or the... - [Bubble Test (GSADF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/bubble-test-gsadf): `get_bubble_test`. The GSADF test of Phillips, Shi and Yu (2015) or the SADF test of Phillips, Wu and Yu (2011) for explosive behaviour, a bubble, in the log prices, per asset. - [CUSUM Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/cusum-test): `get_cusum_test`. The OLS-CUSUM Test (Ploberger and Krämer, 1992) cumulates the residuals of the model fitted on the whole sample, here the deviations of the returns from... - [CUSUM of Squares Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/cusum-of-squares-test): `get_cusum_test`. The CUSUM of Squares Test (Brown, Durbin and Evans, 1975) asks whether the variance, not the mean, stayed stable. - [Canonical Cointegrating Regression](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/canonical-cointegrating-regression): `get_cointegrating_regression`. The Canonical Cointegrating Regression (CCR) of Park (1992) transforms both series before the regression instead of correcting the estimates afterwards. - [Change Points](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/change-points): `get_change_points`. Find the change points of every asset's series: the dates at which its mean, its volatility or both change. With the formula and an example in Python. - [Chow Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/chow-test): `get_chow_test`. The Chow Test of Chow (1960) checks for a break at a date chosen in advance. With the test statistic, how to read the p-value and an example in Python. - [Chow-Denning Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/chow-denning-test): `get_variance_ratio_test`. The Chow-Denning Test (Chow and Denning, 1993) tests the variance ratios of several horizons at once. With how to read the p-value and an example in Python. - [Chow-Dickey-Fuller Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/chow-dickey-fuller-test): `get_chow_dickey_fuller_test`. The Chow-type Dickey-Fuller test for a switch from a random walk to explosive behaviour at an unknown date, per asset (López de Prado, 2018, section... - [Chu-Stinchcombe-White Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/chu-stinchcombe-white-test): `get_cusum_test`. The Chu-Stinchcombe-White Test (Chu, Stinchcombe and White, 1996) monitors a series for a structural change as new observations arrive. - [Clark-West Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/clark-west-test): `get_clark_west_test`. The Clark-West test per asset: whether an autoregressive forecast predicts the next return better than the historical average, the model it nests. - [Classical Decomposition](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/classical-decomposition): `get_seasonal_decomposition`. The Classical Decomposition estimates the trend with a centred moving average over one season and the seasonal part with the average deviation from that... - [Coherence](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/coherence): `get_coherence`. The coherence and phase of every series with another: how strongly the two move together at each cycle length, a correlation per frequency, and which one... - [Cointegrating Regression](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/cointegrating-regression): `get_cointegrating_regression`. The Dynamic OLS (DOLS) of Stock and Watson (1993) corrects the regression by adding leads and lags of the changes of the regressor. - [Connectedness (Diebold-Yilmaz)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/connectedness-diebold-yilmaz): `get_connectedness`. The Diebold-Yilmaz connectedness of the tickers: how much of each ticker's forecast error variance comes from shocks to the other tickers, in total, from... - [Correlation](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/correlation): `get_correlation`. The Pearson Correlation of every series with another: how closely they move together, with the benchmark, another ticker of the Toolkit (or series of the... - [Cox Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/cox-test): `get_non_nested_test`. The Cox Test of Cox (1961, 1962), in the form of Pesaran (1974) for linear regressions, compares the log-likelihoods of the two models with the difference... - [D'Agostino-Pearson Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/d-agostino-pearson-test): `get_normality_test`. The D'Agostino-Pearson Test (D'Agostino and Pearson, 1973) combines the skewness and the kurtosis of the returns into one omnibus statistic. - [DCC-GARCH](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/dcc-garch): `get_dcc_garch`. The dynamic conditional correlation between every pair of assets: how it changes over time, with the DCC-GARCH(1,1) model of Engle (2002). - [DF-GLS Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/df-gls-test): `get_unit_root_test`. The DF-GLS Test of Elliott, Rothenberg and Stock (1996) is the Augmented Dickey-Fuller Test on a series whose constant and trend were removed by... - [Damped Trend Method](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/damped-trend-method): `get_exponential_smoothing_forecast`. The Damped Trend Method of Gardner and McKenzie (1985) adds a damping parameter phi to the trend of the Holt Linear Trend Method, so that the trend fades... - [Data Snooping Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/data-snooping-test): `get_data_snooping_test`. The Superior Predictive Ability Test (SPA) of Hansen (2005) refines the Reality Check in two ways. - [Diebold-Mariano Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/diebold-mariano-test): `get_diebold_mariano_test`. The Diebold-Mariano (1995) test per asset: whether one of two volatility forecasting methods predicts the realized (squared return) Variance more accurately. - [Difference-in-Differences (DiD)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/difference-in-differences-did): `get_difference_in_differences`. A Difference-in-Differences (DiD) regression: the effect of an event on the treated tickers, as their change in return beyond that of the control tickers. - [Directional Accuracy Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/directional-accuracy-test): `get_directional_accuracy_test`. The Pesaran-Timmermann Test (Pesaran and Timmermann, 1992) compares the share of correctly predicted signs with the share expected if the forecasts and the... - [Durbin-Watson Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/durbin-watson-test): `get_durbin_watson_test`. The Durbin-Watson Test of Durbin and Watson (1950, 1951) is the classical test of first-order autocorrelation in the residuals of a regression. - [ERS Point Optimal Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/ers-point-optimal-test): `get_unit_root_test`. The ERS Point Optimal Test of Elliott, Rothenberg and Stock (1996) compares how well a random walk and a nearby stationary alternative fit the series. - [Encompassing Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/encompassing-test): `get_non_nested_test`. The Encompassing Test, following the encompassing principle of Mizon and Richard (1986), asks whether the tested model encompasses the rival. - [Engle-Granger Cointegration](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/engle-granger-cointegration): `get_engle_granger_cointegration`. The Engle-Granger Test (EG) is the two-step test of Engle and Granger (1987). - [Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/entropy): `get_entropy`. The Sample Entropy (SampEn) of Richman and Moorman (2000) is the negative logarithm of the conditional probability that two stretches of m values that are... - [Event Study](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/event-study): `get_event_study`. A market-model event study around a single event date: the return of a stock around an event beyond what its relation with the market explains (the... - [Exponential Smoothing Forecast](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/exponential-smoothing-forecast): `get_exponential_smoothing_forecast`. The Simple Exponential Smoothing (SES) of Brown (1959) tracks only the level of a series. - [F-Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/f-test): `get_f_test`. A nested-model F-test: whether extra tickers jointly improve the fit of a regression of the dependent ticker on a smaller set of tickers. - [Fama-MacBeth Regression](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/fama-macbeth-regression): `get_fama_macbeth_regression`. A Fama-MacBeth (1973) two-pass cross-sectional regression: the risk premium of every factor ticker, and whether it is priced across the asset tickers. - [Fixed Effects](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/fixed-effects): `get_fixed_effects`. A Fixed Effects ("within") estimator: how a panel of dependent tickers moves with a regressor within every ticker, after removing what is specific to each... - [Forecast Error](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/forecast-error): `get_forecast_error`. The Root Mean Squared Error (RMSE) is the square root of the average squared difference between the two series. With the formula and an example in Python. - [Fractional Difference](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/fractional-difference): `get_fractional_difference`. The fractional difference of the log prices per asset: a stationary series that keeps most of the memory of the prices, (1 - L)^d with a d between 0 and 1. - [Fully Modified OLS](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/fully-modified-ols): `get_cointegrating_regression`. The Fully Modified OLS (FMOLS) of Phillips and Hansen (1990) corrects the OLS regression afterwards instead of adding terms to it. - [GMM Moment Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/gmm-moment-test): `get_gmm_moment_test`. The GMM orthogonality test of Hansen (1982): whether the standardized residuals of every asset's GARCH-family model have the mean, variance, skewness and... - [Generalised Least Squares (GLS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/generalised-least-squares-gls): `get_gls`. A Generalized Least Squares (GLS) regression: least squares of the dependent ticker on the independent tickers that accounts for errors that are correlated... - [Goldfeld-Quandt Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/goldfeld-quandt-test): `get_heteroskedasticity_test`. The Goldfeld-Quandt Test of Goldfeld and Quandt (1965) splits the sample in time instead. - [Granger Causality](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/granger-causality): `get_granger_causality`. The Granger causality test for every ordered pair of tickers: whether the past returns of the second help predict the first beyond its own past. - [Gregory-Hansen Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/gregory-hansen-test): `get_engle_granger_cointegration`. The Gregory-Hansen Test is the residual-based test of Gregory and Hansen (1996) that allows the long-run relation to shift once at an unknown date. - [Harvey-Collier Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/harvey-collier-test): `get_ramsey_reset_test`. The Harvey-Collier Test of Harvey and Collier (1977) uses the recursive residuals, the one-step-ahead forecast errors of the regression fitted on... - [Hausman Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/hausman-test): `get_hausman_test`. The Hausman specification test: whether the Fixed Effects and Random Effects fits of a panel of dependent tickers differ by more than chance, so that... - [Hausman-Wu Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/hausman-wu-test): `get_hausman_wu_test`. A regression-based Hausman-Wu test: whether a ticker is endogenous in a regression of the dependent ticker, correlated with its error term, so that OLS is... - [Heteroskedasticity Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/heteroskedasticity-test): `get_heteroskedasticity_test`. The Breusch-Pagan Test of Breusch and Pagan (1979) regresses the squared residuals on the regressors and asks whether they explain any of the residual... - [Hjorth Parameters](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/hjorth-parameters): `get_hjorth_parameters`. The Hjorth parameters of a series, by default the returns: its Activity, Mobility and Complexity, and the number of times it crosses zero, over the full... - [Holt Linear Trend Method](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/holt-linear-trend-method): `get_exponential_smoothing_forecast`. The Holt Linear Trend Method of Holt (1957) adds a trend to the level, so that the forecast continues the recent direction of the series instead of staying... - [Holt-Winters Method](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/holt-winters-method): `get_exponential_smoothing_forecast`. The Holt-Winters Method of Winters (1960) adds a seasonal pattern of m periods to the level and trend of Holt (1957). - [Hong-Li Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/hong-li-test): `get_hong_li_test`. The nonparametric density forecast test of Hong and Li: whether the one-period-ahead forecast densities of a return model have the right shape and capture... - [Huber M-Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/huber-m-estimator): `get_ols`. The Huber M-Estimator of Huber (1964) is a robust regression: it minimizes a loss that is quadratic for small residuals, like least squares, and linear for... - [Impulse Response Function (IRF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/impulse-response-function-irf): `get_impulse_response_function`. The Impulse Response Function (IRF) of a Vector Autoregression across every ticker. - [Instrumental Variables (2SLS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/instrumental-variables-2sls): `get_iv_2sls`. An Instrumental Variables regression by Two-Stage Least Squares (2SLS). - [Jarque-Bera Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/jarque-bera-test): `get_jarque_bera_test`. The Jarque-Bera test: whether every asset's returns are normally distributed, judged by their skewness and kurtosis. - [Johansen Cointegration](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/johansen-cointegration): `get_johansen_cointegration`. The Johansen test across every ticker: how many long-run equilibrium relationships (cointegrating relations) hold the prices together. - [Johansen Restriction Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/johansen-restriction-test): `get_johansen_restriction_test`. The Johansen restriction tests per ticker: whether a ticker is part of the long-run relations of the group (exclusion) and whether it adjusts to them or... - [KPSS Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/kpss-test): `get_kpss_test`. The Kwiatkowski-Phillips-Schmidt-Shin (KPSS) test per asset: whether the prices are stationary, around a constant or a trend, rather than having a unit root. - [Kolmogorov-Smirnov Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/kolmogorov-smirnov-test): `get_two_sample_t_test`. The Kolmogorov-Smirnov Test, in its two-sample form of Smirnov (1948), compares the whole distributions of two samples. - [Kontoyiannis Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/kontoyiannis-entropy): `get_entropy`. The Kontoyiannis Entropy of Kontoyiannis, Algoet, Suhov and Wyner (1998) estimates the entropy rate of the returns encoded into symbols from the lengths of... - [Lempel-Ziv Complexity](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/lempel-ziv-complexity): `get_lempel_ziv_complexity`. The Lempel-Ziv Complexity of a series, by default of the direction of the returns. - [Lempel-Ziv Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/lempel-ziv-entropy): `get_entropy`. The Lempel-Ziv Entropy is the number of distinct phrases of the Lempel-Ziv (1978) parsing of the returns encoded into symbols, divided by the number of... - [Level Significance](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/level-significance): `get_level_significance`. How unusual the latest value of every series is: its percentile in the series' own history and the last dates the series was at least as high ("the highest... - [Levene Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/levene-test): `get_two_sample_t_test`. The Levene Test of Levene (1960) asks whether two samples are equally dispersed. - [Likelihood Ratio Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/likelihood-ratio-test): `get_likelihood_ratio_test`. A nested-model Likelihood Ratio (LR) test: whether extra tickers jointly raise the likelihood of a regression of the dependent ticker on a smaller set of... - [Lilliefors Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/lilliefors-test): `get_normality_test`. The Lilliefors Test (Lilliefors, 1967) is the Kolmogorov-Smirnov test for normality when the mean and the variance are estimated from the sample. - [Linear Regression](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/linear-regression): `get_linear_regression`. The rolling Linear Regression of a price series: the end point of the least-squares line over the window, its slope, intercept and angle, and the Time... - [Ljung-Box Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/ljung-box-test): `get_ljung_box_test`. The Ljung-Box Test (Ljung and Box, 1978) is the portmanteau test in general use. With the test statistic, how to read the p-value and an example in Python. - [Local Projections](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/local-projections): `get_local_projections`. The impulse response of every ticker to a shock in another by local projections. - [Local Whittle Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/local-whittle-estimator): `get_long_memory_test`. The Local Whittle Estimator of Robinson (1995b), also called the Gaussian semiparametric estimator, estimates d from the same low frequencies as the... - [Long Memory Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/long-memory-test): `get_long_memory_test`. The Geweke-Porter-Hudak Estimator (GPH) of Geweke and Porter-Hudak (1983) estimates d from the periodogram near frequency zero. - [Mann-Whitney U Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/mann-whitney-u-test): `get_two_sample_t_test`. The Mann-Whitney U Test of Mann and Whitney (1947), equivalent to the Wilcoxon rank-sum test, compares the two samples through their ranks instead of their... - [Markov Regime Switching](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/markov-regime-switching): `get_markov_regime_switching`. A Markov regime switching model to every asset: the hidden regimes, such as calm and turbulent markets, that set the mean and volatility of its returns. - [Mean Absolute Deviation](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/mean-absolute-deviation): `get_mean_absolute_deviation`. The Mean Absolute Deviation of a price series: the average distance of the prices from their mean, over the full history or a rolling window. - [Mean Absolute Error](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/mean-absolute-error): `get_forecast_error`. The Mean Absolute Error (MAE) is the average absolute difference between the two series: every difference counts in proportion to its size. - [Mincer-Zarnowitz Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/mincer-zarnowitz-test): `get_mincer_zarnowitz_test`. The Mincer-Zarnowitz test per asset: whether a volatility forecast is unbiased and efficient, judged by regressing the realized variance on the forecast. - [Minimum Fractional Difference](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/minimum-fractional-difference): `get_minimum_fractional_difference`. The minimum order of fractional differentiation d that makes the log prices stationary, per asset. - [Model Confidence Set](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/model-confidence-set): `get_model_confidence_set`. The Model Confidence Set (MCS) of Hansen, Lunde and Nason: the volatility forecasting models that cannot be told apart from the best one. - [Modified Rescaled Range Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/modified-rescaled-range-test): `get_long_memory_test`. The Modified Rescaled Range Test of Lo (1991) is a test of long memory based on the rescaled range (R/S) of Hurst and Mandelbrot. - [Move Significance](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/move-significance): `get_move_significance`. How unusual each move of every series is: the change in units of its trailing volatility and of its trailing Value at Risk, its percentile among the... - [Multiple Seasonal-Trend Decomposition Based on Loess](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/multiple-seasonal-trend-decomposition-based-on-loess): `get_seasonal_decomposition`. The Multiple Seasonal-Trend Decomposition Based on Loess (MSTL) of Bandara, Hyndman and Bergmeir (2021) extends STL to a series with several seasonal... - [Ng-Perron Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/ng-perron-test): `get_unit_root_test`. The Ng-Perron Test of Ng and Perron (2001) is a set of four statistics, MZ_α, MZ_t, MSB and MP_T, that modify the Phillips-Perron statistics and apply them... - [Non-Nested Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/non-nested-test): `get_non_nested_test`. The J Test of Davidson and MacKinnon (1981) adds the fitted values of the rival model to the tested model as one extra regressor. - [Normality Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/normality-test): `get_normality_test`. The Shapiro-Wilk Test (Shapiro and Wilk, 1965) compares the sorted returns with the values a normal sample of the same size is expected to have at each... - [Nyblom Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/nyblom-test): `get_nyblom_test`. The parameter stability test of Nyblom (1989) and Hansen (1992): whether the parameters of every asset's GARCH-family model stayed the same over the... - [Optimal Trading Rule](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/optimal-trading-rule): `get_optimal_trading_rule`. Find the optimal trading rule of every asset: the profit-taking and stop-loss levels with the highest Sharpe ratio for a long position. - [Ordinary Least Squares (OLS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/ordinary-least-squares-ols): `get_ols`. The Ordinary Least Squares (OLS) regression, which goes back to Legendre and Gauss, chooses the coefficients that minimize the sum of squared residuals. - [Out-of-Sample Validation](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/out-of-sample-validation): `get_out_of_sample_validation`. The out-of-sample forecast error of an ARIMA or VAR forecast of every ticker: its RMSE and MAE on a holdout the model was not fitted on. - [Pairs Trading](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/pairs-trading): `get_pairs_trading`. The statistics of trading the spread between every pair of assets: how far the spread is from its mean and the position that gives. - [Pearson Goodness-of-Fit Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/pearson-goodness-of-fit-test): `get_pearson_goodness_of_fit_test`. The adjusted Pearson goodness of fit test of Palm (1996) and Vlaar and Palm (1993). - [Percent Rank](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/percent-rank): `get_percent_rank`. The Percent Rank of a price series: the share of the earlier prices that are lower than the latest price, over the full history or a rolling window. - [Percentile](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/percentile): `get_percentile`. The Percentile of a series: the value below which a given share of the observations lies, by default the median (0.5), such as the upper quartile (0.75). - [Permutation Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/permutation-entropy): `get_entropy`. The Permutation Entropy of Bandt and Pompe (2002) is the Shannon entropy of the ordinal patterns of a series. - [Phillips-Ouliaris Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/phillips-ouliaris-test): `get_engle_granger_cointegration`. The Phillips-Ouliaris Test (PO) is the residual-based test of Phillips and Ouliaris (1990), which corrects the autocorrelation of the residuals... - [Phillips-Perron Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/phillips-perron-test): `get_unit_root_test`. The Phillips-Perron Test (PP) tests the same null hypothesis as the Augmented Dickey-Fuller Test but treats autocorrelated errors differently. - [Probit Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/probit-model): `get_binary_choice_regression`. The Probit Model, introduced by Bliss (1934), uses the standard normal distribution function as its link. - [Propensity Score Matching (PSM)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/propensity-score-matching-psm): `get_propensity_score_matching`. The Average Treatment effect on the Treated (ATT) by Propensity Score Matching (PSM). - [Quandt-Andrews Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/quandt-andrews-test): `get_chow_test`. The Quandt-Andrews Test is the Chow Test for a break at an unknown date. With the test statistic, how to read the p-value and an example in Python. - [Quantile Regression](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/quantile-regression): `get_quantile_regression`. A Quantile Regression: how a quantile of the dependent ticker, such as its worst 5% of returns, depends on the independent tickers. - [Rainbow Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/rainbow-test): `get_ramsey_reset_test`. The Rainbow Test of Utts (1982) fits the regression on the central half of the sample and asks whether that fit describes the outer observations as well. - [Ramsey RESET Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/ramsey-reset-test): `get_ramsey_reset_test`. The Ramsey RESET Test (regression equation specification error test) of Ramsey (1969) uses the fact that the fitted values of a misspecified linear... - [Random Effects](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/random-effects): `get_random_effects`. A Random Effects estimator: how a panel of dependent tickers moves with a regressor when every ticker's own effect is random and unrelated to it, by... - [Reality Check](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/reality-check): `get_data_snooping_test`. The Reality Check of White (2000) was the first test of the best of many strategies that accounts for the search. - [Recursive CUSUM Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/recursive-cusum-test): `get_cusum_test`. The Recursive CUSUM Test (Brown, Durbin and Evans, 1975) cumulates the recursive residuals. - [Regression Discontinuity (RDD)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/regression-discontinuity-rdd): `get_regression_discontinuity`. A Sharp Regression Discontinuity (RDD): the jump in the dependent ticker exactly where the running variable ticker crosses a cutoff. - [Rolling Connectedness](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/rolling-connectedness): `get_rolling_connectedness`. The Diebold-Yilmaz connectedness of the tickers over a rolling window: how the total connectedness and each ticker's net connectedness move over time. - [Runs Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/runs-test): `get_runs_test`. The Wald-Wolfowitz runs test of every asset's returns: whether returns above and below their mean (or median, or zero) follow each other at random. - [Seasonal Decomposition](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/seasonal-decomposition): `get_seasonal_decomposition`. The Seasonal-Trend Decomposition Based on Loess (STL) of Cleveland, Cleveland, McRae and Terpenning (1990) estimates the trend and the season with local... - [Shannon Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/shannon-entropy): `get_entropy`. The Shannon Entropy is the plug-in (maximum likelihood) estimate of the entropy rate of Shannon (1948) of the returns encoded into symbols, as López de... - [Share Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/share-entropy): `get_entropy`. The Share Entropy is the Shannon (1948) entropy of the values of a series, by default the prices, taken as shares of their sum. - [Sign Bias Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/sign-bias-test): `get_sign_bias_test`. The sign bias test of Engle and Ng (1993): whether a fall raises the volatility of every asset by more than its GARCH-family model expects (sign bias), and... - [Singular Value Decomposition Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/singular-value-decomposition-entropy): `get_entropy`. The Singular Value Decomposition Entropy (SVD Entropy) of Roberts, Penny and Rezek (1999) is the Shannon entropy of the singular values of the delay... - [Slope](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/slope): `get_slope`. The slope is the rise over the run between the price a window ago and the latest price. The slope over one period is the change from the previous close. - [Spectral Density](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/spectral-density): `get_spectral_density`. The Periodogram of Schuster (1898), introduced to search for hidden periodicities in meteorological data, is the squared size of the discrete Fourier... - [Spectral Entropy](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/spectral-entropy): `get_entropy`. The Spectral Entropy of Inouye et al. With the formula, how to read it and an example in Python. - [Standard Error](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/standard-error): `get_standard_error`. The Standard Error of the mean of a price series: how uncertain the average price is as an estimate of the mean, over the full history or a rolling window. - [Stepwise Multiple Testing Procedure](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/stepwise-multiple-testing-procedure): `get_data_snooping_test`. The Stepwise Multiple Testing Procedure (StepM) of Romano and Wolf (2005) names every ticker that beats the benchmark, not only whether the best one does... - [Streaks](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/streaks): `get_streaks`. The streak every series is on: whether its latest value is positive, negative or zero, since when it has been without a break and how long that is, the run... - [Structural Breaks (Bai-Perron)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/structural-breaks-bai-perron): `get_structural_breaks`. Find the structural breaks of every asset's series: the dates at which its mean shifts. With the formula, how to read it and an example in Python. - [Synthetic Control](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/synthetic-control): `get_synthetic_control`. Construct a Synthetic Control (Abadie, Diamond & Hainmueller, 2010): a weighted combination of donor tickers that tracks the treated ticker before an... - [Theta Method](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/theta-method): `get_exponential_smoothing_forecast`. The Theta Method of Assimakopoulos and Nikolopoulos (2000) splits a series into lines of different curvature, the theta lines, forecasts each and combines... - [Time-Varying Beta](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/time-varying-beta): `get_time_varying_beta`. A time-varying regression of every asset with the Kalman filter, or by OLS on a rolling or expanding window: its alpha and beta as they change over time. - [Tukey Bisquare M-Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/tukey-bisquare-m-estimator): `get_ols`. The Tukey Bisquare M-Estimator of Beaton and Tukey (1974) is a robust regression whose weights fall smoothly to zero. - [Two-Sample t-Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/two-sample-t-test): `get_two_sample_t_test`. The Two-Sample t-Test compares the means of two samples. With the test statistic, how to read the p-value and an example in Python. - [Unit Root Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/unit-root-test): `get_unit_root_test`. The Augmented Dickey-Fuller Test (ADF) is the standard unit root test. With the test statistic, how to read the p-value and an example in Python. - [Unobserved Components](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/unobserved-components): `get_unobserved_components`. Decompose every series into a stochastic trend, a cycle and noise with an unobserved components model. - [VAR Diagnostics](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/var-diagnostics): `get_var_diagnostics`. The diagnostics of a Vector Autoregression (VAR) across every ticker: whether the VAR of get_var_forecast is stable and whether its residuals are free of... - [VAR Forecast](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/var-forecast): `get_var_forecast`. A Vector Autoregression (VAR) across every ticker and forecast it: how the tickers move together, each driven by the past values of all of them. - [VAR Lag Order Selection](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/var-lag-order-selection): `get_var_lag_order`. The information criteria of a Vector Autoregression (VAR) across every ticker for every lag order: how many past periods the VAR of get_var_forecast needs. - [VECM Forecast](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/vecm-forecast): `get_vecm_forecast`. A Vector Error Correction Model (VECM) across every (cointegrated) ticker and forecast it. - [Variance Decomposition](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/variance-decomposition): `get_variance_decomposition`. The (orthogonalized) Forecast Error Variance Decomposition (FEVD) of a Vector Autoregression across every ticker. - [Variance Inflation Factor (VIF)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/variance-inflation-factor-vif): `get_vif`. The Variance Inflation Factor (VIF) of every ticker: how much its correlation with the other tickers (multicollinearity) inflates the variance of its... - [Variance Ratio Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/variance-ratio-test): `get_variance_ratio_test`. The Lo-MacKinlay Variance Ratio Test (Lo and MacKinlay, 1988) compares the variance of overlapping q-period returns with q times the variance of... - [Wald Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/wald-test): `get_wald_test`. A Wald test: whether the coefficients of a regression of the dependent ticker on the independent tickers satisfy a set of linear restrictions, such as a... - [Weighted Least Squares (WLS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/weighted-least-squares-wls): `get_wls`. A Weighted Least Squares (WLS) regression: OLS of the dependent ticker on the independent tickers that gives noisier periods less weight. - [Welch Method](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/welch-method): `get_spectral_density`. The Welch Method of Welch (1967) averages the periodograms of overlapping segments of the series, each tapered by a window. - [White Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/white-test): `get_heteroskedasticity_test`. The White Test of White (1980) is the more general version: its auxiliary regression adds the squares and cross-products of the regressors, so it also... - [Wilcoxon Signed-Rank Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/wilcoxon-signed-rank-test): `get_two_sample_t_test`. The Wilcoxon Signed-Rank Test of Wilcoxon (1945) compares two samples paired by date, through the ranks of their differences. - [Window Change by Year](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/window-change-by-year): `get_window_change_by_year`. The change of every series over the same months of every year, such as February to October, with the rank of every year's change and the last earlier year... - [Wright Rank Score Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/wright-rank-score-test): `get_variance_ratio_test`. The Wright Rank Score Test (R2) of Wright (2000) is the variance ratio test on the normal scores of the ranks of the returns. - [Wright Rank Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/wright-rank-test): `get_variance_ratio_test`. The Wright Rank Test (R1) of Wright (2000) is the variance ratio test on the ranks of the returns instead of the returns themselves. - [Wright Sign Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/wright-sign-test): `get_variance_ratio_test`. The Wright Sign Test (S1) of Wright (2000) is the variance ratio test on the signs of the returns. With how to read the p-value and an example in Python. - [Z-Score](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/z-score): `get_z_score`. The Z-Score of a price series: the number of standard deviations the latest price lies above or below its average, over the full history or a rolling window. - [Zivot-Andrews Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/econometrics/zivot-andrews-test): `get_unit_root_test`. The Zivot-Andrews Test (ZA) is the Augmented Dickey-Fuller Test with room for one structural break at an unknown date. ## [Economics](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics) - [30-Year Mortgage Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/30-year-mortgage-rate): `get_mortgage_rate_30_year`. The weekly average 30-year fixed mortgage rate in the United States (Freddie Mac's Primary Mortgage Market Survey): what new home buyers pay to borrow. - [Account Balance to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/account-balance-to-gdp): `get_current_account_balance_to_gdp_ratio`. The current account balance to GDP ratio of a variety of countries from the Global Macro Database (GMDB). - [Asset Class Proxies](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/asset-class-proxies): `get_asset_class_proxies`. The total returns of listed funds that track asset classes without a public return index, such as private equity, infrastructure, hedge funds and private... - [Balanced Approach Rule](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/balanced-approach-rule): `get_taylor_rule`. The Balanced Approach Rule weighs the output gap fully, with a weight of 1.0 instead of 0.5, so that it responds as strongly to a shortfall of output, and... - [Banking Crisis](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/banking-crisis): `get_banking_crisis`. The banking crisis dummy of a variety of countries from the Global Macro Database (GMDB): whether a country was in a systemic banking crisis in each year. - [Breakeven Inflation Expectations](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/breakeven-inflation-expectations): `get_breakeven_inflation_expectations`. The market-implied (Q-measure) breakeven inflation of a variety of countries by maturity. - [Business Confidence Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/business-confidence-index): `get_business_confidence_index`. The Business Confidence Index of a variety of countries: how optimistic manufacturers are about production, orders and stocks, an early sign of turning... - [Capacity Utilization](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/capacity-utilization): `get_capacity_utilization`. The capacity utilization of industry: how much of its productive capacity is in use, a sign of slack or of inflationary pressure. - [Carbon Footprint](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/carbon-footprint): `get_carbon_footprint`. The carbon footprint of a variety of countries: the greenhouse gases emitted to support human activities, in tonnes of CO2 equivalent per person. - [Carbon Price (EU ETS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/carbon-price-eu-ets): `get_carbon_price`. The price of emitting one tonne of CO2 under the EU Emissions Trading System (EU ETS). - [Central Bank Balance Sheet](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/central-bank-balance-sheet): `get_central_bank_balance_sheet`. The total assets of the central banks: how large the balance sheets are that they expanded with asset purchases and lending, and shrink with quantitative... - [Central Bank Policy Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/central-bank-policy-rate): `get_central_bank_policy_rate`. The central bank policy rate of a variety of countries: the rate a central bank sets to steer inflation and the economy. - [Chokepoint Transits](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/chokepoint-transits): `get_chokepoint_transits`. IMF PortWatch's daily ship transits through the world's maritime chokepoints from 2019. - [Climate Scenarios (NGFS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/climate-scenarios-ngfs): `get_climate_scenario`. The path of an economic or financial variable in an NGFS climate scenario. - [Commercial Real Estate Prices](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/commercial-real-estate-prices): `get_commercial_real_estate_prices`. The year-on-year growth of commercial real estate prices of around twenty economies. - [Commodity Forward Curve](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/commodity-forward-curve): `get_commodity_forward_curve`. The futures curve of a commodity from Yahoo Finance: the daily closing (settlement) price of each of its nearest dated contracts, the price the market sets... - [Commodity Prices](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/commodity-prices): `get_commodity_prices`. The World Bank's monthly commodity prices from 1960 (The Pink Sheet): the average price of each month in US dollars of around seventy commodities. - [Commodity Term Structure](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/commodity-term-structure): `get_commodity_term_structure`. The term structure of a commodity futures curve per day: whether the curve is in backwardation, contango or flat, with the 12-month calendar spread, the... - [Composite Leading Indicator](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/composite-leading-indicator): `get_composite_leading_indicator`. The Composite Leading Indicator (CLI) of a variety of countries: early signals of turning points in the business cycle, with values above 100 pointing to... - [Consumer Confidence Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/consumer-confidence-index): `get_consumer_confidence_index`. The Consumer Confidence Index of a variety of countries: how optimistic households are about the economy and their own finances, and so how willing they... - [Consumer Inflation Expectations](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/consumer-inflation-expectations): `get_consumer_inflation_expectations`. The inflation US households expect one, three and five years ahead, monthly from the New York Fed's Survey of Consumer Expectations. - [Consumer Price Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/consumer-price-index): `get_consumer_price_index`. The Consumer Price Index (CPI) of a variety of countries: the average change in the prices consumers pay for goods and services, the measure of inflation. - [Consumption to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/consumption-to-gdp): `get_total_consumption_to_gdp_ratio`. The total consumption to GDP ratio of a variety of countries from the Global Macro Database (GMDB): the share of the economy that is consumed. - [Continuing Jobless Claims](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/continuing-jobless-claims): `get_continuing_jobless_claims`. The weekly continued claims (insured unemployment) of the United States from the Department of Labor: how many people keep receiving unemployment benefits. - [Corporate Profits](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/corporate-profits): `get_corporate_profits`. The US corporate profits of the national accounts: what all US corporations earn from current production, before and after tax, in billions of dollars or... - [Credit Impulse](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/credit-impulse): `get_credit_impulse`. The credit impulse of a variety of countries: the change in the flow of new credit as a share of GDP, a leading indicator of private demand. - [Credit-to-GDP Gap](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/credit-to-gdp-gap): `get_credit_to_gdp_gap`. The credit-to-GDP gap: how far the ratio of credit to the private non-financial sector to GDP lies above or below its long-term trend, in percentage points... - [Credit-to-GDP Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/credit-to-gdp-ratio): `get_credit_to_gdp_ratio`. The total credit to a non-financial sector as a share of GDP: all loans and debt securities owed by households, non-financial corporations or the government. - [Currency Crisis](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/currency-crisis): `get_currency_crisis`. The currency crisis dummy of a variety of countries from the Global Macro Database (GMDB): whether a country was in a currency crisis in each year. - [Current Account Balance](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/current-account-balance): `get_current_account_balance`. The current account balance of a variety of countries from the Global Macro Database (GMDB): the trade balance plus net income and transfers from abroad. - [Debt Service Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/debt-service-ratio): `get_debt_service_ratio`. It captures both how much is borrowed and at what rate, so it rises when rates go up even if the debt itself does not, and it is a leading indicator of... - [Debt to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/debt-to-gdp): `get_government_debt_to_gdp_ratio`. The government debt to GDP ratio of a variety of countries from the Global Macro Database (GMDB): what a government owes against the size of its economy. - [Deficit to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/deficit-to-gdp): `get_government_deficit_to_gdp_ratio`. The government deficit to GDP ratio of a variety of countries from the Global Macro Database (GMDB). - [Economic Calendar](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/economic-calendar): `get_economic_calendar`. The scheduled releases of economic data for every country, such as inflation, employment, GDP and central bank decisions, with the consensus estimate and... - [Economic Policy Uncertainty](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/economic-policy-uncertainty): `get_economic_policy_uncertainty`. The Economic Policy Uncertainty index of Baker, Bloom and Davis: how much newspapers write about uncertainty over economic policy, monthly for 21 countries... - [Equity-Bond Yield Gap](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/equity-bond-yield-gap): `get_equity_bond_yield_gap`. The equity-bond yield gap of the US stock market: the earnings yield of the S&P Composite minus the 10-year Treasury yield, the comparison known as the Fed... - [Excess CAPE Yield](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/excess-cape-yield): `get_excess_cape_yield`. The Excess CAPE Yield of the US stock market: the earnings yield of the cyclically adjusted price-earnings ratio (CAPE) above the real 10-year Treasury... - [Excess Money Growth](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/excess-money-growth): `get_money_supply`. The Excess Money Growth is how much faster the money supply grows than nominal GDP. - [Exchange Rates](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/exchange-rates): `get_exchange_rates`. See definition: https://data.oecd.org/conversion/exchange-rates.htm It is also possible to get the data from the Global Macro Database (GMDB) by choosing... - [Expenditure by Function (COFOG)](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/expenditure-by-function-cofog): `get_government_expenditure_by_function`. The government expenditure by function of a variety of countries from the IMF. - [Expenditure by Function to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/expenditure-by-function-to-gdp): `get_government_expenditure_by_function_to_gdp_ratio`. The government expenditure by function to GDP ratio of a variety of countries from the IMF: the size of each function of government against the economy. - [Expenditure to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/expenditure-to-gdp): `get_government_expenditure_to_gdp_ratio`. The government expenditure to GDP ratio of a variety of countries from the Global Macro Database (GMDB). - [Export Price Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/export-price-index): `get_export_price_index`. The Export Price Index of a variety of countries: the average change in the prices a country's producers receive for the goods they sell abroad. - [Exports](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/exports): `get_exports`. The exports of a variety of countries from the Global Macro Database (GMDB): the goods and services a country sells to other countries. - [Exports to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/exports-to-gdp): `get_exports_to_gdp_ratio`. The exports to GDP ratio of a variety of countries from the Global Macro Database (GMDB): how much of an economy's output is sold abroad. - [Financial Conditions Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/financial-conditions-index): `get_financial_conditions_index`. The Chicago Fed National Financial Conditions Index (NFCI): how tight or loose US financial conditions are, weekly from 1971, with the adjusted index... - [Fixed Investment to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/fixed-investment-to-gdp): `get_fixed_investment_to_gdp_ratio`. The fixed investment to GDP ratio of a variety of countries from the Global Macro Database (GMDB): the share of the economy that is invested in fixed assets. - [Foreign Exchange Reserves](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/foreign-exchange-reserves): `get_foreign_exchange_reserves`. The total reserves, including gold, of a variety of countries from the World Bank (FI.RES.TOTL.CD, from the IMF's International Financial Statistics). - [GDP Deflator](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/gdp-deflator): `get_gross_domestic_product_deflator`. The GDP deflator of a variety of countries from the Global Macro Database (GMDB): the price level of everything an economy produces, against a base year. - [GDP Growth](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/gdp-growth): `get_gross_domestic_product_growth`. The quarterly growth of real Gross Domestic Product (GDP) of a variety of countries: how fast each economy grows. With the formula and an example in Python. - [GDP Nowcast](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/gdp-nowcast): `get_gdp_nowcast`. The Atlanta Fed's GDPNow nowcast: the US real GDP growth of the running quarter as the data released so far point to, before the Bureau of Economic... - [Geopolitical Risk Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/geopolitical-risk-index): `get_geopolitical_risk_index`. The Geopolitical Risk (GPR) index of Caldara and Iacoviello: how much leading newspapers write about wars, terrorism and tensions between states, monthly... - [Global Supply Chain Pressure Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/global-supply-chain-pressure-index): `get_supply_chain_pressure_index`. The Global Supply Chain Pressure Index (GSCPI) of the Federal Reserve Bank of New York. - [Government Debt](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/government-debt): `get_government_debt`. The government debt of a variety of countries from the Global Macro Database (GMDB): the total amount a government owes to its creditors. - [Government Debt Dynamics](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/government-debt-dynamics): `get_government_debt_dynamics`. The government debt dynamics of a variety of countries: the interest-growth differential (r - g) and the primary balance that keeps the debt-to-GDP ratio... - [Government Deficit](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/government-deficit): `get_government_deficit`. The government deficit of a variety of countries from the Global Macro Database (GMDB). - [Government Expenditure](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/government-expenditure): `get_government_expenditure`. The government expenditure of a variety of countries from the Global Macro Database (GMDB). - [Government Revenue](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/government-revenue): `get_government_revenue`. The government revenue of a variety of countries from the Global Macro Database (GMDB): what a government collects from taxes and other sources. - [Government Tax Revenue](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/government-tax-revenue): `get_government_tax_revenue`. The government tax revenue of a variety of countries from the Global Macro Database (GMDB): what a government collects from taxes. - [Gross Domestic Product (GDP)](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/gross-domestic-product-gdp): `get_gross_domestic_product`. The Gross Domestic Product (GDP) of a variety of countries: the total value of the goods and services an economy produces in a year. - [House Prices](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/house-prices): `get_house_prices`. In most cases, the nominal house price index covers the sales of newly-built and existing dwellings, following the recommendations from the RPPI... - [Household Debt to Income Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/household-debt-to-income-ratio): `get_household_debt_to_income_ratio`. The household debt to disposable income ratio of a variety of countries from the OECD's Household Dashboard. - [Household Savings Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/household-savings-rate): `get_household_savings_rate`. The gross household savings rate of a variety of countries from the OECD's Household Dashboard. - [Housing Starts](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/housing-starts): `get_housing_starts`. The housing starts (new privately-owned housing units started) of the United States from the Census Bureau, a leading indicator of construction and the... - [Implied Equity Risk Premium](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/implied-equity-risk-premium): `get_implied_equity_risk_premium`. The implied equity risk premium of the US stock market: the return above the 10-year Treasury bond rate that investors expect from the S&P 500 at its... - [Implied Volatility Indices](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/implied-volatility-indices): `get_implied_volatility`. The implied volatility the option markets price, by market and time to expiry: the volatility indices of Cboe, STOXX and ICE. - [Import Price Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/import-price-index): `get_import_price_index`. The Import Price Index of a variety of countries: the average change in the prices of the goods a country buys from abroad. - [Imports](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/imports): `get_imports`. The imports of a variety of countries from the Global Macro Database (GMDB): the goods and services a country buys from other countries. - [Imports to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/imports-to-gdp): `get_imports_to_gdp_ratio`. The imports to GDP ratio of a variety of countries from the Global Macro Database (GMDB): how much a country buys from abroad against the size of its economy. - [Income Inequality](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/income-inequality): `get_income_inequality`. The income inequality of a variety of countries: how unevenly household disposable income is spread across the population. - [Industrial Production Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/industrial-production-index): `get_industrial_production_index`. The Industrial Production Index of the United States from the Federal Reserve's G.17 release: the real output of manufacturing, mining and utilities. - [Inertial Taylor Rule](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/inertial-taylor-rule): `get_taylor_rule`. The Inertial Taylor Rule moves the policy rate only part of the way from where it was to the rate of the Balanced Approach Rule, as central banks adjust... - [Inflation Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/inflation-rate): `get_inflation_rate`. The inflation rate of a variety of countries: the percentage change in the Consumer Price Index (CPI), how fast prices rise. - [Initial Jobless Claims](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/initial-jobless-claims): `get_initial_jobless_claims`. The weekly initial claims for unemployment insurance of the United States from the Department of Labor: how many people newly file for unemployment benefits. - [Insured Unemployment Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/insured-unemployment-rate): `get_insured_unemployment_rate`. The weekly insured unemployment rate of the United States from the Department of Labor. - [Interest Expenditure](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/interest-expenditure): `get_government_interest_expenditure`. The government interest expenditure of a variety of countries from the IMF's Government Finance Statistics: the interest a government pays on its debt. - [Interest Expenditure to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/interest-expenditure-to-gdp): `get_government_interest_expenditure_to_gdp_ratio`. The government interest expenditure to GDP ratio of a variety of countries from the IMF. - [Interest Expenditure to Revenue](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/interest-expenditure-to-revenue): `get_government_interest_expenditure_to_revenue_ratio`. The government interest expenditure to revenue ratio of a variety of countries from the IMF: the share of its revenue a government spends on interest. - [Investment to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/investment-to-gdp): `get_investment_to_gdp_ratio`. The investment to GDP ratio of a variety of countries from the Global Macro Database (GMDB). - [Job Vacancy Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/job-vacancy-rate): `get_job_vacancy_rate`. The job vacancy rate of a variety of countries: the share of all posts employers are trying to fill, the unmet demand for labour. - [Labour Force Participation](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/labour-force-participation): `get_labour_force_participation`. The labour force participation rate or the employment-to-population ratio of a variety of countries. - [Labour Market Tightness](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/labour-market-tightness): `get_labour_market_tightness`. The labour market tightness of a variety of countries: the number of job vacancies per unemployed person, above one when there are more open jobs than... - [Labour Productivity](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/labour-productivity): `get_labour_productivity`. GDP per hour worked is a measure of labour productivity. With the formula, how to read it and an example in Python. - [Labour Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/labour-share): `get_labour_share`. The labour income share of a variety of countries: the part of GDP that goes to labour as wages, salaries and the labour income of the self-employed... - [Laubach-Williams Natural Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/laubach-williams-natural-rate): `get_natural_rate_of_interest`. The Laubach-Williams Natural Rate of Laubach and Williams (2003) is estimated with a Kalman filter together with potential output and its trend growth... - [Life Tables](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/life-tables): `get_life_table`. The life tables Eurostat compiles yearly for the countries of the European Economic Area: the mortality of a population by single year of age from 0 to 95. - [Long Term Interest Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/long-term-interest-rate): `get_long_term_interest_rate`. Long-term interest rates refer to government bonds maturing in ten years. With the historical data and an example in Python. - [Long-Run Asset Returns](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/long-run-asset-returns): `get_long_run_asset_returns`. The yearly total returns of equity, housing, government bonds and bills of 18 advanced economies from 1870, from the Jordà-Schularick-Taylor Macrohistory... - [Market Risk Premium](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/market-risk-premium): `get_market_risk_premium`. The market risk premium per country: the extra return investors demand for holding equities over a risk-free investment. - [Millennium of UK Macro Data](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/millennium-of-uk-macro-data): `get_millennium_of_macroeconomic_data`. The headline annual series of the Bank of England's "A millennium of macroeconomic data for the UK". - [Misery Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/misery-index): `get_misery_index`. The Misery Index of a variety of countries: the unemployment rate plus the inflation rate, a gauge of the economic discomfort households feel. - [Model Inflation Expectations](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/model-inflation-expectations): `get_model_inflation_expectations`. The US inflation expected over the next 1 to 30 years by the model of the Federal Reserve Bank of Cleveland, which combines Treasury yields, inflation... - [Money Supply](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/money-supply): `get_money_supply`. The Money Supply is the stock of money in circulation in a country, measured in five aggregates from the narrowest, M0, to the broadest, M4. - [National Activity Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/national-activity-index): `get_national_activity_index`. The Chicago Fed National Activity Index (CFNAI): whether the US economy grows faster or slower than its trend, monthly from 1967, with its three-month... - [Natural Rate of Interest](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/natural-rate-of-interest): `get_natural_rate_of_interest`. The Holston-Laubach-Williams Natural Rate of Holston, Laubach and Williams (2017) applies the same model to the United States, Canada and the euro area... - [Net International Investment Position](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/net-international-investment-position): `get_net_international_investment_position`. The Net International Investment Position (NIIP) of a variety of countries from the IMF. - [Net International Investment Position to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/net-international-investment-position-to-gdp): `get_net_international_investment_position_to_gdp_ratio`. The Net International Investment Position (NIIP) to GDP ratio of a variety of countries from the IMF. - [Net Liquidity](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/net-liquidity): `get_net_liquidity`. US net liquidity: the Federal Reserve's total assets less the Treasury General Account and the overnight reverse repo, the part of the Fed's balance sheet... - [Nonfarm Payrolls](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/nonfarm-payrolls): `get_nonfarm_payrolls`. The total nonfarm payroll employment of the United States from the Bureau of Labor Statistics: the number of jobs outside farming, the headline jobs figure. - [OFR Financial Stress Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/ofr-financial-stress-index): `get_ofr_financial_stress_index`. The OFR Financial Stress Index: how stressed global financial markets are, daily from 2000, with the contribution of credit, equity valuation, safe assets... - [Okun's Law](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/okun-s-law): `get_okuns_law`. Okun's law of a variety of countries: how many percentage points the unemployment rate moves for each percentage point of real GDP growth, and the growth... - [Output Gap](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/output-gap): `get_output_gap`. The output gap of a variety of countries from the OECD Economic Outlook. - [Outstanding Mortgage Rates](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/outstanding-mortgage-rates): `get_outstanding_mortgage_rates`. The distribution of the interest rates US homeowners pay on the mortgages they already have, from the National Mortgage Database of the FHFA. - [Overnight Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/overnight-rate): `get_overnight_rate`. The overnight rate of a variety of countries: the rate at which banks borrow from each other for a single day, the most direct read of monetary conditions. - [Population](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/population): `get_population_statistics`. The population statistics of a variety of countries: the number of people who usually live in a country and how it grows. - [Poverty Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/poverty-rate): `get_poverty_rate`. The poverty rate is the ratio of the number of people (in a given age group) whose income falls below the poverty line. - [Producer Price Index](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/producer-price-index): `get_producer_price_index`. The Producer Price Index (PPI) of a variety of countries: the average change in the prices domestic producers receive for their output. - [Purchasing Power](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/purchasing-power): `get_purchasing_power`. The purchasing power of the currencies of a variety of countries: what 100 units of money at the start of the date range buy in every later period. - [Real Effective Exchange Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/real-effective-exchange-rate): `get_real_effective_exchange_rate`. The Real Effective Exchange Rate (REER) of a variety of countries from the Global Macro Database (GMDB). - [Real GDP per Capita](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/real-gdp-per-capita): `get_real_gross_domestic_product_per_capita`. The real GDP per capita of a variety of countries from the Global Macro Database (GMDB). - [Real Interest Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/real-interest-rate): `get_real_interest_rate`. The real interest rate of a variety of countries: the nominal interest rate minus inflation, the true cost of borrowing or return on savings. - [Real Personal Income](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/real-personal-income): `get_real_personal_income`. The real personal income excluding current transfer receipts of the United States from the Bureau of Economic Analysis. - [Real Yield Curve (TIPS)](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/real-yield-curve-tips): `get_real_yield_curve`. The real yield curve of a variety of countries: the yields of inflation-linked government bonds, which pay a return on top of inflation, by maturity. - [Recession Indicator](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/recession-indicator): `get_recession_indicator`. The NBER-based US recession indicator: 1 in the months the National Bureau of Economic Research dates as a recession and 0 otherwise. - [Regulatory Scenario Set](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/regulatory-scenario-set): `get_scenario_set`. A regulator's published scenario set: the thousands of simulated paths of interest rates, equity returns and inflation that pension funds or insurers must... - [Renewable Energy](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/renewable-energy): `get_renewable_energy`. The renewable energy share of a variety of countries: how much of their primary energy supply comes from renewable sources. - [Rent Prices](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/rent-prices): `get_rent_prices`. The housing rent price index of a variety of countries: how the prices paid for renting residential property move over time. - [Reserves Import Cover](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/reserves-import-cover): `get_reserves_import_cover`. The total reserves in months of imports of a variety of countries from the World Bank (FI.RES.TOTL.MO, from the IMF's International Financial Statistics). - [Retail Sales](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/retail-sales): `get_retail_sales`. The advance retail sales (retail and food services) of the United States from the Census Bureau: what consumers spend in shops and restaurants each month. - [Revenue to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/revenue-to-gdp): `get_government_revenue_to_gdp_ratio`. The government revenue to GDP ratio of a variety of countries from the Global Macro Database (GMDB). - [Sahm Rule](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/sahm-rule): `get_sahm_rule`. The Sahm rule recession indicator of a variety of countries: how far the three-month average unemployment rate has risen above its low of the previous... - [Share Prices](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/share-prices): `get_share_prices`. The share price index of a variety of countries: how the prices of the shares traded on each country's stock exchanges move over time. - [Shiller Stock Market Data](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/shiller-stock-market-data): `get_shiller_stock_market_data`. Robert Shiller's monthly US stock market data from 1871: the S&P Composite price, dividends, earnings, interest rates and the CAPE ratio, nominal and real. - [Short Term Interest Rate](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/short-term-interest-rate): `get_short_term_interest_rate`. The short-term interest rate of a variety of countries: the 3-month rate at which banks lend to each other or governments borrow. - [Sovereign Debt Crisis](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/sovereign-debt-crisis): `get_sovereign_debt_crisis`. The sovereign debt crisis dummy of a variety of countries from the Global Macro Database (GMDB). - [Stress Test Scenarios](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/stress-test-scenarios): `get_stress_test_scenario`. The scenarios regulators publish for their stress tests: documented paths of the economy and financial markets under a baseline and an adverse scenario. - [Survey Inflation Expectations](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/survey-inflation-expectations): `get_inflation_expectations`. Where get_breakeven_inflation_expectations is the bond market's expectation, priced daily and including risk premia, this is the forecasters' own... - [Tax Revenue to GDP](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/tax-revenue-to-gdp): `get_government_tax_revenue_to_gdp_ratio`. The government tax revenue to GDP ratio of a variety of countries from the Global Macro Database (GMDB): the tax burden against the size of the economy. - [Taylor Rule](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/taylor-rule): `get_taylor_rule`. The Taylor Rule of Taylor (1993) sets the nominal policy rate at the neutral real rate plus inflation, raised by half of the gap of inflation to its target... - [Terms of Trade](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/terms-of-trade): `get_terms_of_trade`. The terms of trade of a variety of countries: the prices a country receives for its exports relative to the prices it pays for its imports, how many... - [Total Consumption](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/total-consumption): `get_total_consumption`. The total consumption of a variety of countries from the Global Macro Database (GMDB). - [Total Fixed Investment](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/total-fixed-investment): `get_fixed_investment`. The fixed investment of a variety of countries from the Global Macro Database (GMDB). - [Total Investment](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/total-investment): `get_investment`. The investment of a variety of countries from the Global Macro Database (GMDB). - [Trade Balance](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/trade-balance): `get_trade_balance`. The trade balance of a variety of countries from the Global Macro Database (GMDB). - [Trust in Government](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/trust-in-government): `get_trust_in_government`. The trust in government of a variety of countries: the share of people who have confidence in their national government. - [Underlying Inflation](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/underlying-inflation): `get_underlying_inflation`. The median CPI and the 16% trimmed-mean CPI of the Federal Reserve Bank of Cleveland. - [Unemployment Rates](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/unemployment-rates): `get_unemployment_rate`. The unemployment rate of a variety of countries: the share of the labour force that is without work but available for and looking for work. - [Unit Labour Costs](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/unit-labour-costs): `get_unit_labour_costs`. The unit labour costs of a variety of countries: what an economy pays its employees per unit of output, a measure of cost pressure and competitiveness. - [Velocity of Money](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/velocity-of-money): `get_money_supply`. The Velocity of Money is how many times a year the money stock turns over to buy what the economy produces: the nominal GDP over the money supply. - [Wage Growth](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/wage-growth): `get_wage_growth`. The wage growth of a variety of countries: how fast pay rises on the same period a year earlier, before or after inflation. - [Yield Curve Recession Probability](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/yield-curve-recession-probability): `get_yield_curve_recession_probability`. The yield curve recession probability: the chance of a US recession twelve months ahead that the spread of the 10-year Treasury yield over the 3-month... - [Yield Curve Slope](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/yield-curve-slope): `get_yield_curve_slope`. The yield curve slope of a variety of countries: the 10-year government bond yield minus the 3-month money market rate, the shape of the yield curve in one... - [Yield Decomposition](https://www.jeroenbouma.com/projects/financetoolkit/docs/economics/yield-decomposition): `get_yield_decomposition`. Decompose the nominal government bond yield into the real yield and the breakeven inflation: how much of the yield pays for expected inflation. ## [ETF](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf) - [Active Share](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/active-share): `get_active_share`. Measure how much each fund's holdings differ from every other fund's: half the sum, over all holdings of either fund, of the absolute difference between... - [Concentration](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/concentration): `get_concentration`. Measure how concentrated every fund is in its largest holdings. With the formula, how to read it and an example in Python. - [Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/contribution): `get_contribution`. How much every holding or sector of a fund added to or took off its return over the period. With what it means and an example in Python. - [Country Weightings](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/country-weightings): `get_country_weightings`. Two funds tracking similar markets can differ considerably here, which matters for the currency and political risk the fund carries. - [ETF Holders](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/etf-holders): `get_holders`. The ETFs and funds that hold each ticker: the shares and market value each holds and how much of it the ticker makes up, the most shares first. - [Fund Information](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/fund-information): `get_information`. Everything Financial Modeling Prep publishes about every fund. With what it means and an example in Python. - [Fund Profile](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/fund-profile): `get_profile`. The profile of every fund: who issues it, what it holds, what it costs and how large it is. With what it means and an example in Python. - [Holdings](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/holdings): `get_holdings`. The holdings of every fund: each asset it holds with the number of shares, the market value and the weight in the fund (as a decimal). - [Liquidity](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/liquidity): `get_liquidity`. Measure how liquid every fund is to trade, from its daily volume and the price impact of trading it. With what it means and an example in Python. - [Look-Through Valuation](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/look-through-valuation): `get_look_through_valuation`. Value every fund through its holdings, as the weighted valuation ratios of the companies it holds. With what it means and an example in Python. - [Overlap](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/overlap): `get_overlap`. Measure how much the funds hold of the same: for every pair of funds the sum, over the holdings they share, of the smaller of the two weights. - [Return Excluding Holdings](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/return-excluding-holdings): `get_return_excluding`. The return a fund would have had without some of its holdings or sectors. With what it means and an example in Python. - [Sector Weightings](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/sector-weightings): `get_sector_weightings`. This shows whether a fund that looks broad is in fact concentrated in a few sectors, such as technology in many large-cap indices. - [Tracking](https://www.jeroenbouma.com/projects/financetoolkit/docs/etf/tracking): `get_tracking`. Measure how closely every fund tracks the Benchmark of the Toolkit, which for an index fund should be the index it follows (set benchmark_ticker to a total... ## [Portfolio Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization) - [Absolute Angular Codependence](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/absolute-angular-codependence): `get_codependence_matrix`. The Absolute Angular Codependence treats a negative correlation as as close as a positive one of the same size. - [Asset Clusters](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/asset-clusters): `get_asset_clusters`. The Hierarchical Clustering builds a tree of the assets by merging, step by step, the two closest groups under the chosen linkage, and cuts it into a... - [Augmented Black-Litterman Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/augmented-black-litterman-model): `get_black_litterman_weights`. The Augmented Black-Litterman Model of Cheung (2009) takes views on factors next to, or instead of, views on the assets. - [Average Drawdown Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/average-drawdown-contribution): `get_risk_contributions`. The Average Drawdown Contribution splits the average drawdown of the uncompounded cumulative return of the portfolio over all periods among the assets. - [Bayes-Stein Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/bayes-stein-shrinkage): `get_expected_returns_estimate`. The Bayes-Stein Shrinkage pulls the average returns towards the average return of the minimum variance portfolio, by an intensity that grows as the... - [Bayesian Black-Litterman Model](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/bayesian-black-litterman-model): `get_black_litterman_weights`. The Bayesian Black-Litterman Model of Kolm and Ritter (2017) puts the views on the factors of a factor model rather than on the assets. - [Black-Litterman](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/black-litterman): `get_black_litterman_weights`. The Black-Litterman Model combines the implied returns of the market with views on the assets. With the formula, how to read it and an example in Python. - [Bodnar-Okhrin-Parolya Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/bodnar-okhrin-parolya-shrinkage): `get_expected_returns_estimate`. The Bodnar-Okhrin-Parolya Shrinkage combines the average returns and a target, their grand mean, with weights that are optimal for the quadratic loss when... - [Brinson Attribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/brinson-attribution): `get_brinson_attribution`. The Brinson-Fachler attribution of the portfolio's return over the benchmark, by sector, over the Toolkit's date range. - [CAPM Expected Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/capm-expected-return): `get_expected_returns_estimate`. The CAPM Expected Return is the return the Capital Asset Pricing Model of Sharpe (1964) requires of an asset for its market risk. - [Centroid Expected Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/centroid-expected-return): `get_expected_returns_estimate`. The Centroid Expected Return derives the expected returns from an ordering of the assets alone, from the highest expected return to the lowest (Almgren and... - [Codependence Matrix](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/codependence-matrix): `get_codependence_matrix`. The Pearson Correlation is the linear correlation of two assets from the covariance estimate, so a shrinkage or denoised covariance estimator also shapes... - [Cokurtosis Matrix](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/cokurtosis-matrix): `get_cokurtosis_matrix`. The cokurtosis matrix M4 of the assets, the fourth co-moments of their returns: how often assets have extreme returns at the same time. - [Conditional Drawdown at Risk Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/conditional-drawdown-at-risk-contribution): `get_risk_contributions`. The Conditional Drawdown at Risk Contribution splits the Conditional Drawdown at Risk (CDaR) of the portfolio, the average of its deepest drawdowns... - [Conditional Drawdown at Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/conditional-drawdown-at-risk-parity): `get_risk_parity_weights`. The Conditional Drawdown at Risk Parity gives every asset the same share, or its budgeted share, of the average of the deepest alpha share of the drawdowns... - [Conditional Value at Risk Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/conditional-value-at-risk-contribution): `get_risk_contributions`. The Conditional Value at Risk Contribution splits the expected shortfall (CVaR) of the portfolio, the average loss in its worst periods, among the assets. - [Conditional Value at Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/conditional-value-at-risk-parity): `get_risk_parity_weights`. The Conditional Value at Risk Parity gives every asset the same share, or its budgeted share, of the expected shortfall of the portfolio, the average loss... - [Conditional Value at Risk Range Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/conditional-value-at-risk-range-parity): `get_risk_parity_weights`. The Conditional Value at Risk Range Parity gives every asset the same share, or its budgeted share, of the Conditional Value at Risk of the losses plus... - [Constant Conditional Correlation GARCH Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/constant-conditional-correlation-garch-covariance): `get_covariance_estimate`. The Constant Conditional Correlation GARCH Covariance forecasts the covariance of the next period from a GARCH(1, 1) volatility per asset and a constant... - [Coskewness Matrix](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/coskewness-matrix): `get_coskewness_matrix`. The coskewness matrix M3 of the assets, the third co-moments of their returns: how the return of one asset moves with the joint variation of two others. - [Covariance Estimate](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/covariance-estimate): `get_covariance_estimate`. The Sample Covariance is the textbook estimate: the average product of the deviations of two assets' returns from their means. - [Critical Line Weights](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/critical-line-weights): `get_critical_line_weights`. These are the exact points where an asset enters or leaves the portfolio. With the formula, how to read it and an example in Python. - [Denoised Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/denoised-covariance): `get_covariance_estimate`. The Denoised Covariance replaces the eigenvalues of the correlation matrix that random returns alone could produce by their average (Laloux, Cizeau... - [Denoised and Detoned Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/denoised-and-detoned-covariance): `get_covariance_estimate`. The Denoised and Detoned Covariance first denoises the correlation matrix, replacing the eigenvalues that random returns alone could produce by their... - [Detoned Correlation](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/detoned-correlation): `get_codependence_matrix`. The Detoned Correlation is the correlation matrix without its first principal components, the market, rescaled to a unit diagonal (López de Prado, 2020). - [Detoned Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/detoned-covariance): `get_covariance_estimate`. The Detoned Covariance removes the first principal components of the correlation matrix, the market, and rescales the rest to a unit diagonal (López de... - [Discrete Allocation](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/discrete-allocation): `get_discrete_allocation`. How many whole shares to buy of each asset to hold weights with a portfolio value, at the latest traded (split-adjusted) closing price. - [Distance Correlation](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/distance-correlation): `get_codependence_matrix`. The Distance Correlation measures how much two assets depend on each other, linearly or not. - [Distributionally Robust CVaR Weights](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/distributionally-robust-cvar-weights): `get_distributionally_robust_cvar_weights`. It is the portfolio that minimizes the expected loss plus the risk aversion times the Conditional Value at Risk (CVaR) under the least favourable... - [Diversification Metrics](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/diversification-metrics): `get_diversification_metrics`. How diversified a portfolio is, by the concentration of its weights and by how its risk spreads over independent sources. - [Drawdown at Risk Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/drawdown-at-risk-contribution): `get_risk_contributions`. The Drawdown at Risk Contribution splits the Drawdown at Risk (DaR) of the portfolio, the drawdown of the uncompounded cumulative return that only the... - [Efficient Frontier](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/efficient-frontier): `get_efficient_frontier`. These are the portfolios with the lowest volatility for each level of expected return, from the minimum variance portfolio up to the highest return the... - [Entropic Drawdown at Risk Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/entropic-drawdown-at-risk-contribution): `get_risk_contributions`. The Entropic Drawdown at Risk Contribution splits the Entropic Drawdown at Risk (EDaR) of the portfolio, the Entropic Value at Risk of Ahmadi-Javid (2012)... - [Entropic Value at Risk Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/entropic-value-at-risk-contribution): `get_risk_contributions`. The Entropic Value at Risk Contribution splits the Entropic Value at Risk (EVaR) of the portfolio among the assets. With the formula and an example in Python. - [Entropy Pooling](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/entropy-pooling): `get_entropy_pooling`. Reweight the historical periods so that they agree with views on the assets, by Entropy Pooling (Meucci, 2008). With what it means and an example in Python. - [Estimation Uncertainty](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/estimation-uncertainty): `get_estimation_uncertainty`. Both are estimated again on many simulated histories of the same length, and the spread of those estimates gives a confidence interval for every expected... - [Expected Returns Estimate](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/expected-returns-estimate): `get_expected_returns_estimate`. ... - [Exponentially Weighted Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/exponentially-weighted-covariance): `get_covariance_estimate`. The Exponentially Weighted Covariance weighs the products of the deviations from the mean return by weights that fall geometrically with the age of a... - [Exponentially Weighted Geometric Mean](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/exponentially-weighted-geometric-mean): `get_expected_returns_estimate`. The Exponentially Weighted Geometric Mean compounds the Exponentially Weighted Mean over a year, the yearly growth that the recent average return per... - [Exponentially Weighted Mean](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/exponentially-weighted-mean): `get_expected_returns_estimate`. The Exponentially Weighted Mean is the average return with weights that fall geometrically with the age of a period, so recent periods count most and the... - [Factor Attribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/factor-attribution): `get_factor_attribution`. Attribute the return of a portfolio in every period to factors, by default the five factors of Fama and French (market, size, value, profitability and... - [Factor Loadings](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/factor-loadings): `get_factor_loadings`. It is the regression of every asset's returns on factor returns, by default the five factors of Fama and French (market, size, value, profitability and... - [Factor Model Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/factor-model-covariance): `get_covariance_estimate`. The Factor Model Covariance is the covariance that a time series factor model implies. - [Factor Risk Contributions](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/factor-risk-contributions): `get_factor_risk_contributions`. How much each factor, by default the five factors of Fama and French, contributes to the risk of a portfolio, rather than each asset. - [Fast Threshold Clustering Algorithm](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/fast-threshold-clustering-algorithm): `get_asset_clusters`. The Fast Threshold Clustering Algorithm (FTCA) of Varadi (2013) is a greedy clustering on a codependence threshold that needs no number of clusters. - [Fixed Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/fixed-shrinkage): `get_covariance_estimate`. The Fixed Shrinkage pulls the sample covariance towards the identity matrix scaled by the average variance, the target of Ledoit and Wolf (2004), by an... - [Generic Non-Parametric Representation Codependence](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/generic-non-parametric-representation-codependence): `get_codependence_matrix`. The Generic Non-Parametric Representation Codependence (GNPR) combines how two assets move together, from the ranks of their returns, with how much their... - [Geodesic Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/geodesic-shrinkage): `get_covariance_estimate`. The Geodesic Shrinkage moves the sample covariance towards the identity matrix scaled by the average variance along the geodesic of the positive definite... - [Geometric Mean](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/geometric-mean): `get_expected_returns_estimate`. The Geometric Mean is the compounded average return over the history: the constant yearly return that turns the first value into the last, also called the... - [Gerber Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/gerber-covariance): `get_covariance_estimate`. The Gerber Covariance replaces the correlation by the Gerber statistic, which counts only the periods in which returns move beyond a threshold (Gerber... - [Gerber Statistic](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/gerber-statistic): `get_codependence_matrix`. The Gerber Statistic counts only the periods in which returns move beyond a threshold, as concordant when both move in the same direction and discordant... - [Gini Mean Difference Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/gini-mean-difference-contribution): `get_risk_contributions`. The Gini Mean Difference Contribution splits the Gini mean difference of the portfolio, the average absolute difference between its returns in two periods... - [Gini Mean Difference Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/gini-mean-difference-risk-parity): `get_risk_parity_weights`. The Gini Mean Difference Risk Parity gives every asset the same share, or its budgeted share, of the Gini mean difference of the portfolio, the average... - [Growth Optimal (Kelly)](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/growth-optimal-kelly): `get_growth_optimal_weights`. It is the fully invested portfolio with the highest expected logarithmic growth of wealth, which in the long run ends up with more wealth than any other... - [Hierarchical Equal Risk Contribution (HERC)](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/hierarchical-equal-risk-contribution-herc): `get_hierarchical_equal_risk_contribution_weights`. The Hierarchical Equal Risk Contribution (HERC) weights, which split the weight top-down over clusters of similar assets by their risk. - [Hierarchical Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/hierarchical-risk-parity): `get_hierarchical_risk_parity_weights`. The Hierarchical Risk Parity (HRP) weights, which split the risk over clusters of similar assets without inverting the covariance matrix. - [Historical Mean](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/historical-mean): `get_expected_returns_estimate`. The Historical Mean is the arithmetic average return per period, scaled to a year. With the formula, how to read it and an example in Python. - [Inverse Volatility](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/inverse-volatility): `get_inverse_volatility_weights`. Inverse volatility weights: each asset's weight is proportional to one over its volatility, w_i = (1 / σ_i) / Σ (1 / σ_j). - [James-Stein Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/james-stein-shrinkage): `get_expected_returns_estimate`. The James-Stein Shrinkage pulls every average return towards their grand mean, the average of the average returns. With the formula and an example in Python. - [Kendall Rank Correlation](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/kendall-rank-correlation): `get_codependence_matrix`. The Kendall Rank Correlation counts the pairs of periods in which two assets move in the same order (concordant) against those in which they move in... - [Kurtosis Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/kurtosis-contribution): `get_risk_contributions`. The Kurtosis Contribution splits the kurtosis measure of the portfolio, the square root of the fourth central moment of its returns, among the assets. - [Ledoit-Wolf Constant Correlation Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/ledoit-wolf-constant-correlation-shrinkage): `get_covariance_estimate`. The Ledoit-Wolf Constant Correlation Shrinkage pulls the sample covariance towards the matrix that keeps every sample variance and sets every correlation... - [Ledoit-Wolf Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/ledoit-wolf-shrinkage): `get_covariance_estimate`. The Ledoit-Wolf Shrinkage pulls the sample covariance towards the identity matrix scaled by the average variance, with the shrinkage intensity that... - [Ledoit-Wolf Single Factor Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/ledoit-wolf-single-factor-shrinkage): `get_covariance_estimate`. The Ledoit-Wolf Single Factor Shrinkage pulls the sample covariance towards the covariance matrix that the market model implies, with the benchmark as the... - [Look-Through Exposure](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/look-through-exposure): `get_look_through_exposure`. An ETF's weight is spread over its own sectors, countries or holdings, a stock counts fully towards its own sector, country or itself, and everything is... - [Lower Partial Moment Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/lower-partial-moment-contribution): `get_risk_contributions`. The Lower Partial Moment Contribution splits the first lower partial moment of the portfolio below a return of zero, the average shortfall below zero... - [Lower Partial Moment Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/lower-partial-moment-risk-parity): `get_risk_parity_weights`. The Lower Partial Moment Risk Parity gives every asset the same share, or its budgeted share, of the first lower partial moment of the portfolio below a... - [Lower Tail Dependence](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/lower-tail-dependence): `get_codependence_matrix`. The Lower Tail Dependence measures how often two assets fall into their lowest returns together. - [MM-Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mm-estimator): `get_covariance_estimate`. The MM-Estimator is a robust covariance that stays reliable when almost half the periods are outliers while losing little efficiency for normal returns. - [Maximum Diversification](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/maximum-diversification): `get_maximum_diversification_weights`. It is the fully invested portfolio with the highest diversification ratio, the weighted average volatility of its assets divided by its own volatility. - [Maximum Drawdown Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/maximum-drawdown-contribution): `get_risk_contributions`. The Maximum Drawdown Contribution splits the maximum drawdown of the uncompounded cumulative return of the portfolio, its largest fall from a peak, among... - [Maximum Omega Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/maximum-omega-ratio): `get_maximum_omega_weights`. The weights of the portfolio with the highest Omega ratio over the historical returns. - [Maximum Sharpe Ratio](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/maximum-sharpe-ratio): `get_maximum_sharpe_weights`. It is the fully invested portfolio with the highest expected return per unit of volatility above the risk free rate. - [Mean Absolute Deviation Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-absolute-deviation-contribution): `get_risk_contributions`. The Mean Absolute Deviation Contribution splits the mean absolute deviation of the portfolio returns from their average (Konno and Yamazaki, 1991) among... - [Mean Absolute Deviation Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-absolute-deviation-risk-parity): `get_risk_parity_weights`. The Mean Absolute Deviation Risk Parity gives every asset the same share, or its budgeted share, of the mean absolute deviation of the portfolio returns... - [Mean-Average Drawdown Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-average-drawdown-optimization): `get_mean_risk_weights`. The Average Drawdown is the average drawdown of the uncompounded cumulative return of the portfolio over all periods (Chekhlov, Uryasev and Zabarankin, 2005). - [Mean-Conditional Drawdown at Risk Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-conditional-drawdown-at-risk-optimization): `get_mean_risk_weights`. The Conditional Drawdown at Risk (CDaR) is the average of the worst alpha share of the drawdowns of the uncompounded cumulative return of the portfolio... - [Mean-Conditional Value at Risk Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-conditional-value-at-risk-optimization): `get_mean_risk_weights`. The Conditional Value at Risk (CVaR) is the average loss in the worst alpha share of the periods, the expected shortfall. - [Mean-Conditional Value at Risk Range Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-conditional-value-at-risk-range-optimization): `get_mean_risk_weights`. The Conditional Value at Risk Range is the Conditional Value at Risk of the losses plus that of the gains. - [Mean-Gini Mean Difference Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-gini-mean-difference-optimization): `get_mean_risk_weights`. The Gini Mean Difference is the average absolute difference between the portfolio returns of two periods (Yitzhaki, 1982). - [Mean-Lower Partial Moment Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-lower-partial-moment-optimization): `get_mean_risk_weights`. The Lower Partial Moment is the first lower partial moment of the portfolio returns, the average shortfall below a minimum acceptable return (Bawa, 1975). - [Mean-Maximum Drawdown Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-maximum-drawdown-optimization): `get_mean_risk_weights`. The Maximum Drawdown is the largest fall of the uncompounded cumulative return of the portfolio from a peak over the sample. - [Mean-Range Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-range-optimization): `get_mean_risk_weights`. The Range is the difference between the best and the worst return of the portfolio over the sample, the width of its returns (Cajas, 2021). - [Mean-Risk Weights](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-risk-weights): `get_mean_risk_weights`. The Mean Absolute Deviation is the average absolute deviation of the portfolio returns from their mean. With the formula and an example in Python. - [Mean-Semideviation Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-semideviation-optimization): `get_mean_risk_weights`. The Semideviation is the deviation of the portfolio returns below a minimum acceptable return, the downside risk that Markowitz (1959) proposed as the... - [Mean-Tail Gini Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-tail-gini-optimization): `get_mean_risk_weights`. The Tail Gini is a loss measure of the worst alpha share of the portfolio returns that, unlike the Conditional Value at Risk, also counts how far the... - [Mean-Tail Gini Range Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-tail-gini-range-optimization): `get_mean_risk_weights`. The Tail Gini Range is the Tail Gini of the losses plus that of the gains, the width of both tails of the portfolio returns with the most extreme returns... - [Mean-Ulcer Index Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-ulcer-index-optimization): `get_mean_risk_weights`. The Ulcer Index is the root mean square of the drawdowns of the uncompounded cumulative return of the portfolio (Martin and McCann, 1989). - [Mean-Variance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-variance): `get_mean_variance_weights`. With a target return, it is the portfolio with the lowest volatility that expects that return. With what it means and an example in Python. - [Mean-Worst Realization Optimization](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mean-worst-realization-optimization): `get_mean_risk_weights`. The Worst Realization is the largest loss of the portfolio over the sample, the minimax rule of Young (1998). - [Minimum Covariance Determinant](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/minimum-covariance-determinant): `get_covariance_estimate`. The Minimum Covariance Determinant (MCD) is the covariance of the half of the periods whose covariance matrix has the smallest determinant, the most... - [Minimum Tracking Error](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/minimum-tracking-error): `get_minimum_tracking_error_weights`. It is the fully invested portfolio with the lowest tracking error, the volatility of its return minus the benchmark's. - [Minimum Variance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/minimum-variance): `get_minimum_variance_weights`. The weights of the minimum variance portfolio: the fully invested portfolio of the Toolkit's assets with the lowest volatility. - [Mutual Information](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/mutual-information): `get_codependence_matrix`. The Mutual Information measures how much knowing the return of one asset tells about the return of the other, from histograms of their returns, linear or... - [Nested Clustered Optimization (NCO)](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/nested-clustered-optimization-nco): `get_nested_clustered_optimization_weights`. The Nested Clustered Optimization (NCO) weights, optimized within clusters of similar assets and then across the clusters. - [Nonparametric Eigenvalue-Regularized Covariance Matrix Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/nonparametric-eigenvalue-regularized-covariance-matrix-estimator): `get_covariance_estimate`. The Nonparametric Eigenvalue-Regularized Covariance Matrix Estimator (NERCOME) takes the eigenvectors from one part of the periods and the variances along... - [Optimal Number of Clusters](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/optimal-number-of-clusters): `get_asset_clusters`. The Optimal Number of Clusters (ONC) algorithm of López de Prado and Lewis (2019) finds the number of clusters itself. - [Optimization Backtest](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/optimization-backtest): `get_optimization_backtest`. Backtest the portfolio optimizers out of sample against equal weights (1/N) and the benchmark. With what it means and an example in Python. - [Oracle Approximating Shrinkage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/oracle-approximating-shrinkage): `get_covariance_estimate`. The Oracle Approximating Shrinkage (OAS) pulls the sample covariance towards the identity matrix scaled by the average variance, like the Ledoit-Wolf... - [Portfolio Risk Metrics](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/portfolio-risk-metrics): `get_portfolio_risk_metrics`. The portfolio's return in each period is the weighted return of its assets, r_p,t = Σ w_i r_i,t, which holds the weights constant by rebalancing to them... - [Random Matrix Statistics](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/random-matrix-statistics): `get_random_matrix_statistics`. The Marčenko-Pastur distribution to the eigenvalues of the correlation matrix of the assets, to see how much of it random returns alone could produce. - [Regime Adjusted Exponentially Weighted Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/regime-adjusted-exponentially-weighted-covariance): `get_covariance_estimate`. The Regime Adjusted Exponentially Weighted Covariance rescales an exponentially weighted covariance by a short-term volatility update. - [Resampled Efficient Frontier](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/resampled-efficient-frontier): `get_resampled_efficient_weights`. It is the average of the optimal weights over many return histories that could have been observed instead of the actual one. - [Return Contributions](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/return-contributions): `get_return_contributions`. The periods are weeks, months, quarters or years, and the contributions of the assets add up to the portfolio's return of that period. - [Risk Contributions](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/risk-contributions): `get_risk_contributions`. The Volatility Contribution splits the volatility of the portfolio, the standard deviation of its returns from the covariance estimate, among the assets. - [Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/risk-parity): `get_risk_parity_weights`. The Volatility Risk Parity gives every asset the same share, or its budgeted share, of the volatility of the portfolio from the covariance estimate. - [Rocke S-Estimator](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/rocke-s-estimator): `get_covariance_estimate`. The Rocke S-Estimator is a robust covariance that keeps its robustness when there are many assets, where an S-estimator with the bisquare function of the... - [Schur Complementary Allocation](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/schur-complementary-allocation): `get_schur_complementary_weights`. The Schur Complementary Allocation weights, which run from Hierarchical Risk Parity (γ = 0) towards the minimum variance portfolio (γ near 1). - [Semicovariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/semicovariance): `get_covariance_estimate`. The Semicovariance measures how the assets move together below a return of zero, each return above it counting as zero, for an investor who minds only... - [Semideviation Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/semideviation-contribution): `get_risk_contributions`. The Semideviation Contribution splits the downside deviation of the portfolio below a return of zero (Sortino and Price, 1994) among the assets. - [Semideviation Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/semideviation-risk-parity): `get_risk_parity_weights`. The Semideviation Risk Parity gives every asset the same share, or its budgeted share, of the downside deviation of the portfolio below a return of zero... - [Spearman Rank Correlation](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/spearman-rank-correlation): `get_codependence_matrix`. The Spearman Rank Correlation is the Pearson correlation of the ranks of the returns (Spearman, 1904). - [Spectral Denoised Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/spectral-denoised-covariance): `get_covariance_estimate`. The Spectral Denoised Covariance sets the eigenvalues of the correlation matrix that random returns alone could produce to zero, so only the signal remains... - [Squared Angular Codependence](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/squared-angular-codependence): `get_codependence_matrix`. The Squared Angular Codependence is the squared Pearson correlation of the covariance estimate, the share of the variance of one asset that the other... - [Stacking Weights](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/stacking-weights): `get_stacking_weights`. Several optimizers each give their portfolio, and a final optimizer divides the weight over those portfolios as if they were assets, judged by the returns... - [Stress Test](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/stress-test): `get_stress_test`. It shows the return of every asset and of the buy-and-hold portfolio from the start to the end of each scenario, next to the benchmark. - [Tail Gini Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/tail-gini-contribution): `get_risk_contributions`. The Tail Gini Contribution splits the Tail Gini of the portfolio among the assets. With the formula, how to read it and an example in Python. - [Tail Gini Range Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/tail-gini-range-risk-parity): `get_risk_parity_weights`. The Tail Gini Range Risk Parity gives every asset the same share, or its budgeted share, of the Tail Gini of the losses plus that of the gains of the... - [Tail Gini Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/tail-gini-risk-parity): `get_risk_parity_weights`. The Tail Gini Risk Parity gives every asset the same share, or its budgeted share, of the Tail Gini of the portfolio, a loss measure of the worst alpha... - [Targeted Shrinkage Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/targeted-shrinkage-covariance): `get_covariance_estimate`. The Targeted Shrinkage Covariance shrinks the part of the correlation matrix that random returns alone could produce towards its own diagonal, and leaves... - [Ulcer Index Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/ulcer-index-contribution): `get_risk_contributions`. The Ulcer Index Contribution splits the Ulcer Index of the portfolio, the root mean square of the drawdowns of its uncompounded cumulative return (Martin... - [Ulcer Index Risk Parity](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/ulcer-index-risk-parity): `get_risk_parity_weights`. The Ulcer Index Risk Parity gives every asset the same share, or its budgeted share, of the Ulcer Index of the portfolio, the root mean square of the... - [Value at Risk Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/value-at-risk-contribution): `get_risk_contributions`. The Value at Risk Contribution splits the historical Value at Risk of the portfolio, the loss that only the worst alpha share of the periods exceed, among... - [Worst Realization Contribution](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/worst-realization-contribution): `get_risk_contributions`. The Worst Realization Contribution splits the largest loss of the portfolio over the sample, its lowest return with the sign turned (Young, 1998), among... - [Worst-Case Mean-Variance Weights](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/worst-case-mean-variance-weights): `get_worst_case_mean_variance_weights`. It is the portfolio that is optimal for the least favourable expected returns within a confidence region around the estimates, instead of for the estimates... - [j-LoGo Covariance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio-optimization/j-logo-covariance): `get_covariance_estimate`. The j-LoGo Covariance is the inverse of a sparse precision matrix built on the Triangulated Maximally Filtered Graph (TMFG) of the correlations, a planar... ## [Portfolio](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio) - [Benchmark Historical Data](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/benchmark-historical-data): `collect_benchmark_historical_data`. Collect and align historical benchmark data with the portfolio's data. Volatility, Excess Return and Excess Volatility are not included here. - [Classic Portfolios](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/classic-portfolios): `get_presets`. List the classic portfolios that ship with the Finance Toolkit, to use with Portfolio.from_preset. With what it means and an example in Python. - [From a Classic Portfolio](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/from-a-classic-portfolio): `from_preset`. Create a Portfolio from one of the classic portfolios. With what it means and an example in Python. - [Gross Leverage](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/gross-leverage): `get_gross_leverage`. The gross leverage of the portfolio, the value of its long and short positions together as a multiple of its net value. - [Historical Data](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/historical-data): `collect_historical_data`. Collect and adjust historical price data for the portfolio's tickers. Volatility, Excess Return and Excess Volatility are not included here. - [Load into the Toolkit](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/load-into-the-toolkit): `toolkit`. Converts the Portfolio to a Finance Toolkit object. With what it means and an example in Python. - [Money-Weighted Return](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/money-weighted-return): `get_money_weighted_return`. It is the annual rate at which the money put in grew into the money taken out plus the value still held (the internal rate of return, or XIRR, of the... - [Portfolio Overview](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/portfolio-overview): `get_portfolio_overview`. And provide an overview of the portfolio's key statistics, including performance metrics and cost-related information. - [Portfolio Performance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/portfolio-performance): `get_portfolio_performance`. The Return is the total return on the capital deployed since the purchase, as of the end of the period, not the return within the period... - [Position Timing](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/position-timing): `get_position_timing`. How often each position was flattened (sold to zero) or flipped (from long to short or back), the number of bets these end, and the average holding period... - [Positions Overview](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/positions-overview): `get_positions_overview`. Positions are marked at the traded closing price, the basis of the transaction prices, and the dividends are added as cash when they are paid, so the... - [Read Portfolio Dataset](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/read-portfolio-dataset): `read_portfolio_dataset`. Read and consolidate cash flow data from Excel or CSV files into a single DataFrame. With what it means and an example in Python. - [Return Contributions](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/return-contributions): `get_return_contributions`. The periods are weeks, months, quarters or years, and the contributions add up to the portfolio's return of that period. - [Trade List](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/trade-list): `get_trades`. Its round trips, every lot a transaction opened paired with the transaction that closed it, with its profit and loss, return and duration, and the lots... - [Trade Statistics](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/trade-statistics): `get_trade_statistics`. How many trades there were, how many made money, how much they made and lost, the profit factor, expectancy, System Quality Number and Kelly fraction, how... - [Transactions Overview](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/transactions-overview): `get_transactions_overview`. This method calculates various transaction overview ratios, such as returns, costs, and profit & loss (PnL), based on the transaction dataset. - [Transactions Performance](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/transactions-performance): `get_transactions_performance`. This method calculates per asset and period how the units bought in that period performed up to the end of the period, next to the return the identical... - [Turnover](https://www.jeroenbouma.com/projects/financetoolkit/docs/portfolio/turnover): `get_turnover`. The turnover of the portfolio, the value traded as a share of the value held: how much of the portfolio the transactions replace.