Skip to main content

Posts

Showing posts from November, 2023

Predicting 30-Day Hospital Readmission for Diabetic Patients in Python

Roughly one in nine diabetic hospital stays in the dataset below ends with the patient back in hospital within 30 days. Readmissions are expensive, often preventable, and in the US Medicare penalises hospitals with excess readmissions for several common conditions. So the question a hospital actually asks is simple: at discharge, which patients should get extra follow-up? This tutorial answers that question end to end in Python, on a real public dataset of about 100,000 hospital encounters. You will clean the data, engineer features, avoid a common evaluation mistake, compare two models, and turn the scores into risk tiers a care team could use. Every number in this post comes from running the code shown.

Predictive Analytics: Concepts, Techniques, Models and Examples

Predictive analytics uses historical data, statistics and machine learning to estimate what is likely to happen next: which customers will cancel, how much stock a store will need, which patients are at risk of readmission. It does not predict the future with certainty. It produces probabilities and estimates that help people make better decisions. This guide covers the core concepts, the main techniques and models, a small Python example, business examples, and the mistakes that most often make predictions wrong. 1. Define the decision and target 2. Prepare historical data and features 3. Train models on past outcomes 4. Validate on unseen data with right metrics 5. Deploy score new cases, monitor, retrain Monitoring feeds back: when data or behaviour drifts, go back to step 1

Big Data Analytics Explained: Architecture, Tools and Examples

Big data refers to data sets too large, too fast or too varied to be handled well by a single traditional database. Big data analytics is the practice of turning that data into decisions: collecting it, storing it at scale, processing it, and applying statistics, machine learning and visualisation to answer business questions. This guide covers the key definitions, the four types of analytics, a reference architecture, the main tools and techniques, real examples, and common pitfalls. Descriptive What happened? dashboards, KPIs Diagnostic Why did it happen? drill-down, root cause Predictive What will happen? ML models, forecasts Prescriptive What should we do? optimisation, rules Increasing value and difficulty →