1. Home
  2. Explore
  3. Statistics
  4. Exploratory Data Analysis

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Exploratory Data Analysis

  • 55Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Data Setup

Why does the analysis use frequency tables for some variables and correlation for others?

55 questions

  1. 1

    Why does the analysis use frequency tables for some variables and correlation for others?

    1. A

      Both methods require every variable to be categorical

    2. B

      Both methods are used only to summarize missing values

    3. C

      Frequency tables examine categorical variables, while correlation measures association between numerical variables

    4. D

      Frequency tables examine numerical variables, while correlation measures association between categorical variables

    Correct answer
    C

    Frequency tables examine categorical variables, while correlation measures association between numerical variables

    Explanation

    The lecture uses frequency tables and cross-tabulation to examine categorical variables, and correlation to examine the association between numerical variables.

  2. 2

    Which library is used to change the working directory in the analysis?

    1. A

      The matplotlib library

    2. B

      The numpy library

    3. C

      The pandas library

    4. D

      The os library

    Correct answer
    D

    The os library

    Explanation

    The os library is used with os.chdir to change the working directory.

  3. 3

    Why is pandas imported as pd?

    1. A

      pd converts all imported columns into categorical variables

    2. B

      pd is a convenient alias used to refer to pandas functions

    3. C

      pd automatically removes missing records from every data frame

    4. D

      pd changes the working directory before reading data

    Correct answer
    B

    pd is a convenient alias used to refer to pandas functions

    Explanation

    The lecture uses pd as a short alias for the pandas library.

  4. 4

    Which pandas function is appropriate for reading a CSV file such as Toyota.csv?

    1. A

      pd.copy_csv

    2. B

      pd.chdir

    3. C

      pd.crosstab

    4. D

      pd.read_csv

    Correct answer
    D

    pd.read_csv

    Explanation

    The data is stored as a CSV file, so the lecture reads it using pandas' read_csv function.

  5. 5

    What is the purpose of setting index_col=0 when reading the car data?

    1. A

      It removes the first row because it contains missing values

    2. B

      It uses the first column of the CSV as the data frame's index

    3. C

      It sorts the data by the first column

    4. D

      It converts the first column into a frequency table

    Correct answer
    B

    It uses the first column of the CSV as the data frame's index

    Explanation

    Setting index_col=0 specifies that the first column should serve as the data frame's index.

  6. 6

    Why are question-mark strings specified as missing-value markers while reading the file?

    1. A

      They represent a special fuel type that must be retained as a category

    2. B

      They indicate that the corresponding records should become the data frame index

    3. C

      They instruct pandas to convert the entire column to text

    4. D

      They do not convey usable data values and can be treated as standard missing values

    Correct answer
    D

    They do not convey usable data values and can be treated as standard missing values

    Explanation

    The question marks are not meaningful data values, so the lecture treats them as missing values to enable standard missing-data handling.

  7. 7

    What is the main reason for making a copy of the original data frame before analysis?

    1. A

      To make changes to a separate data frame while preserving the original for comparison

    2. B

      To automatically replace all missing values with zeros

    3. C

      To reduce the number of rows before creating tables

    4. D

      To convert all variables into numerical data

    Correct answer
    A

    To make changes to a separate data frame while preserving the original for comparison

    Explanation

    Working on a copy keeps modifications from affecting the original data and allows the original to be used for cross-checking.

  8. 8

    What does cars_data2 = cars_data.copy() accomplish in the lecture's workflow?

    1. A

      It removes every row that contains a missing value

    2. B

      It creates a frequency table of the car variables

    3. C

      It creates a separate data frame copied from cars_data

    4. D

      It changes the working directory to the data folder

    Correct answer
    C

    It creates a separate data frame copied from cars_data

    Explanation

    The copy function creates a new data frame that can be used for analysis without modifying the original.

  9. 9

    What is the purpose of a univariate frequency table for a categorical variable?

    1. A

      To replace each category with a numerical measurement

    2. B

      To show the correlation between that variable and every numerical variable

    3. C

      To calculate the conditional probability for every pair of categories

    4. D

      To show the count of records in each category of that variable

    Correct answer
    D

    To show the count of records in each category of that variable

    Explanation

    A univariate frequency table summarizes how many observations fall into each category of one categorical variable.

  10. 10

    Which function does the lecture use to create both one-way frequency tables and two-way tables?

    1. A

      DataFrame.copy

    2. B

      pd.read_csv

    3. C

      pd.crosstab

    4. D

      os.chdir

    Correct answer
    C

    pd.crosstab

    Explanation

    The lecture uses pandas' crosstab function for frequency tables and cross-tabulations.

  11. 11

    When Fuel Type is supplied as the index to pd.crosstab, what does the resulting one-way table report?

    1. A

      The correlation between Fuel Type and gearbox type

    2. B

      The number of missing columns in each Fuel Type category

    3. C

      The average price of cars in each Fuel Type category

    4. D

      The count of records in each Fuel Type category

    Correct answer
    D

    The count of records in each Fuel Type category

    Explanation

    With Fuel Type as the single index variable, the table gives the frequency of each category of Fuel Type.

  12. 12

    What is the purpose of setting dropna=True when creating the Fuel Type frequency table?

    1. A

      To remove duplicate Fuel Type categories from the data frame

    2. B

      To exclude records with missing Fuel Type values from the frequency counts

    3. C

      To convert category counts into proportions that sum to one

    4. D

      To add missing Fuel Type values as a new category in the table

    Correct answer
    B

    To exclude records with missing Fuel Type values from the frequency counts

    Explanation

    The setting excludes records with missing values for the variable being tabulated, so only non-missing Fuel Type records contribute to the counts.

  13. 13

    The car data contains 1,436 rows, and 100 records have missing Fuel Type values. How many records remain for a frequency table that drops those missing values?

    1. A

      100

    2. B

      1,336

    3. C

      1,536

    4. D

      1,436

    Correct answer
    B

    1,336

    Explanation

    Dropping the 100 records with missing Fuel Type leaves 1436−100=13361436-100=13361436−100=1336 records.

  14. 14

    Among the non-missing Fuel Type records, which category is most frequent in the lecture's example?

    1. A

      CNG, with 144 records

    2. B

      Petrol, with 144 records

    3. C

      Petrol, with 1,177 records

    4. D

      Diesel, with 1,177 records

    Correct answer
    C

    Petrol, with 1,177 records

    Explanation

    The example reports 1,177 petrol cars, compared with 144 diesel cars and 15 CNG cars.

  15. 15

    In the car data, what do the values 0 and 1 in the Automatic variable represent?

    1. A

      0 represents a missing gearbox, and 1 represents a manual gearbox

    2. B

      0 represents a manual gearbox, and 1 represents an automatic gearbox

    3. C

      0 represents an automatic gearbox, and 1 represents a manual gearbox

    4. D

      0 represents a petrol car, and 1 represents a diesel car

    Correct answer
    B

    0 represents a manual gearbox, and 1 represents an automatic gearbox

    Explanation

    The lecture defines 0 as a manual gearbox and 1 as an automatic gearbox.

  16. 16

    In a cross-tabulation with Automatic as the index and Fuel Type as the columns, what does a cell represent?

    1. A

      The correlation between the row's gearbox type and the column's Fuel Type

    2. B

      The number of records with the row's gearbox type and the column's Fuel Type

    3. C

      The number of missing records in the row's gearbox type

    4. D

      The average price for the row's gearbox type and the column's Fuel Type

    Correct answer
    B

    The number of records with the row's gearbox type and the column's Fuel Type

    Explanation

    Each cell counts records that have the gearbox type named by its row and the Fuel Type named by its column.

  17. 17

    When dropna=True is used for the two-way table of Automatic and Fuel Type, which records contribute to the table?

    1. A

      Only records with missing values for both variables

    2. B

      Records with a non-missing value for either Automatic or Fuel Type

    3. C

      All records, with missing values counted as ordinary categories

    4. D

      Records with non-missing values for both Automatic and Fuel Type

    Correct answer
    D

    Records with non-missing values for both Automatic and Fuel Type

    Explanation

    A record is included only when both variables used in the cross-tabulation have non-missing values.

  18. 18

    What does a zero count for automatic cars with CNG fuel indicate in the observed cross-tabulation?

    1. A

      Automatic cars with CNG fuel are impossible in every population

    2. B

      No records in this data set have both an automatic gearbox and CNG fuel

    3. C

      The CNG category was removed from the original data

    4. D

      Every CNG car has a missing gearbox value

    Correct answer
    B

    No records in this data set have both an automatic gearbox and CNG fuel

    Explanation

    The zero means that the observed data contain no records with both of those characteristics; it does not prove that such cars cannot exist elsewhere.

  19. 19

    What does a joint probability describe?

    1. A

      The probability that either of two events occurs separately

    2. B

      The count of records in a single category

    3. C

      The probability that two specified events occur together

    4. D

      The probability of one event after excluding all other events

    Correct answer
    C

    The probability that two specified events occur together

    Explanation

    A joint probability represents the likelihood of two events occurring at the same time.

  20. 20

    How does the lecture convert cross-tabulated counts into joint probabilities?

    1. A

      It sets normalize=True in pd.crosstab

    2. B

      It sets dropna=False in pd.crosstab

    3. C

      It sets margins=True in pd.crosstab

    4. D

      It changes the Automatic values from 0 and 1 to text

    Correct answer
    A

    It sets normalize=True in pd.crosstab

    Explanation

    With normalize=True, the table entries are proportions of the overall total, which the lecture interprets as joint probabilities.

  21. 21

    In the joint-probability table, what does a cell for manual gearbox and CNG represent?

    1. A

      The probability that a car uses CNG given that it has a manual gearbox

    2. B

      The probability that a car has a manual gearbox given that it uses CNG

    3. C

      The probability that a car has both a manual gearbox and CNG fuel

    4. D

      The count of cars with either a manual gearbox or CNG fuel

    Correct answer
    C

    The probability that a car has both a manual gearbox and CNG fuel

    Explanation

    A joint-probability cell gives the probability of the combination named by its row and column—in this case, both characteristics together.

  22. 22

    The joint probability for a manual gearbox and CNG fuel is reported as 0.01. What does this value mean?

    1. A

      There are 0.01 cars with either a manual gearbox or CNG fuel

    2. B

      About 1% of the observations have both a manual gearbox and CNG fuel

    3. C

      About 1% of manual cars use CNG, conditional on being manual

    4. D

      About 1% of CNG cars have a manual gearbox, conditional on using CNG

    Correct answer
    B

    About 1% of the observations have both a manual gearbox and CNG fuel

    Explanation

    An overall-normalized joint probability of 0.01 means that about 1% of all included observations have both characteristics.

  23. 23

    What is a marginal probability in a two-way table?

    1. A

      The probability of one event considered by itself

    2. B

      The probability that two events happen together

    3. C

      The probability of one event given that another has occurred

    4. D

      The count of observations with missing values in either variable

    Correct answer
    A

    The probability of one event considered by itself

    Explanation

    A marginal probability concerns the occurrence of a single event, without conditioning on the other variable.

  24. 24

    What does adding margins=True to the normalized cross-tabulation provide?

    1. A

      The conditional probabilities in every cell automatically

    2. B

      Row and column totals, including marginal probabilities

    3. C

      A separate correlation matrix for the variables

    4. D

      Only the missing-value counts for each row

    Correct answer
    B

    Row and column totals, including marginal probabilities

    Explanation

    The margins setting adds row and column sums; when the table is normalized, these sums give marginal probabilities.

  25. 25

    In an overall-normalized table with gearbox type as rows, what does a row margin of approximately 0.947 for manual gearbox indicate?

    1. A

      About 94.7% of the included cars have an automatic gearbox

    2. B

      About 94.7% of petrol cars have a manual gearbox

    3. C

      About 94.7% of the included cars have a manual gearbox

    4. D

      About 94.7% of manual cars use petrol

    Correct answer
    C

    About 94.7% of the included cars have a manual gearbox

    Explanation

    A row margin is the probability of the row category regardless of Fuel Type, so this value represents the overall probability of a manual gearbox.

  26. 26

    In the same table, what does the petrol column margin of approximately 0.88 represent?

    1. A

      The joint probability of petrol fuel and an automatic gearbox

    2. B

      The probability that a manual car has petrol fuel

    3. C

      The overall probability that a car has petrol fuel, regardless of gearbox type

    4. D

      The probability that a petrol car has a manual gearbox

    Correct answer
    C

    The overall probability that a car has petrol fuel, regardless of gearbox type

    Explanation

    A column margin gives the probability of that column category across all gearbox types; the petrol margin is the overall probability of petrol fuel.

  27. 27

    What should the sum of all joint probabilities in a complete normalized two-way table equal?

    1. A

      The number of categories in the row variable

    2. B

      1

    3. C

      0

    4. D

      The number of non-missing records

    Correct answer
    B

    1

    Explanation

    The joint probabilities cover all included combinations, so their total probability is 1.

  28. 28

    What does conditional probability express?

    1. A

      The count of all events in a single variable

    2. B

      The probability of an event given that another event has occurred

    3. C

      The probability of two events occurring together without conditions

    4. D

      The strength of association between two numerical variables

    Correct answer
    B

    The probability of an event given that another event has occurred

    Explanation

    Conditional probability describes the probability of one event under the condition that another event has already occurred.

  29. 29

    What does normalize='index' do in the gearbox-by-Fuel-Type table?

    1. A

      It adds row and column sums without changing the cell values

    2. B

      It normalizes each row to sum to 1, giving Fuel Type probabilities conditional on gearbox type

    3. C

      It normalizes each column to sum to 1, giving gearbox probabilities conditional on Fuel Type

    4. D

      It normalizes the entire table to sum to 1, giving joint probabilities

    Correct answer
    B

    It normalizes each row to sum to 1, giving Fuel Type probabilities conditional on gearbox type

    Explanation

    Index normalization makes each row sum to 1, so the entries describe the distribution of Fuel Type given the row's gearbox type.

  30. 30

    With normalize='index', what does a value of 0.87 for petrol in the manual-gearbox row mean?

    1. A

      Among all cars, the probability of a manual gearbox is 0.87

    2. B

      Among petrol cars, the probability of a manual gearbox is 0.87

    3. C

      Among manual cars, the probability of petrol fuel is 0.87

    4. D

      The overall probability of a car having both manual gearbox and petrol fuel is 0.87

    Correct answer
    C

    Among manual cars, the probability of petrol fuel is 0.87

    Explanation

    Because rows are normalized, the value is conditional on the row category: given a manual gearbox, the probability of petrol fuel is 0.87.

  31. 31

    In the observed data, what does the petrol probability of 1 in the automatic-gearbox row imply?

    1. A

      Every observed car with petrol fuel has an automatic gearbox

    2. B

      Every observed petrol car has an automatic gearbox

    3. C

      The overall probability of petrol fuel is 1

    4. D

      Every observed automatic car has petrol fuel

    Correct answer
    D

    Every observed automatic car has petrol fuel

    Explanation

    The automatic row sums to 1, and its petrol entry is 1, indicating that all observed automatic cars in the table use petrol.

  32. 32

    What does normalize='columns' do in the gearbox-by-Fuel-Type table?

    1. A

      It makes each gearbox row sum to 1, giving Fuel Type probabilities conditional on gearbox

    2. B

      It makes each Fuel Type column sum to 1, giving gearbox probabilities conditional on Fuel Type

    3. C

      It replaces every column with its marginal count

    4. D

      It makes the whole table sum to 1, giving joint probabilities

    Correct answer
    B

    It makes each Fuel Type column sum to 1, giving gearbox probabilities conditional on Fuel Type

    Explanation

    Column normalization makes each column sum to 1, so each column describes gearbox probabilities given the Fuel Type named at its top.

  33. 33

    With column normalization, what does a value of 1 for manual gearbox in the CNG column indicate?

    1. A

      Given that a car has a manual gearbox, its Fuel Type is CNG in all included records

    2. B

      The joint probability of CNG and a manual gearbox is 1

    3. C

      The overall probability of a manual gearbox is 1

    4. D

      Given that a car uses CNG, its gearbox is manual in all included CNG records

    Correct answer
    D

    Given that a car uses CNG, its gearbox is manual in all included CNG records

    Explanation

    The CNG column is normalized to 1, so the manual entry of 1 means all included CNG cars have a manual gearbox.

  34. 34

    What does a petrol-column value of 0.93 for manual gearbox mean under column normalization?

    1. A

      Among manual cars, about 93% use petrol

    2. B

      Among all cars, the probability of petrol fuel is 0.93

    3. C

      Among petrol cars, about 93% have a manual gearbox

    4. D

      About 93% of all cars are both petrol and manual

    Correct answer
    C

    Among petrol cars, about 93% have a manual gearbox

    Explanation

    With columns normalized, the denominator is the number of petrol cars, so the value is the probability of a manual gearbox given petrol fuel.

  35. 35

    What kind of relationship is correlation used to assess in this lecture?

    1. A

      The strength of association between two numerical variables

    2. B

      The frequency of categories in a single categorical variable

    3. C

      The number of records removed because of missing values

    4. D

      The probability of two categorical events occurring together

    Correct answer
    A

    The strength of association between two numerical variables

    Explanation

    The lecture introduces correlation as a measure of the strength of association between numerical variables.

  36. 36

    In a scatter plot, what pattern suggests a positive relationship between two variables?

    1. A

      The points lie at the same value on both axes

    2. B

      The points tend to fall as one variable increases

    3. C

      The points tend to rise as one variable increases

    4. D

      The points form no discernible pattern

    Correct answer
    C

    The points tend to rise as one variable increases

    Explanation

    A positive trend means that larger values of one variable tend to occur with larger values of the other.

  37. 37

    A scatter plot shows points spread without a discernible pattern. What is the best interpretation given in the lecture?

    1. A

      There is little or no correlation between the variables

    2. B

      There is a strong positive correlation between the variables

    3. C

      There is a strong negative correlation between the variables

    4. D

      The variables must have identical values

    Correct answer
    A

    There is little or no correlation between the variables

    Explanation

    The lecture associates a scattered pattern with little or no correlation between the two variables.

  38. 38

    What is the range of correlation values described in the lecture?

    1. A

      From −1-1−1 to +1+1+1

    2. B

      From 111 to +∞+\infty+∞

    3. C

      From 000 to +100+100+100

    4. D

      From −100-100−100 to 000

    Correct answer
    A

    From −1-1−1 to +1+1+1

    Explanation

    Correlation values are bounded between −1-1−1 and +1+1+1.

  39. 39

    How should a correlation close to −1-1−1 be interpreted?

    1. A

      No association between the variables

    2. B

      A strong positive association between the variables

    3. C

      A weak association that must be positive

    4. D

      A strong negative association between the variables

    Correct answer
    D

    A strong negative association between the variables

    Explanation

    Values close to −1-1−1 indicate a strong negative relationship: as one variable increases, the other tends to decrease.

  40. 40

    How should a correlation close to +1+1+1 be interpreted?

    1. A

      A relationship that is necessarily non-linear

    2. B

      No association between the variables

    3. C

      A strong negative association between the variables

    4. D

      A strong positive association between the variables

    Correct answer
    D

    A strong positive association between the variables

    Explanation

    Values close to +1+1+1 indicate a strong positive relationship between the variables.

  41. 41

    According to the lecture, what does a correlation value of 0 represent?

    1. A

      A correlation that is necessarily greater than 0.7

    2. B

      No correlation between the two numerical variables

    3. C

      A perfect positive correlation between the variables

    4. D

      A perfect negative correlation between the variables

    Correct answer
    B

    No correlation between the two numerical variables

    Explanation

    The lecture identifies 0 as indicating no correlation between the two numerical variables.

  42. 42

    The lecture describes a correlation above 0.7 as evidence of what?

    1. A

      No correlation between the numerical variables

    2. B

      A fair correlation between the numerical variables

    3. C

      Proof that one variable causes the other

    4. D

      A perfect negative correlation between the variables

    Correct answer
    B

    A fair correlation between the numerical variables

    Explanation

    The lecture states that a value above 0.7 can be considered a fair correlation; correlation alone does not establish causation.

  43. 43

    If a car's age increases while its price tends to decrease, what kind of correlation would represent this pattern?

    1. A

      A zero correlation by definition

    2. B

      A positive correlation

    3. C

      A marginal probability

    4. D

      A negative correlation

    Correct answer
    D

    A negative correlation

    Explanation

    When one variable tends to decrease as the other increases, their association is negative.

  44. 44

    Which correlation measure does the lecture identify as the default used by DataFrame.corr?

    1. A

      Cross-tabulation correlation

    2. B

      Marginal correlation

    3. C

      Joint probability

    4. D

      Pearson correlation

    Correct answer
    D

    Pearson correlation

    Explanation

    The lecture states that Pearson correlation is used by default to assess association between numerical variables.

  45. 45

    Which alternatives does the lecture mention for assessing association involving ordinal variables?

    1. A

      Index correlation and column correlation

    2. B

      Joint probability and marginal probability

    3. C

      Frequency correlation and conditional correlation

    4. D

      Kendall rank correlation and Spearman rank correlation

    Correct answer
    D

    Kendall rank correlation and Spearman rank correlation

    Explanation

    For ordinal variables, the lecture names Kendall rank correlation and Spearman rank correlation as alternative measures.

  46. 46

    What does the data frame corr function calculate when applied to the numerical columns?

    1. A

      The joint probability of every pair of categories

    2. B

      Pairwise correlations among the columns

    3. C

      The number of missing values in each row

    4. D

      A single frequency count for each column

    Correct answer
    B

    Pairwise correlations among the columns

    Explanation

    The function computes pairwise correlations between columns, rather than only one selected pair.

  47. 47

    How does the lecture describe the handling of missing values during correlation calculation?

    1. A

      All rows with any missing value are always converted to zeros

    2. B

      Every null value is treated as a correlation of zero

    3. C

      Null values are treated as a separate numerical category

    4. D

      The pairwise calculation excludes null values

    Correct answer
    D

    The pairwise calculation excludes null values

    Explanation

    The lecture notes that corr excludes null values when computing the pairwise correlations.

  48. 48

    Why does the lecture exclude object-type columns before calculating Pearson correlations?

    1. A

      To ensure the correlation matrix includes only missing-value counts

    2. B

      To retain numerical columns and omit categorical columns from the calculation

    3. C

      To convert every numerical column into an object column

    4. D

      To remove all rows that contain numerical values

    Correct answer
    B

    To retain numerical columns and omit categorical columns from the calculation

    Explanation

    The analysis selects numerical columns by excluding object-type columns, because Pearson correlation is being used for numerical variables.

  49. 49

    The selected numerical data has shape (1436,8)(1436, 8)(1436,8). What does this tell you?

    1. A

      It contains 8 observations and 1,436 numerical variables

    2. B

      It contains 1,436 correlation values and 8 rows

    3. C

      It contains 1,436 missing values and 8 categorical variables

    4. D

      It contains 1,436 observations and 8 numerical variables

    Correct answer
    D

    It contains 1,436 observations and 8 numerical variables

    Explanation

    A data frame's shape lists its number of rows followed by its number of columns: 1,436 observations and 8 numerical variables.

  50. 50

    Why are all values on the principal diagonal of a correlation matrix equal to 1?

    1. A

      Every pair of different variables has identical values

    2. B

      Each variable has no missing observations

    3. C

      Each variable is perfectly correlated with itself

    4. D

      Each variable is independent of itself

    Correct answer
    C

    Each variable is perfectly correlated with itself

    Explanation

    The diagonal compares each variable with itself, and a variable has a correlation of 1 with itself.

  51. 51

    The reported correlation between car price and age is approximately −0.87-0.87−0.87. What does this suggest?

    1. A

      A strong negative association: older cars tend to have lower prices

    2. B

      A correlation that proves age directly causes price changes

    3. C

      A strong positive association: older cars tend to have higher prices

    4. D

      No association between car age and price

    Correct answer
    A

    A strong negative association: older cars tend to have lower prices

    Explanation

    The negative value, relatively close to −1-1−1, indicates a strong negative association; the lecture notes that price tends to decrease as car age increases.

  52. 52

    The reported correlation between price and kilometres travelled is approximately −0.57-0.57−0.57. Which interpretation matches the lecture?

    1. A

      Price and kilometres have no relationship in the data

    2. B

      Cars with more kilometres tend to have lower prices, with a fair negative association

    3. C

      The value means that 57% of cars have missing kilometre values

    4. D

      Cars with more kilometres tend to have higher prices, with a fair positive association

    Correct answer
    B

    Cars with more kilometres tend to have lower prices, with a fair negative association

    Explanation

    The negative correlation indicates that price tends to decrease as kilometres increase; the lecture describes this as a fair negative relationship.

  53. 53

    The reported correlation between car weight and price is approximately +0.58+0.58+0.58. What does its sign indicate?

    1. A

      Heavier cars tend to have higher prices

    2. B

      Heavier cars tend to have lower prices

    3. C

      Weight and price have no association

    4. D

      The probability of a heavy car is 0.58

    Correct answer
    A

    Heavier cars tend to have higher prices

    Explanation

    A positive correlation indicates that the variables tend to increase together; the lecture describes price as increasing with car weight.

  54. 54

    The lecture reports a positive relationship between car age and kilometres travelled. What pattern does this describe?

    1. A

      Older cars tend to have travelled fewer kilometres

    2. B

      Cars with more kilometres must have lower weight

    3. C

      Older cars tend to have travelled more kilometres

    4. D

      Car age and kilometres are unrelated in the observed data

    Correct answer
    C

    Older cars tend to have travelled more kilometres

    Explanation

    The lecture interprets the positive age–kilometres relationship to mean that older cars tend to have accumulated more kilometres.

  55. 55

    How can a user request a correlation measure other than Pearson in the lecture's Python workflow?

    1. A

      By adding margins=True to a cross-tabulation

    2. B

      By changing the data frame's working directory

    3. C

      By setting index_col=0 while reading the file

    4. D

      By specifying a different method argument

    Correct answer
    D

    By specifying a different method argument

    Explanation

    The lecture explains that another correlation measure can be chosen by specifying it through the method argument.

Question 1 of 55
Question 1 of 55

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent