Book Image

Healthcare Analytics Made Simple

By : Vikas (Vik) Kumar, Shameer Khader
Book Image

Healthcare Analytics Made Simple

By: Vikas (Vik) Kumar, Shameer Khader

Overview of this book

In recent years, machine learning technologies and analytics have been widely utilized across the healthcare sector. Healthcare Analytics Made Simple bridges the gap between practising doctors and data scientists. It equips the data scientists’ work with healthcare data and allows them to gain better insight from this data in order to improve healthcare outcomes. This book is a complete overview of machine learning for healthcare analytics, briefly describing the current healthcare landscape, machine learning algorithms, and Python and SQL programming languages. The step-by-step instructions teach you how to obtain real healthcare data and perform descriptive, predictive, and prescriptive analytics using popular Python packages such as pandas and scikit-learn. The latest research results in disease detection and healthcare image analysis are reviewed. By the end of this book, you will understand how to use Python for healthcare data analysis, how to import, collect, clean, and refine data from electronic health record (EHR) surveys, and how to make predictive models with this data through real-world algorithms and code examples.
Table of Contents (11 chapters)

Programming in Python – an illustrative example

In the previous sections, we discussed variable types and data containers. There are many more aspects of Python programming, such as control flow with if/else statements, loops, and comprehensions; functions; and classes and object-oriented programming. Commonly, Python programs are packaged into modules, which are self-standing scripts that can be run from the command line to perform computing tasks.

Let's introduce some of these concepts in Python with a "module" of our own (you can use the Jupyter Notebook for this):

from math import pow


LB_TO_KG = 0.453592
IN_TO_M = 0.0254


class Patient:
def __init__(self, name, weight_lbs, height_in):
self.name = name
self.weight_lbs = weight_lbs
self.weight_kg = weight_lbs * LB_TO_KG
self.height_in = height_in
self.height_m = height_in...