0% found this document useful (0 votes)
2 views9 pages

Healthcare Data Exploration Report Word File

Uploaded by

shouryaojha40
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
2 views9 pages

Healthcare Data Exploration Report Word File

Uploaded by

shouryaojha40
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 9

Healthcare Data Exploration

Report

Name: Shourya Ojha


Class Roll No : 19
Univ Roll No : 202401100300239
Branch: CSE AI
Library ID: 2428CSEAI1182

Date: 11 March 2025

1
Introduction
Healthcare data is crucial for analysing trends, detecting
diseases, and improving patient care. This project explores a
healthcare dataset to understand patterns, detect missing
values, visualize distributions, and identify outliers. By
analysing various attributes such as age, blood pressure, and
correlations, we gain insights that can be valuable for
healthcare professionals.

The growing digitization of healthcare records has made it


easier to collect vast amounts of patient data. However, raw
data is often messy, containing missing values and potential
inconsistencies. Therefore, it is essential to preprocess and
analyse the dataset efficiently to extract meaningful insights.
This report focuses on data exploration techniques that help
in understanding the dataset, identifying crucial variables,
and uncovering hidden patterns that could aid in better
medical decision-making.

This study aims to:


 Identify and handle missing values in the dataset.
 Visualize key variables to understand their distributions.
 Detect outliers that could indicate data anomalies or
medical conditions.
 Establish correlations between different healthcare
parameters to support predictive analytics

2
Methodology
Data Loading & Exploration:
The dataset is loaded using Pandas for analysis.
Basic dataset information, including column types, data types, and
missing values, is displayed to understand data quality.

Data Visualization:
A histogram is plotted to visualize the distribution of the Age column
and detect skewness.
A boxplot is used for BloodPressure to check for potential outliers
and extreme values.
A heatmap is generated to identify correlations between numerical
variables, which helps in understanding patterns in the dataset.

Outlier Detection:
The Interquartile Range (IQR) method is used to detect and quantify
outliers in numerical columns.
This helps in identifying extreme values that might affect the analysis
and decision-making.
Summary Statistics:
The dataset is summarized using statistical measures such as mean,
median, standard deviation, and percentiles.
These statistics provide insights into the central tendency and
variability of key attributes.

Observations & Insights:


The combination of visualizations and statistical analysis aids in
drawing meaningful conclusions.
Identifying missing values and extreme data points allows for better
data preprocessing and model preparation in future steps.

3
CODE
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

# Load the dataset


df = pd.read_csv("healthcare_data.csv")

# Display basic information


print("Dataset Info:\n")
df.info() # Prints summary of dataset including column types
and non-null counts
print("\nFirst 5 rows:\n", df.head()) # Displays first five rows
of the dataset

# Check for missing values


print("\nMissing Values:\n", df.isnull().sum()) # Checks for
missing values in each column

# Summary statistics
print("\nSummary Statistics:\n", df.describe()) # Displays
statistical summary of numerical columns

# Visualizing distributions
plt.figure(figsize=(10, 5))
sns.histplot(df['Age'], bins=10, kde=True) # Plots histogram
with density estimate for Age column
plt.title("Age Distribution")
plt.show()

4
plt.figure(figsize=(10, 5))
sns.boxplot(x=df['BloodPressure']) # Creates a boxplot for
BloodPressure column to identify outliers
plt.title("Blood Pressure Boxplot")
plt.show()

plt.figure(figsize=(10, 5))
sns.heatmap(df.corr(), annot=True, cmap='coolwarm',
fmt=".2f") # Displays correlation heatmap
plt.title("Correlation Heatmap")
plt.show()

# Detecting outliers using IQR


Q1 = df.quantile(0.25) # First quartile (25th percentile)
Q3 = df.quantile(0.75) # Third quartile (75th percentile)
IQR = Q3 - Q1 # Interquartile range
outliers = ((df < (Q1 - 1.5 * IQR)) | (df > (Q3 + 1.5 *
IQR))).sum() # Count of outliers in each column
print("\nOutlier Count:\n", outliers)

print("\nData Exploration Completed.")

5
Output/Result

6
7
8
References/Credits

1. Dataset Source:
 Healthcare dataset sourced from KIET Group of
Institutions.

2. Libraries & Tools Used:


 Pandas: For data loading, exploration, and
preprocessing.
 NumPy: For numerical computations and handling array
operations.
 Matplotlib & Seaborn: For data visualization, including
histograms, boxplots, and heatmaps.

3. Image Credits:
 Output images from Google Collab Output.

4. Acknowledgments:
 Thanks to professors, mentors, or peers who provided
guidance or assistance in completing the project.
 Special thanks to Mr. Abhishek Shukla for guidance on
data analysis concepts.

You might also like