AI writes market analysis by collecting and analyzing various market data, identifying trends and patterns, and generating insightful analysis based on the data.