Skip to content
All library documents

Visualizing Market Capitalization Distribution After Quantile Trimming

Article BigQuant

Summary

This example queries Chinese stock valuation data for a specified date and examines the distribution of total market capitalization. It trims observations below the second percentile and above the ninety-eighth percentile, divides the remaining values into ten equal-width intervals, counts the stocks in each interval, and renders the counts as a bar chart.

The method demonstrates a basic workflow for retrieving cross-sectional data, reducing the influence of extreme values, binning observations, and visualizing the resulting distribution. It is descriptive analysis rather than a trading strategy, and the document provides no chart output or interpretation of the distribution. The chosen date, percentile cutoffs, and equal-width bins shape what the chart reveals; results may differ with other dates or settings. The example also does not discuss missing values, units, or how to interpret market-cap concentration for investment decisions.

Key ideas

  • The example retrieves Chinese stock market capitalization data for one date.
  • It excludes observations below the second percentile and above the ninety-eighth percentile before plotting.
  • It groups the remaining values into ten equal-width bins and counts observations in each bin.
  • A bar chart presents the frequency of stocks across market-cap ranges.
  • The analysis is descriptive and does not establish a trading signal or investment conclusion.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.