NEW
Font size
WorksheetsData Analytics Unit 3 Quiz
Total questions: 15
Worksheet time: 8mins
Which Python library is commonly used for creating scatter plots?
NumPy
Pandas
Matplotlib
SciPy
In Matplotlib, which function is used to create a scatter plot?
plot()
scatter()
lineplot()
bar()
How can you add a title to a scatter plot in Matplotlib?
What is the purpose of the alpha parameter in scatter()?
To set the alignment of markers
To control the transparency of markers
To change the shape of markers
To set the aspect ratio of the plot
What does the hue parameter in sns.scatterplot() control?
Size of markers
Transparency of markers
Color of markers based on a categorical variable
Style of the markers
What does the covariance between two variables indicate?
The linear relationship between two variables
Differences between two variables
The average of the two variables
The spread of the data
Which function in Pandas is used to compute the correlation coefficient matrix?
cov()
corr()
correlation()
matrix()
What is the range of the Pearson correlation coefficient?
-∞ to +∞
0 to 1
-1 to 1
-1 to 0
What does a correlation value of -1 signify?
Perfect positive correlation
No correlation
Perfect negative correlation
Partial negative correlation
In Pandas, how do you calculate the covariance between two columns of a DataFrame?
df.corr()
df.cov()
df.covariance()
df.variance()
Which method in Pandas is used to calculate the Spearman rank correlation?
df.corr(method='pearson')
df.corr(method='spearman')
df.corr(method='kendall')
df.spearman()
Which library in Python is commonly used for linear regression?
Matplotlib
NumPy
scikit-learn
Seaborn
hat does the fit() method do in scikit-learn's regression models?
Tests the model on data
Fits the regression line to the training data
Predicts the output for the test data
Normalizes the data
Which of the following is the correct class for performing linear regression in scikit-learn?
sklearn.linear_model.LinearRegression
sklearn.model.LinearRegression
sklearn.linear.LinearModel
sklearn.regression.Linear
Which metric are used to evaluate the accuracy of a regression model?
a) Mean Squared Error (MSE)
b) RR squared
c) R-squared (R²)
d) Both (a) and (c)
