, 1. Import
2. Tidy
3. Transform
4. Visualise
5. Model (transform & visualise again when needed)
6. Communicate
Data science (DS) vs empirical science
DS based on scientific method
But: not all data science = science
Different scale
Empirical science => small #correlations causal?
DS => can identify unlimited #correlations
Data driven vs hypothesis driven
Data driven
- Inductive
- Starts with data analysis
Hypothesis driven
- Deductive
- Starts with hypothesis
3Vs of data
Volume
Variety
Velocity
But: DS project can also be based on smaller, simpler data
DS workflow
1. (acquire data)
2. Import
3. Tidy
4. Transform
5. Visualise
6. Model (transform & visualise again when needed) already 10 steps in
itself
7. Communicate
8. (act)
Gaining insight: transform, visualise, model
, Not 1 template workflow, but: similar steps
Data preparation (1)
Tidy data in workable format
- Table with rows & columns
- Numeric data
Convert categorical data dummy vars
- n classes n-1 dummy vars
Deal with missing data
- Remove obs (r)
- Remove vars (c)
- Data imputation
Correct errors or noise
Feature engineering (2)
Use domain knowledge to extract features from raw data
Compute interpretable features/vars from tidy data
- Data mining
Creativity
- Many features interactions
- Logical features simpler models
Takes lot of time
Algorithm selection (3)
Problem def
- Classification vs regression prediction
- Supervised vs unsupervised
- Prediction vs interference
Multiple algorithms per category/problem
All algorithms optimise cost/loss function
Feature standardisation (4)
Centering & scaling
- Standardisation = (x – mean)/sd
- Normalisation = (x – xmin)/(xmax – xmin)
Improves fit of algorithm
Improves inference of results
Set division (5)
Many data points: risk of overfitting
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller michouweimar. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $3.75. You're not tied to anything after your purchase.