Quiz-summary
0 of 10 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Information
You must specify a text. |
|
You must specify an email address. |
|
You must specify a number. |
Information
PLEASE READ THE INSTRUCTIONS CAREFULLY BEFORE PRESSING THE START BUTTON.
- DO NOT REFRESH, CLOSE OR SWITCH THE WINDOW as the quiz will be restarted.
- This quiz is for your self preparation for Machine Learning and related topics.
- The quiz is for LIMITED TIME – 15mins
- You can check the question correct responses during the quiz and even after the entire quiz is completed.
- The quiz has 10+ questions
- Some questions can have multiple options correct
- After submitting the quiz, there will be a View Questions button to see answers and explanation for each question.
- Once the timer is completed, quiz will be submitted automatically with all the questions you’ve answered in the given time.
Good luck!
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 10 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- ML fundamentals 0%
- Supervised Learning 0%
- Unsupervised Learning 0%
-
Thanks for taking the quiz!
Click on “View Questions” Button to check your responses.
We wish you good luck for any upcoming interviews!
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- Answered
- Review
-
Question 1 of 10
1. Question
1 pointsIn a college, 200 students are randomly selected. 140 like tea, 120 like coffee and 80 like both tea and coffee. Which of the following is true?
Correct
140 like tea while 80 like both tea and coffee. So 60 like only tea. 120 like coffee and 80 like both tea and coffee, so 40 like only coffee. Then 60 + 40 + 80 = 180 like either tea or coffee.
Incorrect
140 like tea while 80 like both tea and coffee. So 60 like only tea. 120 like coffee and 80 like both tea and coffee, so 40 like only coffee. Then 60 + 40 + 80 = 180 like either tea or coffee.
-
Question 2 of 10
2. Question
1 pointsWhat is naive about naive bayes binary classifier ?
Correct
The naive Baye’s classifier makes the naive assumption that various feature dimensions are independent conditioned on the class .
Naive Bayes classifier : Suppose you have M dimensional data of the form
and you want to predict the class
for this data. From Bayes rule we have :
Using the naive Baye’s assumption of independence of all features given y, we can write :
Incorrect
The naive Baye’s classifier makes the naive assumption that various feature dimensions are independent conditioned on the class .
Naive Bayes classifier : Suppose you have M dimensional data of the form
and you want to predict the class
for this data. From Bayes rule we have :
Using the naive Baye’s assumption of independence of all features given y, we can write :
-
Question 3 of 10
3. Question
2 pointsIf
, then which of the following is true?
Correct
Matrix multiplication is associative, i.e. (AB)C = A(BC)
Matrix multiplication is distributive, i.e. A(B+C) = AB+AC
Matrix multiplication may not be commutative, i.e. AB = BA only if m=q in the given caseIncorrect
Matrix multiplication is associative, i.e. (AB)C = A(BC)
Matrix multiplication is distributive, i.e. A(B+C) = AB+AC
Matrix multiplication may not be commutative, i.e. AB = BA only if m=q in the given case -
Question 4 of 10
4. Question
1 pointsIf f(x) is a convex function in one dimension, then f’’(x) (second differentiation of f(x)) at x=0 is always
Correct
For convex functions, f”(x) >= 0 for any x is the sufficient condition for local minimum. So it doesn’t matter if x is zero or not, f”(x) has to be non negative for f(x) to have local minimum, at point x where f'(x) is 0.
Incorrect
For convex functions, f”(x) >= 0 for any x is the sufficient condition for local minimum. So it doesn’t matter if x is zero or not, f”(x) has to be non negative for f(x) to have local minimum, at point x where f'(x) is 0.
-
Question 5 of 10
5. Question
2 pointsArrange the following in chronological order –
-
Focus on Problem statement
-
Select whether to apply Supervised or Unsupervised learning
-
Train-Test Split
-
Data Preprocessing
-
Model Selection
Correct
For any Machine Learning task in hand, we need to first give some time to understand the problem. Sometimes it is done with the help of domain experts. Once the problem has been understood, we need to check if it is a supervised or unsupervised learning problem. This can be determined by knowing what is the desired goal and whether we have labels or not. Once we know if its a clustering or classification problem, we do the train test split for better generalization. In most cases it is train-validation-test split but for simplicity we kept train-test split. Notice that train-test split happens before the data preprocessing as we don’t want test data to be used in preprocessing for better generalization. Whatever preprocessing is applied(sklearn’s fit function) on training data, test data is transformed similarly(using sklearn’s transform function). Post train-test split , we select the right features and then pre-process the data by scaling, normalization, replacing missing values in the features and other required processing in this step. And then lastly, we select the right model. Note that model selection would also include the task of determining what loss function to use.
Incorrect
For any Machine Learning task in hand, we need to first give some time to understand the problem. Sometimes it is done with the help of domain experts. Once the problem has been understood, we need to check if it is a supervised or unsupervised learning problem. This can be determined by knowing what is the desired goal and whether we have labels or not. Once we know if its a clustering or classification problem, we do the train test split for better generalization. In most cases it is train-validation-test split but for simplicity we kept train-test split. Notice that train-test split happens before the data preprocessing as we don’t want test data to be used in preprocessing for better generalization. Whatever preprocessing is applied(sklearn’s fit function) on training data, test data is transformed similarly(using sklearn’s transform function). Post train-test split , we select the right features and then pre-process the data by scaling, normalization, replacing missing values in the features and other required processing in this step. And then lastly, we select the right model. Note that model selection would also include the task of determining what loss function to use.
-
-
Question 6 of 10
6. Question
1 pointsIn K-Means clustering, If there are N points to cluster, what is the number of clusters, K, for inertia to be minimum ?
Correct
If each point belongs to a different cluster then that point becomes the cluster centre by triviality. Error in K-Means algorithm is calculated by taking the sum of squared distances of instances between their cluster centres, also called inertia. If K = N, there are N clusters and each point is its cluster centre. Hence the error becomes 0 which is the minimum possible error.
Incorrect
If each point belongs to a different cluster then that point becomes the cluster centre by triviality. Error in K-Means algorithm is calculated by taking the sum of squared distances of instances between their cluster centres, also called inertia. If K = N, there are N clusters and each point is its cluster centre. Hence the error becomes 0 which is the minimum possible error.
-
Question 7 of 10
7. Question
1 pointsCan you write down at least one application you think is based on unsupervised learning?
Correct
Don’t worry about the points if its showing incorrect answer.
If the application doesn’t use any user inputs directly in the application, most likely it is based on unsupervised learning. User inputs act as supervision in many applications but in some it might just be data and not the labels.Incorrect
Don’t worry about the points if its showing incorrect answer.
If the application doesn’t use any user inputs directly in the application, most likely it is based on unsupervised learning. User inputs act as supervision in many applications but in some it might just be data and not the labels. -
Question 8 of 10
8. Question
2 pointsWhich of the following is NOT true for DBSCAN clustering algorithm?
Correct
DBSCAN is a density based clustering algorithm. It separates high density regions from low density regions using params like epsilon and minPoints. Epsilon takes care of the closeness between the points in the same cluster. minPoints ensure lower density regions do not form any clusters. This makes it more robust to outliers instead of sensitive to outliers(noise). Due to these params, it does not perform well for varying density clusters as epsilon and minPoints parameters are fixed for all density clusters.
Incorrect
DBSCAN is a density based clustering algorithm. It separates high density regions from low density regions using params like epsilon and minPoints. Epsilon takes care of the closeness between the points in the same cluster. minPoints ensure lower density regions do not form any clusters. This makes it more robust to outliers instead of sensitive to outliers(noise). Due to these params, it does not perform well for varying density clusters as epsilon and minPoints parameters are fixed for all density clusters.
-
Question 9 of 10
9. Question
1 pointsWhich of these is the closed form solution for linear regression, where X(n x d) is a matrix with each row as a data point in d-dimensions,
is a d dimensional vector and
is an n-dimensional vector with true values?
Correct
This follows from the following equation in n-dimensions
Using the fact that the above function is convex function and hence first order condition is necessary and sufficient. Taking the first derivative and equating it to zero to find
Please refer to this link for detailed explanation on Linear Regression.
Incorrect
This follows from the following equation in n-dimensions
Using the fact that the above function is convex function and hence first order condition is necessary and sufficient. Taking the first derivative and equating it to zero to find
Please refer to this link for detailed explanation on Linear Regression.
-
Question 10 of 10
10. Question
1 pointsLogistic regression is linear only because of sigmoid function otherwise it will just be another regression model.
Correct
Logistic regression is linear not because of sigmoid function but due to linearity in parameters. Sigmoid function, on the other hand, is a nonlinear function used to convert a real number to a number between 0 and 1.
Incorrect
Logistic regression is linear not because of sigmoid function but due to linearity in parameters. Sigmoid function, on the other hand, is a nonlinear function used to convert a real number to a number between 0 and 1.