Docsity

Data Science and Machine Learning, Summaries of Computer science

Partial preview of the text

Download Data Science and Machine Learning and more Summaries Computer science in PDF only on Docsity!

DATA SCIENCE

AND

MACHINE LEARNING

From Data to Intelligent Systems

A Practical Beginner-to-Intermediate Guide

Python • Statistics • Machine Learning • Deep Learning • AI

TEXTBOOK EDITION • 2026

DATA SCIENCE AND MACHINE LEARNING

From Data to Intelligent Systems

A clean, structured learning resource covering data analysis, classical machine learning, deep

learning, NLP, computer vision, deployment, responsible AI, and practical projects.

Textbook Edition • 2026

Chapter 33 — Glossary

Preface

Data is one of the most valuable resources in the modern world. Every day, people and

organizations generate enormous amounts of data through websites, mobile applications,

businesses, hospitals, banks, sensors, social media, and scientific research.

But data by itself has limited value. The real value comes from understanding data, discovering

patterns, making predictions, and using those discoveries to make better decisions. This is where

Data Science and Machine Learning become important.

This book introduces the fundamental concepts of both fields in a simple and practical way. It

begins with basic concepts and gradually moves toward machine-learning algorithms, model

evaluation, deep learning, natural language processing, computer vision, and real-world projects.

Chapter 2 — What Is Machine Learning

Definition

Machine Learning is a branch of artificial intelligence in which algorithms learn patterns from data and use those patterns to make predictions or decisions.

Example

To predict house prices, a model can learn from historical information such as area, bedrooms, location, age, and previous prices. After training, it can estimate the price of a new house.

Chapter 3 — Types of Machine Learning

Supervised Learning

Supervised learning uses labeled data. Regression predicts numerical values such as prices or revenue, while classification predicts categories such as spam/not spam or pass/fail.

Unsupervised Learning

Unsupervised learning works without predefined labels and attempts to discover hidden patterns. Clustering is a common example.

Reinforcement Learning

In reinforcement learning, an agent interacts with an environment and learns through rewards and penalties. Applications include games, robotics, and optimization.

Chapter 5 — Mathematics and Statistics

Foundations

Important foundations include algebra, functions, probability, statistics, vectors, matrices, calculus, and optimization. A learner does not need to become a mathematician before starting Data Science, but these concepts help explain how models work.

Mean and Median

The mean is the average of a collection of values. The median is the middle value after sorting the data. Both are useful measures of central tendency.

Probability and Standard Deviation

Probability measures how likely an event is. Standard deviation describes how spread out values are around their mean.

Chapter 6 — NumPy and Pandas

NumPy

NumPy provides efficient arrays and mathematical operations for numerical computing.

Pandas

Pandas provides DataFrame structures that make it easy to load, inspect, filter, transform, and summarize tabular data.

Example

import pandas as pd data = {"Name": ["Ali", "Sara"], "Marks": [85, 91]} df = pd.DataFrame(data) print(df)

Chapter 8 — Exploratory Data Analysis

EDA

Exploratory Data Analysis investigates a dataset before modeling. Questions include what variables exist, how many observations there are, whether values are missing, how variables are distributed, and whether unusual observations exist.

Useful Operations

Pandas methods such as describe(), info(), value_counts(), and correlation calculations help summarize data.

Chapter 9 — Data Visualization

Purpose

Visualization makes patterns easier to understand and communicate.

Common Charts

Bar charts compare categories, histograms show distributions, scatter plots show relationships between numerical variables, line charts show change over time, and box plots summarize distributions and potential outliers.

Chapter 11 — Linear Regression

Concept

Linear regression models a relationship between inputs and a numerical target. A simple form is y = mx + b. Multiple linear regression can use many input variables.

Python Example

from sklearn.linear_model import LinearRegression model = LinearRegression() model.fit(X_train, y_train) predictions = model.predict(X_test)

Chapter 12 — Classification

Concept

Classification predicts discrete categories. A spam detector, for example, may predict whether an email is spam or not spam.

Logistic Regression

Logistic regression is commonly used for classification and produces a probability between 0 and 1. A threshold can then be used to determine the predicted class.

Chapter 14 — K-Nearest Neighbors

KNN

K-Nearest Neighbors predicts a new observation using the most similar nearby observations. It is simple to understand but can become expensive for very large datasets.

Chapter 15 — Unsupervised Learning

Clustering

Unsupervised learning attempts to discover structure without labeled outputs. Clustering can be used for customer segmentation, grouping documents, or organizing observations.

K-Means

K-Means divides observations into a chosen number of groups by iteratively assigning observations to nearby cluster centers and updating those centers.