Skip to content

Analysing data to answer business question: Who are the most and least skillful surgeons for hip replacement operations?

License

Notifications You must be signed in to change notification settings

TheDataDesk/gemma-surgeon-performance-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Surgeon Performance Analysis

Gemma Analytics – Analytics Engineer Task

This project analyzes EQ-5D-5L patient surveys to identify the most and least skilful surgeons for hip replacement operations, based on how much their patients improved after surgery.


Objective

Measure patient improvement and rank surgeons by performance using a metric that combines:

  • Average improvement
  • Number of patients treated
  • Consistency (via standard deviation)

Approach

  • Filtered for hip surgeries
  • Mapped answers to numeric scores
  • Calculated patient improvement (post - pre)
  • Aggregated by surgeon
  • Ranked using a weighted score: > avg_improvement × log(1 + num_patients)

Highlights

Top Surgeons: Obi-Wan Kenobi, Luke Skywalker, Mon Mothma
Lowest Ranked: Padme Amidala, Princess Leia, Darth Maul


Visuals

  • Bar chart: Top 10 surgeons vs average improvements Barchart-surgeon_by avgimprovement

  • Bubble chart: Volume vs. improvement Bubbleplot-patientvol_avgimprovement

  • Box plot: Outcome consistency ( surgeon vs improvement score)

Boxplot-improvementdistribution_bysurgeon

  • Heatmap: Surgeon performance metric correlations

Heatmap-surgeonperformancemetrics

  • BarChart: Patient Volume Vs Surgeons

Barchart-patientvol_bysurgeon

  • BarChart: Surgeon Ranking based on weighted score BarChart-finalranking

Note: GitHub does not render interactive Plotly charts in Jupyter notebooks.

To view all visualizations, please refer to the static images in the plots/ folder.


Tools

  • Python, Pandas, NumPy
  • pandasql (SQL in Python)
  • Plotly (interactive charts)

How to Run

This project was built using Python 3.9+.

Make sure you're using Python 3.9 or higher. Then install the required packages and launch the notebook:

pip install -r requirements.txt
jupyter notebook

Final Note

Thank you for the opportunity to work on this challenge. I really enjoyed combining SQL, Python, and clear storytelling, especially knowing that Gemma values turning data into meaningful, actionable insights. I admire Gemma Analytics's mission to make analytics accessible and would be excited to contribute to that kind of work

About

Analysing data to answer business question: Who are the most and least skillful surgeons for hip replacement operations?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published