Data Analysis with Python Week 3 Quiz Answer

Data Analysis with Python Week 3 Quiz Answer


Data Analysis with Python 

Week 3 Quiz Answer


Exploratory Data Analysis



Practice Quiz 1

Descriptive Statistics


Q1) Select the appropriate table for the following line of code:

df-pd.DataFrame('A':["a", "b","a","c","a"]}} 

df ['A'].value_counts()


  • value   counts
  •  a             3
  •  b             1
  •  c              1



Q2)What plot would you see after running the following lines of code?


  • x=df["engine size] 
  • y=df["price"]
  • plt.scatter(x,y)
  • plt.title("scatterplot of Engine Size vs Price")
  • plt.xlabel("Eneine Size") 
  • plt.ylabel("Price!)




Practice Quiz 2

Group By in Python


Q1) Consider the dataframe df, how many different groups would there be if you applied the groupby method to the column 'A?





  • 3
  • 2
  • 1

.


Q2) Select the appropriate description of a pivot table:


  • A pivot table has one variable displayed along the columns and the other variable displayed along the rows.
  • A pivot table contains statistical information for each column





Practice Quiz 3

Correlation


Q1) If umbrella usage is correlated with rain, does that mean that umbrellas cause rain?


  • True
  • False



Practice Quiz 4

Correlation - Statistics

Q1) Select the scatter plot with the correlation coefficient of -1:





Q2) Consider the following scatter plots ab and c. What plot would have the highest correlation coefficient? (Note: this one is harder than it seems)

  • a
  • b
  • c
  • they all have the same value





Practice Quiz 5

Exploratory Data Analysis

Q1) Consider the dataframe df: what method provides the summary statistics?
  • described
  • heado
  • taill)
Q2) What does the horizontal axis in a scatter plot represent?
  • Independent variable
  • Dependent variable
Q3) What is the largest possible element resulting in the operation df.corr()?
  • 100
  • 1000
  • 1
Q4) If the p-value of the Pearson Correlation is 1. then...
  • The variables are correlated
  • The variables are not correlated
  • None of the above



Q5) Consider the following dataframe:
  • df_test=df['body-style', 'price']]

The following operation is applied:
  • df_grp = df_test.groupby (['body-style'],as_index=False).mean()

What are the resulting values of:df grp[price']?

  • The average price for each body style
  • The average price
  • The average body style
Q6) What is the minimum possible value of Pearson's Correlation?
  • 1
  • 100
  • -1
Q7) What is the Pearson Correlation between variables X and Y, if X=Y?
  • -1 
  • 0



_____________________________________________________________


Data Analysis with Python




_____________________________________________________________



Post a Comment

1 Comments