Rédigé par des étudiants ayant réussi Disponible immédiatement après paiement Lire en ligne ou en PDF Mauvais document ? Échangez-le gratuitement 4,6 TrustPilot
logo-home
Document preview thumbnail
Aperçu 3 sur 22 pages
Resume

Data Science Fundamentals Samenvatting

Document preview thumbnail
Aperçu 3 sur 22 pages

This is a summary of the "Data Science Fundamentals" course given by Tonnelier Rik in the second year of Applied Data Intelligence.

Aperçu du contenu

Summary: Data Science
Intro
1. OSEMN process




2. Machine Learning
 An approach to achieve artificial intelligence through systems that can learn from
experience to find patterns in a set of data.
 It relies on teaching a computer to recognize patterns by example, rather than
programming it with specific rules
 A way to make predictions
o Takes in data
o Learns patterns from said data
o Classifies new data it has not seen before

2.1 Types of ML
 Supervised
o Training data is labeled
o System knows expected output label
 Unsupervised
o Training data is unlabeled
o We don’t know the output

2.2 Methods of ML

2.2.1 Regression
 The variable we wish to predict (the dependent variable) is of a continuous nature.
 The value of a given entry is determined based on known cases
 Supervised

,2.2.2 Classification
 The variable we wish to predict is of a categorical nature.
 The label of a given entry is determined based on known labelled cases.
 Supervised




2.2.3 Clustering
 Detect clusters of observations in our dataset.
 A given entry is assigned to a group base on the entire dataset
 Unsupervised




3. Notebook
 n_obs
o Number of observations or data
points that you want to generate.
 x = np.linspace(-3, 3, n_obs)
o Generates n_obs points evenly spaced
between -3 and 3.
 X = x[:, np.newaxis]
o Reshapes x into a 2D array (for
compatibility in some models or
algorithms).
 y = x + x * np.random.normal(2, 0.5, n_obs):
o Generates the y values by adding random noise to x.
o Noise comes from a normal distribution with a mean of 2 and a standard
deviation of 0.5.
o Adds variability to the relationship between x and y


 Make function (Linear Regression) object to implement this algorithm
o regressor = LinearRegression()
 Run the OLS algorithm in order to fit the function on our data
o regressor.fit(X, y)

, Linear Regression
1. Regression
 In a regression problem we try to understand the behavior (read: analyse / predict) of a
certain (continuous) variable (dependent variable) by studying the influence another
variable (independent variable) has on it.
 We want to predict Y based on X
o Does “hours studied” affect the variable “exam grade”?
o Does “age” affect “income”?
o Does “muscle mass” affect “time to run a marathon”?
o Does “advertising budget” affect “products sold”?

2. Linear Regression
 The simplest form of regression
 A linear model → a straight line through the data
 The higher X, the higher (or lower) Y
 “line of best fit”

3. Linear relation = linear function
 Mathematical function
o 𝑓(𝑥) = 𝑎𝑥 + 𝑏
o 𝑦𝑖 = 𝛽 0+ 𝛽 1𝑥
 Beta 0 is the intercept
 Where the function crosses the X-axis • Value of
Y when X = 0
 Beta 1 is the slope
 Postive Beta 1 → the function grows
 Negative Beta 1 → the function lowers
 The increase amount Y with each increase of X




4. Multiple Linear Regression
 Same as linear regression, but with multiple factors
o Ex: “Income” is affected by “seniority” and “years of education”
 “Plane of best fit”
 What happens with our function?
 Our intercept remains
 A new “slope” is created for each parameter
o 𝑓(𝑥) = 𝑎𝑥 + 𝑏𝑥 + 𝑐𝑥 + 𝑑𝑥 + … + 𝑒
o 𝑦𝑖 = 𝛽0 + 𝛽1𝑥 + 𝛽2𝑥 + 𝛽3𝑥 + 𝛽4𝑥 + …


5. Model training
 We split our data

5.1 Train – Test split

Table des matières

  1. 01 Intro 1
    1. 1. OSEMN process 1
    2. 2. Machine Learning 1
    3. 2.2 Methods of ML 1
    4. 2.2.1 Regression 1
    5. 2.2.2 Classification 2
    6. 2.2.3 Clustering 2
    7. 3. Notebook 2
  2. 02 Linear Regression 3
    1. 1. Regression 3
    2. 2. Linear Regression 3
    3. 3. Linear relation = linear function 3
    4. 4. Multiple Linear Regression 3
    5. 5. Model training 3
    6. 5.1 Train – Test split 3
    7. 5.2 Notebook 4
    8. 6. Validating our model 4
    9. 6.1 Notebook 5
  3. 03 Polynomial Regression 5
    1. 1. Dummy variables 6
    2. 2. Interaction effect 6
    3. 3. Correlation matrix 6
    4. 4. Multiple polynomial regression 6
    5. 5. Evaluation 6
    6. 6. Underfitting 7
    7. 7. Overfitting 7
  4. 04 Logistic regression 7
    1. 1. Regression, but not really 7
    2. 2. Regression as classification 7
    3. 3. Binary classification 8
    4. 4. Multiclass classification 8
    5. 5. Evaluation metrics 8
    6. 6. Confusion matrix 8
    7. 7. Accuracy 9
    8. 8. Precision 9
    9. 9. Accuracy vs Precision 10
    10. 10. Recall 10
    11. 11. Specificity 10
    12. 12. F1 score 10
    13. 13. Further metrics 10
  5. 05 Decision Trees 11
    1. 1. Terminology 11
    2. 2. Inner workings 11
    3. 3. Overfitting 11
    4. 3.1 Recognize overfitting 12
    5. 3.2 Combat overfitting 12
    6. 4. Metrics 12
    7. 5. Random forest 12
  6. 06 KNN (k Nearest Neighbours) 13
  7. 07 kMeans 14
    1. 4.1 Elbow method 15
  8. 08 Hierarchical Clustering 16
  9. 09 Dimensionality Reduction 18
    1. 1.1 PCA example 19
    2. 1.2 Eigenvalues 19
    3. 1.3 Finding the ‘best’ amount of components 20
    4. 1.4 Pushing PCA to the extreme 20
    5. 1.5 Other uses of PCA 20
  10. 10 Lasso regression 20

Infos sur le Document

Publié le
1 juin 2025
Nombre de pages
22
Écrit en
2024/2025
Type
Resume
€5,99

Mauvais document ? Échangez-le gratuitement Dans les 14 jours suivant votre achat et avant le téléchargement, vous pouvez choisir un autre document. Vous pouvez simplement dépenser le montant à nouveau.
Rédigé par des étudiants ayant réussi
Disponible immédiatement après paiement
Lire en ligne ou en PDF

Vendu
0
Abonnés
0
Éléments
6
Dernière vente
-



Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions