Portfolio optimization is a powerful technique in finance, and Python makes it accessible and efficient. In this hands-on case study, you’ll use your data analysis skills to work through a real-world example: analyzing and optimizing a portfolio of four stocks. You’ll start by building an equal-weighted portfolio and evaluating its performance using key financial metrics like daily returns and the Sharpe ratio. Then, you’ll generate 10,000 portfolio scenarios with different stock weightings and use Python to find the optimal combination with the highest Sharpe ratio. Along the way, you’ll use data visualization to explore results and reinforce your understanding of portfolio performance. This course is the perfect next step for learners who want to apply their Python knowledge to finance.

Portfolio Optimization with Python - Case Study

Portfolio Optimization with Python - Case Study
Instructor: CFI (Corporate Finance Institute)
Included with Learn more
Ask Coursera
Gain insight into a topic and learn the fundamentals.
Intermediate level
Recommended experience
2 hours to complete
Flexible schedule
Learn at your own pace
What you'll learn
Analyze stock data, compute returns and Sharpe ratio, build equal portfolios, simulate 10k allocations, and find optimal asset mix using Python.
Skills you'll gain
- Portfolio Management
- Performance Measurement
- Decision Making
- Financial Market
- Financial Analysis
- Data Visualization
- Scatter Plots
- Investments
- Performance Analysis
- Financial Modeling
- Investment Management
- Return On Investment
- Statistical Visualization
- Simulation and Simulation Software
- Portfolio Risk
- Resource Allocation
- Market Data
- Descriptive Analytics
- Plot (Graphics)
Tools you'll learn
Details to know

Shareable certificate
Add to your LinkedIn profile
Recently updated!
June 2026
Assessments
3 assignments
Taught in English
See how employees at top companies are mastering in-demand skills

Build your subject-matter expertise
This course is part of the Practical Data Science for Data Analysts Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate

There are 4 modules in this course
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor
Offered by
Explore more from Finance
Status: Free TrialEDHEC Business School
Status: Free TrialEDHEC Business School
Status: PreviewThe Hong Kong University of Science and Technology
Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Advance your career with an online degree
Earn a degree from world-class universities - 100% online



