βœ… Quiz M1.03ΒΆ

Question

How are categorical variables represented?

  • a) categorical feature is only represented by non-numerical data

  • b) categorical feature represents a finite number of values called categories

  • c) categorical feature can either be represented by numerical or non-numerical values

Question

Ordinal variables are:

  • a) categorical variables with a large number of possible categories

  • b) typically represented by integers or string labels

  • c) categorical variables with a meaningful order

Question

One-hot encoding will:

  • a) encode a single string-encoded column into a single integer coded column

  • b) transform a numerical variable into a categorical variable

  • c) create one additional column for each possible category

  • d) transform string variable onto numerical representation

Question

Assume we have a dataset where each line describes a company. Which of the following columns should be considered as a meaningful numerical feature to train a machine learning model to classify companies:

  • a) the sector of activity (β€œconstruction”, β€œretail”, β€œenergy”, β€œinsurance”…)

  • b) the phone number of the sales department

  • c) the number of employees

  • d) the profits of the last quarter

  • e) the post code of the head quarters