Every topic starts at New. Sign in and your practice counts.
Data science life cycle is an iterative process. It has various stages, each has certain steps to be taken to move forward. It requires a structured approach to solve data driven problems. The stages of data science life cycles are as follows:
At this stage the business problem or research question is defined with clear objectives and outcomes. The scope and limitations of the problem are determined. Preliminary research and literature reviews help the stakeholders to understand their needs and expectations.
Key performance indicators (KPI) are defined to measure the success of proposed solutions. KPIs are measurable targets that help us track progress and success of a process.
For example, increasing sales by in two months can be set as a KPI of some business problem. Another example of KPI is improve the speed of website loading by in 30 days. By setting KPIs, we can focus on finding the right solutions and track our progress. The outcome of this stage is a hypothesis or well-defined problem.
At this stage, data is gathered by using various reliable and useful sources. The method of data collection depends on the kind and complexity of problems. For simple problems, we can observe and write down what we see, while more complex problems we might need surveys, experiments, or even using online services through APIs (Application Programming Interface). APIs are small programs that act like messengers between two or more software.
These are like waiters in a restaurant who receive an order from us and bring back the food as response to our order. The data collected should be relevant and accurate, as the quality of the data directly affects the results at later stages
It is also called data preprocessing, this step is about fixing the data to make sure it's ready for analysis. In this step we remove errors, such as wrong information or duplicate values. If some values are missing, which might cause problems, we fill in with estimated values.
During this process, data is organized into an easily workable format. Sometimes, new features or attributes are created from existing data. For example, if we have dates, we might create a new column for the day of the week. Clean and well-organized data is essential for making good predictions later on.
After cleaning the data, we have to analyze it. Statistics or machine learning techniques are used for data analysis. These techniques help in finding patterns, trends, or important details. By looking at the data closely, we can test early ideas or assumptions about the data.
For example, we might want to know if a certain factor is causing an outcome, like is the weather affecting sales of certain products? At this stage, visualization tools like graphs or charts can be used to understand what's happening in the data.
In this stage, the data is organized into a structured model. It helps to create diagrams that show the relationships between different entities (like customers and the products they purchase) and their attributes (like names, prices, or dates).
We also focus on how to store and retrieve this data efficiently by setting up databases or other systems. Once the model is ready, it is tested using historical/previous data to see if it performs well. The goal is to create a structure that can be easily used for predictions or other analysis.
At this stage we evaluate the performance of our machine learning model. This is done by measuring how accurate and reliable the model is, and whether it meets the performance goals we set earlier.
For example, we can test how often the model makes the right predictions or how fast it delivers results. If the model doesn't perform as expected, we might need to go back to the data modeling stage to make improvements. This stage also includes making sure that the data and the model are secure and respect privacy rules, especially if sensitive information is involved.
Once the model is working well, it is time to deploy it for use. This stage is called deployment, and it means the model is set up in the system or infrastructure where it will be used. It means to integrate the model on a website, application, or database.
Sometimes, deployment is done in small steps (partial deployment) to test if everything works fine before launching it completely. Other times, the model is deployed all at once. After deployment, the model starts working with real data, providing insights or making predictions.
After the model is deployed, it is important to keep an eye on how it performs. This is a continuous process where the model's accuracy, speed, and reliability are monitored over time. If any issues are detected, like the model becoming less accurate or slow, adjustments can be made.
Feedback from users can also help improve the model. This ongoing maintenance ensures that the model remains useful and effective as conditions change, like if new data becomes available or the problem evolves.
We will learn to apply the data science life cycle in real-world business problem. Suppose we have a task to optimize the inventory of a smart phones.
Problem definition: Suppose you own a super store and you want to ensure that you want to have good enough stock of popular smart phones. The objective is that you don't run out of stock to meet the demand of your customers. Keeping in mind
Data Collection: The first step is to gather data related to the smartphone stock and sales. The data includes:
Data Cleaning: After collecting the data, the next step is to clean it to ensure accuracy. This involves:
Removing duplicates: such as cases where the same model is listed multiple times with different spellings or slight variations.
After completing the model you will evaluates it to see how well it predicts inventory needs. Key performance measures include:
-) Accuracy: How well does the model predict when a phone will go out of stock?
accordingly.
Model Evaluation: Monitor the performance of the model by comparing the actual sales records with the predicted sale data. Adjust the model as needed to improve the accuracy of this model.
Maintenance and Monitoring:
After the model is deployed, you will continue to monitor its performance. This ongoing stage includes:
Checking if the machine learning model correctly alerts staff when stock is low for popular models.
Ensuring the store is not over-ordering less popular or even popular phones.
Collecting feedback from store staff to see if the system is easy to use and helping them manage the inventory better.
Regular updates are made to improve the model, such as incorporating new data on sales trends or adjusting reorder levels based on changes in customer preferences. The system is continuously refined to ensure that the superstore never runs out of stock for popular models while avoiding excess inventory.
By following the above data science life cycle, the superstore successfully developed a system to manage its smartphone inventory more efficiently. The system helps the store keep popular smartphones in stock while preveniing over-purchasing of less popular models, ensuring customer demand is met without wasting resources.
-> Data science: It is a branch of knowledge, which joins together mathematics and statistics skills with the programming domain of computer science. It refers to an interdisciplinary field of mathematics, statistics, and computer science.
Neural Network: It is system designed to work like human brain. It is made up of artificial neurons. These tiny neurons make decisions like human brain.
Fixing errors: in the stock levels and sales data, like incorrect quantities.
Handling missing values: such as missing prices or sales figures, by crossreferencing supplier information or older data.
By cleaning the data, the you ensure that the inventory and sales data is reliable and ready for analysis. For example, if there are missing prices for certain models, they can be updated with information from suppliers.
Data Analysis: Now that the data is clean, the next step is to analyze it. The goal of this analysis is to understand which smartphone models are in high demand and which are not selling well. Key questions to answer include:
-) Are there seasonal patterns in sales?
After answering these questions, you can identify the smartphones that need to be reordered more frequently and the ones that are less popular. Visualization tools like graphs or charts can help show sales trends over time, making it easier to see which models are consistently popular.
Data Modeling: At this stage, you will build a model to keep track of inventory levels and predict future demand. The model includes:
-> Attributes for each smartphone like model, price, stock level, and sales history.
Supervised Learning Model: In this learning model a set of labeled data is provided to the machine/computer. The labeled data means that questions with their correct
answers are provided to the machine. After reading/learning a lot of questions/answers the machine is trained. Now, only new questions without correct answers are provided to that machine and it provides us with the possible correct answers.
Unsupervised learning model: In this model unlabeled data is provided to the machine/computer. The algorithm identifies the pattern in the data and divide it into groups based on similarities and differences. When the training is completed, the computer can identify new data and put it in the relevant category.
Reinforce learning model: In this model the machines are trained with the help of positive or negative feedback. The agent is provided with an environment where it must take certain actions, if the action is helpful towards the desired solution the agent will be rewarded with some points through feedback. If the actions is not helpful towards the desired solution the agent will be penalized(punished) by deducting the points.
Churn Prediction is the technique to find out the possibility of a customer, to stop taking the services or products of a certain company. It is used in the fields of business and marketing.
Behavioral segmentation: is the process of dividing customers into groups based on their behavior. This approach enables the business to design marketing strategies and promotional offers more precisely. It enables the business to meet the specific needs of customers segments.
Data Visualization: It is the process of creating graphical representation of data and information. It involves various visual elements like charts, graphs, and maps.
Methods of Data Visualization: Methods of Data Visualization are Bar Chart, Line Chart, Pie Chart, Scatter Plot, Histogram, Box Plot, Heatmap, Bubble Chart etc.
Quantitative visualization is used to represent numerical data. It focuses on quantities or numbers to show measurable data. It is used to display data that can be measured or counted.
Categorical visualization is used to represents data that falls into distinct categories. It helps to proportions or parts of a whole. This type is ideal for displaying nominal or ordinal data.
Temporal visualization is used to display data that changes over time. It is used for time-series data. Line graphs are usually used to represent temporal data
Spatial visualization: is used to represent data related to physical locations or spaces, visualizing geographic or spatial data. For example, a heatmap showing population density across different regions. Multivariate visualization: is used to represents data involving more than two variables or dimensions. Scatter plots and heatmaps: are effective tools to represent such data. For example, a scatter plot matrix showing relationships between income, age, and spending habits.
Interactive Visualization Interactive visualization allows users to interact with the data, through digital platforms. These digital platforms can be dashboards and filters. A dashboard helps the user to filter and manipulate data visualizations and explore different trends and insights is
Statistical Visualization Statistical visualization is used to present data to show statistical properties, such as distribution or correlation. Histograms, box plots, and scatter plots are popular choices.
Information Visualization Information visualization is used to present complex data sets in an easier way, often for abstract or conceptual data. Network diagrams, tree maps, and word clouds are effective tools. For example, a network diagram showing relationships between entities, such as a social network.
Business Intelligence: Data visualization helps to make data driven, well informed decisions. It is used to find market trends and helps to track and improve performance.
Database is collection of related data stored in the form of tables. Various computer software is used to create databases to store data in organized form so that it can be managed, retrieved and stored efficiently.
Data science life cycle is an iterative process. It has various stages; each has certain steps to be taken to move forward. It requires a structured approach to solve data driven problems.
Problem Definition: At this stage the business problem or research question is defined with clear objectives and outcomes. The scope and limitations of the problem are determined.
Data Collection: At this stage, data is gathered by using various available, reliable and useful sources. The way data is collected depends on the kind of problem. For simple problems, we can observe and write down what we see, while more complex problems might need surveys, experiments etc.
Data Cleaning: Also called data preprocessing, this step is about fixing the data to make sure it's ready for analysis. Any errors, such as wrong information or duplicates, are corrected or removed. Missing values, which might cause problems, are either filled in with estimated values or taken out altogether.
Data Analysis: After cleaning the data, we have to analyze it. This is done using tools like statistics or machine learning techniques, which help in finding patterns, trends, or important details.
Data Modeling: In this stage, the data is organized into a model, which is a structure that represents the data and how different parts relate to each other. This could involve creating diagrams that show the relationships between different entities (like customers and the products they purchase) and their attributes.