































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































DATA SCIENCE AND MACHINE LEARNING
Chapter 33 ā Glossary
Preface
Chapter 2 ā What Is Machine Learning
Machine Learning is a branch of artificial intelligence in which algorithms learn patterns from data and use those patterns to make predictions or decisions.
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 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 works without predefined labels and attempts to discover hidden patterns. Clustering is a common example.
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
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.
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 measures how likely an event is. Standard deviation describes how spread out values are around their mean.
Chapter 6 ā NumPy and Pandas
NumPy provides efficient arrays and mathematical operations for numerical computing.
Pandas provides DataFrame structures that make it easy to load, inspect, filter, transform, and summarize tabular data.
import pandas as pd data = {"Name": ["Ali", "Sara"], "Marks": [85, 91]} df = pd.DataFrame(data) print(df)
Chapter 8 ā Exploratory Data Analysis
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.
Pandas methods such as describe(), info(), value_counts(), and correlation calculations help summarize data.
Chapter 9 ā Data Visualization
Visualization makes patterns easier to understand and communicate.
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
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.
from sklearn.linear_model import LinearRegression model = LinearRegression() model.fit(X_train, y_train) predictions = model.predict(X_test)
Chapter 12 ā Classification
Classification predicts discrete categories. A spam detector, for example, may predict whether an email is spam or not spam.
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
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
Unsupervised learning attempts to discover structure without labeled outputs. Clustering can be used for customer segmentation, grouping documents, or organizing observations.
K-Means divides observations into a chosen number of groups by iteratively assigning observations to nearby cluster centers and updating those centers.