EDA is the process of examining data sets to summarize their main characteristics, often using visual methods. It helps understand the data before applying any modeling.
Click to reveal answer
beginner
Name three common techniques used in EDA.
Common techniques include: 1. Summary statistics (mean, median, mode) 2. Data visualization (histograms, scatter plots) 3. Checking for missing values and outliers.
Click to reveal answer
beginner
Why is it important to check for missing values during EDA?
Missing values can affect analysis and model accuracy. Identifying them early helps decide how to handle them, like filling in or removing those data points.
Click to reveal answer
intermediate
What does a box plot show in EDA?
A box plot shows the distribution of data through its quartiles, highlights the median, and identifies outliers. It helps quickly see spread and skewness.
Click to reveal answer
intermediate
How can correlation analysis help in EDA?
Correlation analysis shows how two variables move together. It helps find relationships or dependencies, which can guide feature selection for modeling.
Click to reveal answer
Which of the following is NOT a typical step in Exploratory Data Analysis?
ABuilding a final predictive model
BCalculating summary statistics
CChecking for missing values
DVisualizing data distributions
✗ Incorrect
Building a final predictive model is done after EDA, not during it.
What does a histogram help you understand in EDA?
ARelationship between two variables
BExact values of data points
CFrequency distribution of a single variable
DMissing data locations
✗ Incorrect
Histograms show how often values occur in intervals for one variable.
Why is it useful to identify outliers during EDA?
AThey can distort analysis and may need special handling
BThey always improve model accuracy
CThey represent the average data points
DThey are always errors and should be deleted
✗ Incorrect
Outliers can affect results and may need to be treated carefully, not always deleted.
Which plot is best to check the relationship between two numeric variables?
ABox plot
BBar chart
CPie chart
DScatter plot
✗ Incorrect
Scatter plots show how two numeric variables relate to each other.
What does a correlation coefficient close to 0 indicate?
AStrong negative relationship
BNo linear relationship
CStrong positive relationship
DPerfect linear relationship
✗ Incorrect
A correlation near 0 means no linear relationship between variables.
Describe the main goals and steps involved in Exploratory Data Analysis.
Think about how you would get to know a new dataset before using it.
You got /4 concepts.
Explain how visualizations help in Exploratory Data Analysis and name two common types.
Imagine looking at pictures of your data to understand it better.
You got /3 concepts.
Practice
(1/5)
1. What is the main goal of exploratory data analysis (EDA) in machine learning?
easy
A. To train the machine learning model
B. To understand the main features and quality of the data
C. To deploy the model to production
D. To write the final report without looking at data
Solution
Step 1: Understand the purpose of EDA
EDA is used to explore and understand the data before modeling.
Step 2: Differentiate EDA from other steps
Training and deployment happen after EDA, so they are not the main goal of EDA.
Final Answer:
To understand the main features and quality of the data -> Option B
Quick Check:
EDA = Understand data [OK]
Hint: EDA means exploring data, not modeling or deploying [OK]
Common Mistakes:
Confusing EDA with model training
Thinking EDA is for deployment
Skipping data understanding step
2. Which Python library is commonly used for basic exploratory data analysis tasks like viewing data samples and summary statistics?
easy
A. matplotlib
B. tensorflow
C. pandas
D. scikit-learn
Solution
Step 1: Identify libraries for EDA
Pandas provides functions like head() and describe() for data samples and summary stats.
Step 2: Exclude other libraries
Matplotlib is for plotting, scikit-learn for modeling, tensorflow for deep learning, not basic EDA.
Final Answer:
pandas -> Option C
Quick Check:
pandas = data samples and stats [OK]
Hint: Use pandas for quick data overview and stats [OK]
Common Mistakes:
Using matplotlib for data samples
Confusing modeling libraries with EDA
Trying tensorflow for simple stats
3. Given the following Python code using pandas, what will print(df.describe()) output?