IP Project File Main
IP Project File Main
IP Project File Main
The primary objective of this project is to analyze the relationship between lifestyle habits and
sleep health using a given dataset. During the brainstorming phase, various aspects of the project
were considered:
1. Objective:
To identify patterns and trends based on age, gender, occupation, BMI, stress levels, and
physical activity.
2. Research Questions:
4. Significance:
The findings will be useful for students, professionals, and healthcare researchers in
understanding sleep health and adopting healthier lifestyles.
DATATYPES USED
The project makes use of a structured dataset stored in CSV format, containing multiple
attributes related to sleep and lifestyle. The following data types were used:
Numeric Data:
Age (Integer)
BMI (Float)
Categorical Data:
Gender (Male/Female)
pandas DataFrame was used to load, manipulate, and analyze the dataset.
Lists and Dictionaries were utilized for intermediate computations and storing results.
Datatypes such as integers, floats, and strings were applied based on the data attributes.
3. File Type:
The dataset is a .csv file, loaded into Python using the pandas library for further analysis
and visualization.
PROTOTYPE
The prototype of this project was developed as a Python-based script with a simple, user-friendly
interface. Key features of the prototype include:
1. Menu-Driven Interface:
The script presents a menu with various options for analysis and visualization.
Users can choose specific aspects of the dataset to analyze, such as sleep duration by
occupation or BMI vs. sleep disorders.
Pie Charts: Display the percentage distribution of sleep across different occupations.
Bar Graphs: Compare sleep patterns based on age groups or stress levels.
Histograms: Visualize the BMI distribution and its relationship with sleep quality.
3. Code Flow:
4. Purpose:
The prototype provides a foundation for the final project by showcasing basic
functionalities and verifying the feasibility of the analysis.
METHODOLOGY
The project was implemented using a systematic approach, which involved the following steps:
3. Data Analysis:Various attributes such as age, sleep duration, BMI, stress levels, and
physical activity were analyzed using pandas. Relationships between attributes (e.g., sleep
duration vs. occupation) were explored.
4. Data Visualization:Charts and graphs were generated using the matplotlib library:
Insights from the visualizations were documented, highlighting key trends and patterns in
the data.
HARDWARE USED
The project required basic hardware resources to execute and analyze the data. The following
hardware was utilized:
1. Primary Hardware:
Storage: At least 500MB free for the dataset and Python environment.
2. Optional Hardware:
The project was implemented using software tools and libraries to ensure efficient data analysis
and visualization. The tools used are listed below:
1. Programming Language:
2. Development Environment:
3. Python Libraries:
pandas: For data manipulation and cleaning.
matplotlib: For creating visualizations (e.g., pie charts, bar graphs).
numpy: For numerical operations, if required.
4. Additional Tools: