Ebooks
Investment Risk and Return Analysis In Python
Learn how to evaluate investment risks and returns using Python. Covers financial risk fundamentals, return calculations, statistical measures (mean, variance, skewness, kurtosis), and practical analysis techniques for real-world investment data.
14 chapters · 1 free to read, 13 in the PDF · 2 files
This book is designed for finance students and investment professionals who want a practical understanding of how to evaluate investment risks and returns using Python.
Starting from the foundational concepts of risk and return, the book walks you through step-by-step calculations using real stock data. You will learn how to measure different types of returns, understand the statistical properties of return distributions, and apply formal normality tests — all using Python’s scientific computing ecosystem.
What You Will Learn
- Calculate simple (discrete) and logarithmic returns from stock price data
- Visualise the distribution of returns using histograms
- Understand and compute the four moments of a distribution: mean, variance, skewness, and kurtosis
- Test whether financial returns follow a normal distribution using the Shapiro-Wilk test
- Apply these techniques to real stock data using pandas, numpy, scipy, matplotlib, and seaborn
Prerequisites
A basic familiarity with Python and introductory statistics is helpful but not required. Every concept is introduced from first principles.
Chapters
- 1Investment Risk and ReturnsRead free
- 2Discreet Vs Logarithmic Returns – Which One to Use?In the PDF
- 3Analyzing Financial Time Series Data with PythonIn the PDF
- 4Step 1: Load the DataIn the PDF
- 5Step 2: Calculate ReturnsIn the PDF
- 6Step 3: Visualize the Distribution of ReturnsIn the PDF
- 7Statistical Foundations of Return DistributionsIn the PDF
- 8Moments of a DistributionIn the PDF
- 9Mean, Variance, and Normal DistributionIn the PDF
- 10Calculating the First and Second MomentsIn the PDF
- 11Higher Moments of DistributionIn the PDF
- 12Calculate Skewness and Kurtosis in PythonIn the PDF
- 13Conducting Normality Tests in Python: Practical ApplicationsIn the PDF
- 14ConclusionIn the PDF
Files
Risk and Return Python Notebook
JUPYTER · Included in Investment Risk and Return Analysis In Python
Get the ebookStock Data
CSV · Included in Investment Risk and Return Analysis In Python
Get the ebook