[OC] I analyzed 6 years of Indian stock market data — Sun Pharma gave 320% returns with LOWER risk than IT and Banking sectors Statistics
![[OC] I analyzed 6 years of Indian stock market data — Sun Pharma gave 320% returns with LOWER risk than IT and Banking sectors Statistics](/api/images/reddit-maps/1vfvi4q_1785902403727.jpg)
Data Analysis
What This Visualization Shows
This data visualization displays "[OC] I analyzed 6 years of Indian stock market data — Sun Pharma gave 320% returns with LOWER risk than IT and Banking sectors" and provides a clear visual representation of the underlying data patterns and trends. The visualization focuses on Analyzed real NSE stock price data from January 2020
to January 2026 for 5 major Indian sectors using
Python and Yahoo Finance API.
Key findings:
1. Sun Pharma delivered 320% return — highest of all
sectors. Rs.1 lakh became Rs.4.2 lakh in 6 years.
2. Sun Pharma also had LOWER volatility (24.8%) than
IT (27.4%) and Auto (28.7%). High return with lower
risk is rare and is exactly what investors look for.
3. HUL (FMCG) has a negative Sharpe Ratio of -0.05.
This means HUL gave LESS return than a simple bank
fixed deposit while still exposing you to stock
market risk. Classic defensive stock trap.
4. HDFC Bank — India's largest private bank — returned
only 63.7% over 6 years. RBI regulatory actions and
merger uncertainty suppressed the stock.
5. All sectors have low correlation (0.23 to 0.40)
meaning holding all 5 together provides genuine
diversification benefit.
COVID crash is clearly visible in March 2020 — all
sectors dipped simultaneously then recovered at
very different speeds.
Tools: Python, Pandas, yfinance, Matplotlib, Seaborn
Data: Yahoo Finance API (real NSE data)
Full project: [github.com/surendrasinghdata/stock-sector-analysis](http://github.com/surendrasinghdata/stock-sector-analysis), which allows us to understand complex relationships and insights within the data through visual storytelling.
Deep Dive into the Topic
This data visualization represents a sophisticated analysis of complex information patterns that provide valuable insights into underlying trends and relationships. Data visualization serves as a bridge between raw numerical data and human understanding, transforming abstract statistics into comprehensible visual narratives.
The power of data visualization lies in its ability to reveal patterns, outliers, and correlations that might not be apparent in traditional tabular formats. Through careful selection of chart types, color schemes, and interactive elements, effective visualizations can communicate complex information quickly and accurately to diverse audiences.
Modern data visualization combines statistical analysis with design principles to create compelling visual stories. This interdisciplinary approach requires understanding both the underlying data and the cognitive processes involved in visual perception. The result is more effective communication of quantitative insights that can inform decision-making and drive positive change.
Data Analysis and Insights
The patterns revealed in this visualization demonstrate the importance of systematic data analysis in understanding complex phenomena. By examining different data segments, time periods, and categorical breakdowns, we can identify trends that inform strategic planning and decision-making processes.
Statistical analysis of this data reveals variations across different dimensions that provide insights into underlying drivers and relationships. These patterns help identify areas of opportunity, potential risks, and key performance indicators that can guide future actions and resource allocation.
The analytical approach used in this visualization enables comparison across different categories, time periods, or geographic regions, revealing insights that support evidence-based decision-making. This type of analysis is essential for organizations seeking to optimize performance and understand complex market dynamics.
Significance and Applications
This data visualization has important implications for understanding trends and patterns that affect decision-making across multiple sectors. The insights derived from this analysis can inform policy development, business strategy, resource allocation, and operational improvements.
For analysts, researchers, and decision-makers, this type of data visualization provides essential insights for strategic planning and performance optimization. Whether addressing operational challenges, market analysis, or policy development, understanding data patterns helps create more effective strategies and solutions.
The broader significance lies in how this information contributes to our understanding of complex systems and relationships. This knowledge helps predict future trends, identify potential challenges, and develop more informed approaches to problem-solving and opportunity identification.
Comments
Loading comments...
Leave a Comment
About the Author

Alex Cartwright
Senior Data Visualization Expert
Alex Cartwright is a renowned data visualization specialist and infographic designer with over 15 years of experience in...