Every topic starts at New. Sign in and your practice counts.
Data science is a branch of knowledge, which joins together mathematics and statistics skills with the programming domain of computer science. This combination is useful in various fields of life e.g. if we want to predict the result of a football match, data science will help us. Currently, ín the age of artificial intelligence, organization of available data into meaningful form is necessary, Data Science helps us to achieve the objective of getting insight from the data.
Consequently, we can find optimized solutions along with predictive modeling. In the previous grade we learned some basic concepts about data science. Now, we will learn some advanced topics based on our previous knowledge.
Data Science refers to an interdisciplinary field of mathematics, statistics, and computer science. Main objective of data science techniques is to get meaningful insight from the available data. The available data can be structured as well as unstructured. This objective is achieved through the steps of data collection, data cleaning, data preprocessing and data visualization. Various programming languages like Python, R studio and MATLAB can be used for data visualization.
Data Science has wide scope in many disciplines of life and it is continuously expanding. We can briefly learn about its scope in some common fields of life as follows:
Healthcare: To predict the possibilities of some disease, based on X-Rays, Ultrasounds or other analytics of patient.
Sports: If we want to predict who is going to win a cricket match, based on the previous performance of teams, data science will help us.
Finance: In the banking and finance sector, data science is helpful in fraud detection. It is also helpful in developing trading and investment strategies.
Goods transportation: It helps in route optimization and minimize delivery times. Data driven approach helps to reduce cost. It also helps in real time tracking of transportation of goods.
Airline: It helps in efficient route planning to reduce fuel consumption. It helps to improve services based on customer experience and feedback.
Energy and utilities: It helps to optimize energy production and distribution. Realtime monitoring is useful for load distribution and facilitates immediate response for demand fluctuations.
Education: It is useful to enhance personalized learning based on the performance of learners. It also helps to predict students' performance based on previous data.
Communication Media: It is used for content creation and distribution. Various approaches like sentiment analysis, social media monitoring and recommender systems are a few examples of scope of data science in media and communication sector.
Entertainment: Data science plays important role when you get suggestions about your favorite songs while playing online computer games.
Business: Data science helps in intelligent decision making about the business to get optimal profits. Customer insight and sentiments are also analyzed to improve the business.
A recommender system is a tool or technology. It is used to recommend products, services or information to the user based on their past behavior and interests.
Sentiment analysis is the term used to identify the sentiments of a customer by analyzing the review about the product. The sentiment can be positive, negative, or neutral. Sentiment analysis can be performed on reviews, text, opinions etc.
The term artificial intelligence is not new. In 1950 a British mathematician Alan Turing proposed a Turing Test, which measured the ability of machine to exhibit intelligent behavior. Now a days the modern robots are supposed to be smarter if they can pass the Turing Test. The term Artificial Intelligence is referred to the ability of a machine to exhibit human behavior like problem solving, understanding natural language and interacting with the environment intelligently.
Like data science, the scope of artificial intelligence is wide. Here, we can discuss a few of them as follows:
Decision making: Artificial intelligence is very useful in optimal decision making, based on a data driven approach.
Personalized recommendations: It helps to provide personalized feed to customers, based on their past usage of machines.
Automation industry: It has played a vital role in automating the tedious jobs like car manufacturing and image & video analysis. The most important utilization of artificial intelligence is integration of internet in the devices of daily use. The entire industry of IoT and smart devices is based on automation.
Natural Language Processing (NLP): Al enabled the machines to understand and respond to the natural human languages. ChatGPT and chatbots are examples of it. Now you can switch ON your air conditioner with voice command rather than picking up the remote controller.
Robotics: Whether you watch some latest robot, talking and cooking like a human being or you get a small robot to clean your house, all this technology is due to significant advancement of artificial intelligence.
Healthcare: Like data science, artificial intelligence has played equally well in the field of healthcare. The examples are personalized treatment recommendations based on medical imaging.
Computer vision: It is a specialized branch of AI that teaches computers to draw meaningful results from digital images, videos and other visuals. Smart cities: Artificial Intelligence enables to develop efficient infrastructure and services, which can be used to manage energy consumption, traffic management and other necessary tasks for smart cities. Al Agents: Artificial Intelligence provides bases to develop modern Al agents like Siri, Alexa, Google assistant, ChatGPT and Cortana.
Machine learning is used in many fields of life, like healthcare, automation industry, to develop recommender systems, finance and banking, pattern recognition, NLP, computer vision, research and innovation. An example of machine learning is Automated fraud detection. It helps to identify fraudulent activity by finding anomalies such as sudden large transaction or unusual network traffic. In short, the entire scope of Data Science and Artificial Intelligence is based on the algorithms developed in the field of Machine learning.
Artificial Intelligence and Machine Learning skills refer to develop systems that can learn and perform decision making. Data Science skill refers to extract insights from data and make informed decisions. There are many skills to achieve excellence in artificial intelligence. These skills include programming language, machine learning, and acquiring domain specific
knowledge. In programming languages, Python and R are the most used languages in Al. In machine learning algorithms, the knowledge of TensorFlow framework, deep learning, neural networks and NLP are very important.
\begin{figure}
\captionsetup{labelformat=empty}
\caption{Fig.4.6: Data Science, Artificial Intelligence and Machine Learning}
\end{figure}
Primarily, there are three models of machine learning.
\begin{figure}
\captionsetup{labelformat=empty}
\caption{Fig.4.7: Machine Learning}
\end{figure}
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.
For example, if we provide the features(labels) of types of fruits i.e. shape, color and texture and give their names(answers) as well. After the machine is trained when we will give the features of a new fruit the supervised learning model will predict/provide the name of that fruit.
In unsupervised learning 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.
For example, if we provide various types of news to a computer then it will start dividing them into various groups, based on keywords. Suppose from a huge dataset the computer divides the news into various categories i.e. national politics, international politics, entertainment, medical, and technological news. When we give a new piece of information "Scientists successfully, saved the cancer patients at last stage" to the computer, it will categorize it into medical news.
In reinforcement learning the machines are trained with the help of positive or negative feedback. To explain reinforcement learning we will use the following key terms:
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 are not helpful towards the desired solution the agent will be penalized(punished) by deducting the points. The agent improves its actions based on the feedback. This model is used to get optimal results.
For example, if you are learning to play chess and whenever you start your game by moving knights (name of a piece in chess game) you win, you will always try to start your game by moving knights. On the other hand, whenever you start your game by moving Queen piece, you lose the game. Therefore, you will always avoid moving Queen piece in the beginning of game in future. In this way, by winning and losing the game by moving certain pieces you have learned winning moves. In reinforcement learning this process is continuous until the model is trained and provides accurate results.
Fig. 4.10 shows reinforcement learning pictorially. The Agent(Chess Player) takes an action (moving Knight piece) at a certain time (in the beginning of the game). The Environment(Chess Board) is in certain state which changes after the Action At. Suppose the Agent moves Knight and
captures the Rook of the opponent player. The state of board changes to new state The capturing opponent's rook is a rewarding move. In this way the Agent(Player) learns from his/her winning or losing moves and impropes his/her performance by reinforcement learning.
As we learnt different models, how will we decide which machine learning model to use for a certain problem. First, we will define our problem, what output or solution we want? Do we want to identify some items, classify the given items, or forecast some future value. The next step is to analyze the given data.
If the given data has labels or questions/answers information, then we can use supervised learning model. If we don't haved'pparent labels and data have various groups which may have some similarities and some differences. We can apply unsupervised learning model. If in the given data, you identify some agent must achieve some goal then you will apply reinforcement learning model.
Following is the brief description of Machine Learning Model:
Step 1: The preprocessed, cleaned data is split into Training data and Testing data. Sometimes we divide it into three parts and keepsismall amount of data to validate the final results.
Step 2: A suitable algorithm is selected to train the machine. There are several algorithms like neural network, decision tree etc.
Step 3: The model is trained on the training set, it learns the pattern from data and develop a decision making ability.
Step 4: After the model is trained, test data and validation data is provided to the model and results are compared with actual yalues. The performance of the model can be improved by changing or improving the algorithm or by adjusting other necessary parameters which are beyond the scope of this book yet.
Artificial Intelligence is based on creating intelligent systems. Machine learning is a subset of AI that focuses on algorithms and statistical modeling to learn from data. Data science is used to get meaningful insight from the data to make informed decisions. There are many similarities and
differences among these three concepts. Some of these are as follows:
Data Driven Approach: All the three fields rely on data to provide optimal results. They use data to make predictions, recognize patterns and make decisions.
Use of Algorithm and Models: All the three fields work through various algorithms. For example, artificial intelligence relies on search algorithms. Machine learning relies on supervised/unsupervised/reinforcement learning algorithms. Data science relies on statistical and visualization algorithms.
Goal of Automation: The net goal of all the three fields is to automate various activities which were previously performed manually.
Tools and techniques: They use various techniques, e.g. artificial intelligence uses neural networks, expert systems, and natural language processing. Machine learning uses supervised learning, unsupervised learning, reinforcement learning and deep learning techniques. Data science uses statistical analysis, data mining and data visualization techniques.
Application: The application of artificial intelligence is in speech and image recognition, autonomous vehicles, chatbots and virtual assistants. Application of machine learning is in recommendation system, fraud detection, predictive analysis spam filtering, and personalized marketing. Applications of data science includes business intelligence, market analysis, healthcare analytics, risk management and scientific research.
Output: The output of artificial intelligence systems is that mimic human behavior. The output of machine learning is prediction and classification. The output of data science is insight, reports and visualization.
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. For example, a telecommunication company receives frequent complaints about their service from certain customers, then they can predict that these customers might stop using their service. These unhappy customers can switch to some other telecommunication company. Churn prediction is needed to run the business successfully. It is often observed that getting new customers is less beneficial than keeping the existing customers loyal to
\begin{figure}
\captionsetup{labelformat=empty}
\caption{Fig.4.13: Churn Prediction and Behavioral Segmentations}
\end{figure}
your business.
For example, a store is selling formal clothing. The store wants to predict which customers might stop buying in the future. The store will collect data about the customers, how often the customers buy cloth(purchase frequency), since how long are they buying(brand loyalty) any feedback they provide about their products etc. After applying various algorithms and visualizing the results the store might observe that some customers are not visiting the store as often as they were visiting a few months ago. Then the store might send some personalized offers to the customers which can reduce the possibility of losing the customers.
Behavioral segmentation is the process of dividing customers into groups based on their behavior. It is marketing strategy used to categorize customers according to their behavior towards some service or product. This approach enables the business to design marketing strategies and offerings more precisely. It enables the business to meet the specific needs of customers segments. The key aspects of behavioral segmentation are analyzing purchase frequency, brand loyalty, usage occasions and response to market stimuli.