Google Adwords studies the number of men, and women, clicking the advertisement on search engine during the midnight for an hour each day. Google find that the number of men that click can be modeled as a random variable with distribution Poisson(X), and likewise the number of women that click as Poisson(Y). What is likely to be the best model of the total number of advertisement clicks during the midnight for an hour ?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerD
ExplanationExplanation: The total number of clicks is the sum of the number of men and women. The sum of two Poisson random variables also follows a Poisson distribution with rate equal to the sum of their rates. The Normal and Binomial distribution can approximate the Poisson distribution in certain cases, but the expressions above do not approximate Poisson(X+Y).
Which of the following technique can be used to the design of recommender systems?
-
A
-
B
-
C
-
D
-
E
Reveal answer details
Close answer details
Correct answerC
ExplanationExplanation: One approach to the design of recommender systems that has seen wide use is collaborative filtering. Collaborative filtering methods are based on collecting and analyzing a large amount of information on users' behaviors, activities or preferences and predicting what users will like based on their similarity to other users. A key advantage of the collaborative filtering approach is that it does not rely on machine analyzable content and therefore it is capable of accurately recommending complex items such as movies without requiring an "understanding" of the item itself. Many algorithms have been used in measuring user similarity or item similarity in recommender systems. For example the k- nearest neighbor (k-NN) approach and the Pearson Correlation
Suppose you have been given a relatively high-dimension set of independent variables and you are asked to come up with a model that predicts one of Two possible outcomes like "YES" or "NO", then which of the following technique best fit?
-
A
-
B
-
C
-
D
-
E
Reveal answer details
Close answer details
Correct answerE
ExplanationExplanation: In this problem you have been given high-dimensional independent variables like yeS; nO; no English words , test results etc. and you have to predict either valid or not valid (One of two). So all of the below technique can be applied to this problem. Support vector machines Naive Bayes Logistic regression Random decision forests
A bio-scientist is working on the analysis of the cancer cells. To identify whether the cell is cancerous or not, there has been hundreds of tests are done with small variations to say yes to the problem. Given the test result for a sample of healthy and cancerous cells, which of the following technique you will use to determine whether a cell is healthy?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerC
ExplanationExplanation: In this problem you have been given high-dimensional independent variables like yes, no: test results etc. and you have to predict either valid or not valid (One of two). So all of the below technique can be applied to this problem. Support vector machines Naive Bayes Logistic regression Random decision forests
Suppose you have made a model for the rating system, which rates between 1 to 5 stars. And you calculated that RMSE value is 1.0 then which of the following is correct
-
A
It means that your predictions are on average one star off of what people really think
-
B
It means that your predictions are on average two star off of what people really think
-
C
It means that your predictions are on average three star off of what people really think
-
D
It means that your predictions are on average four star off of what people really think
Reveal answer details
Close answer details
Under which circumstance do you need to implement N-fold cross-validation after creating a regression model?
-
A
-
B
There is not enough data to create a test set.
-
C
There are missing values in the data.
-
D
There are categorical variables in the model.
Reveal answer details
Close answer details
What are the advantages of the mutual information over the Pearson correlation for text classification problems?
-
A
The mutual information has a meaningful test for statistical significance.
-
B
The mutual information can signal non-linear relationships between the dependent and independent variables.
-
C
The mutual information is easier to parallelize.
-
D
The mutual information doesn't assume that the variables are normally distributed.
Reveal answer details
Close answer details
Correct answerC
ExplanationExplanation: A linear scaling of the input variables (that may be caused by a change of units for the measurements) is sufficient to modify the PCA results. Feature selection methods that are sufficient for simple distributions of the patterns belonging to different classes can fail in classification tasks with complex decision boundaries. In addition, methods based on a linear dependence (like the correlation) cannot take care of arbitrary relations between the pattern coordinates and the different classes. On the contrary, the mutual information can measure arbitrary relations between variables and it does not depend on transformations acting on the different variables. This item concerns itself with feature selection for a text classification problem and references mutual information criteria. Mutual information is a bit more sophisticated than just selecting based on the simple correlation of two numbers because it can detect non-linear relationships that will not be identified by the correlation. Whenever possible: mutual information is a better feature selection technique than correlation. Mutual information is a quantification of the dependency between random variables. It is sometimes contrasted with linear correlation since mutual information captures nonlinear dependence. Correlation analysis provides a quantitative means of measuring the strength of a linear relationship between two vectors of data. Mutual information is essentially the measure of how much "knowledge" one can gain of a certain variable by knowing the value of another variable.
Question 8
Multiple choice
You are working with the Clustering solution of the customer datasets. There are almost 40 variables are available for each customer and almost 1.00,0000 customer's data is available. You want to reduce the number of variables for clustering, what would you do?
-
A
You will randomly reduce the number of variables
-
B
You will find the correlation among the variables and from their variables are not co-related will be discarded.
-
C
You will find the correlation among the variables and from the highly co-related variables, you will be considering only one or two variables from it.
-
D
You cannot discard any variable for creating clusters.
-
E
You can combine several variables in one variable
Reveal answer details
Close answer details
Correct answersC, E
ExplanationExplanation: When you are applying clustering technique and you find that there are quite a huge number of variables are available. Then it is better the find the co-relation among the variables and consider only one or two variables from the highly co-related variables. Because highly co-related variable will have the same effect, while creating the cluster. We can use scatter plot matrix among the variables to find the co-relation. You can also combine several variables into a single variable. For example if you have two values in the dataset like Asset and Debt than by combining these two values like Debt to Asset ratio and use it while creating the cluster.
Question 9
Multiple choice
Which of the following are point estimation methods?
-
A
-
B
-
C
Reveal answer details
Close answer details
Correct answersA, B, C
ExplanationExplanation: Point estimators minimum-variance mean-unbiased estimator (MVUE), minimizes the risk (expected loss) of the squared-error loss-function. best linear unbiased estimator (BLUE) minimum mean squared error (MMSE) median-unbiased estimator, minimizes the risk of the absolute-error loss function maximum likelihood (ML) method of moments, generalized method of moments
Question 10
Single choice
What is the considerable difference between L1 and L2 regularization?
-
A
L1 regularization has more accuracy of the resulting model
-
B
Size of the model can be much smaller in L1 regularization than that produced by L2- regularization
-
C
L2-regularization can be of vital importance when the application is deployed in resource-tight environments such as cell-phones.
-
D
All of the above are correct
Reveal answer details
Close answer details
Correct answerB
ExplanationExplanation: The two most common regularization methods are called L1 and L2 regularization. L1 regularization penalizes the weight vector for its L1-norm (i.e. the sum of the absolute values of the weights), whereas L2 regularization uses its L2-norm. There is usually not a considerable difference between the two methods in terms of the accuracy of the resulting model (Gao et al 2007), but L1 regularization has a significant advantage in practice. Because many of the weights of the features become zero as a result of L1- regularized training, the size of the model can be much smaller than that produced by L2- regularization. Compact models require less space on memory and storage, and enable the application to start up quickly. These merits can be of vital importance when the application is deployed in resource-tight environments such as cell-phones. Regularization works by adding the penalty associated with the coefficient values to the error of the hypothesis. This way, an accurate hypothesis with unlikely coefficients would be penalized whila a somewhat less accurate but more conservative hypothesis with low coefficients would not be penalized as much.
Question 11
Single choice
You are creating a model for the recommending the book at Amazon.com, so which of the following recommender system you will use you don't have cold start problem?
-
A
-
B
Item-based collaborative filtering
-
C
User-based collaborative filtering
-
D
Reveal answer details
Close answer details
Correct answerD
ExplanationExplanation: The cold start problem is most prevalent in recommender systems. Recommender systems form a specific type of information filtering (IF) technique that attempts to present information items (movies, music, books, news, images, web pages) that are likely of interest to the user. Typically, a recommender system compares the user's profile to some reference characteristics. These characteristics may be from the information item (the content-based approach) or the user's social environment (the collaborative filtering approach). In the content-based approach, the system must be capable of matching the characteristics of an item against relevant features in the user's profile. In order to do this, it must first construct a sufficiently-detailed model of the user's tastes and preferences through preference elicitation. This may be done either explicitly (by querying the user) or implicitly (by observing the user's behaviour). In both cases, the cold start problem would imply that the user has to dedicate an amount of effort using the system in its 'dumb' state - contributing to the construction of their user profile - before the system can start providing any intelligent recommendations. Content-based filtering recommender systems use information about items or users to make recommendations, rather than user preferences, so it will perform well with little user preference data. Item-based and user-based collaborative filtering makes predictions based on users' preferences for items, os they will typically perform poorly with little user preference data. Logistic regression is not recommender system technique.
Question 12
Multiple choice
Which of the following statement is true for the R square value in the regression model?
-
A
When R square =1 , all the residuals are equal to 0
-
B
When R square =0, all the residual are equal to 1
-
C
R square can be increased by adding more variables to the model.
-
D
R-squared never decreases upon adding more independent variables.
Reveal answer details
Close answer details
Correct answersA, C, D
ExplanationExplanation: R square can be made high, it means when we add more variables R-square will increase. And R-square will never decreases if you add more independent variables. Higher R square value can have lower the residuals.
Question 13
Single choice
You are working on a email spam filtering assignment, while working on this you find there is new word e.g. HadoopExam comes in email, and in your solutions you never come across this word before, hence probability of this words is coming in either email could be zero. So which of the following algorithm can help you to avoid zero probability?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationExplanation: Laplace smoothing is a technique for parameter estimation which accounts for unobserved events. It is more robust and will not fail completely when data that has never been observed in training shows up.
Question 14
Single choice
In statistics, maximum-likelihood estimation (MLE) is a method of estimating the parameters of a statistical model. When applied to a data set and given a statistical model, maximum-likelihood estimation provides estimates for the model's parameters and the normalizing constant usually ignored in MLEs because:
-
A
The normalizing constant is always very close to 1
-
B
The normalizing constant only has a small impact on the maximum likelihood
-
C
The normalizing constant is often zero and can cause division by zero
-
D
The normalizing constant doesn't impact the maximizing value
Reveal answer details
Close answer details
Correct answerD
ExplanationExplanation: (Change the explanation even it is correct)A normalizing constant is positive, and multiplying or dividing a series of values by a positive number does not affect which of them is the largest. Maximum likelihood estimation is concerned only with finding a maximum value, so normalizing constants can be ignored.
Question 15
Single choice
Consider flipping a coin for which the probability of heads is p, where p is unknown, and our goa is to estimate p. The obvious approach is to count how many times the coin came up heads and divide by the total number of coin flips. If we flip the coin 1000 times and it comes up heads 367 times, it is very reasonable to estimate p as approximately 0.367. However, suppose we flip the coin only twice and we get heads both times. Is it reasonable to estimate p as 1.0? Intuitively, given that we only flipped the coin twice, it seems a bit rash to conclude that the coin will always come up heads, and____________is a way of avoiding such rash conclusions.
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerB
ExplanationExplanation: Smooth the estimates: consider flipping a coin for which the probability of heads is p, where p is unknown, and our goal is to estimate p. The obvious approach is to count how many times the coin came up heads and divide by the total number of coin flips. If we flip the coin 1000 times and it comes up heads 367 times, it is very reasonable to estimate p as approximately 0.367. However, suppose we flip the coin only twice and we get heads both times. Is it reasonable to estimate p as 1.0? Intuitively, given that we only flipped the coin twice, it seems a bit rash to conclude that the coin will always come up heads, and smoothing is a way of avoiding such rash conclusions. A simple smoothing method, called Laplace smoothing (or Laplace's law of succession or add-one smoothing in R&N), is to estimate p by (one plus the number of heads) / (two plus the total number of flips). Said differently, if we are keeping count of the number of heads and the number of tails, this rule is equivalent to starting each of our counts at one, rather than zero. Another advantage of Laplace smoothing is that it avoids estimating any probabilities to be zero, even for events never observed in the data. Laplace add-one smoothing now assigns too much probability to unseen words
Question 16
Single choice
RMSE is a useful metric for evaluating which types of models?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerC
ExplanationExplanation: Error calculation allows you to see how well a machine learning method is performing. One way of determining this performance is to calculate a numerical error This number is sometimes a percent, however it can also be a score or distance. The goal is usually to minimize an error percent or distance: however th goal may be to minimize or maximize a score. Encog supports the following error calculation methods. Sum of Squares Error (ESS) Root Mean Square Error (RMS) Mean Square Error (MSE) (default) SOM Error (Euclidean Distance Error) RMSE measures error of a predicted numeric value, and so applies to contexts like regression and some recommender system techniques, which rely on predicting a numeric value. It is not relevant to classification techniques like logistic regression and Naive Bayes, which predict categorical values. It also is not relevant to unsupervied techniques like clustering. The root-mean-square deviation (RMSD) or root-mean-square error (RMSE) is a frequently used measure of the differences between values predicted by a model or an estimator and the values actually observed. Basically, the RMSD represents the sample standard deviation of the differences between predicted values and observed values. These individual differences are called residuals when the calculations are performed over the data sample that was used for estimation, and are called prediction errors when computed out-of-sample. The RMSD serves to aggregate the magnitudes of the errors in predictions for various times into a single measure of predictive power. RMSD is a good measure of accuracy, but only to compare forecasting errors of different models for a particular variable and not between variables, as it is scale-dependent.
Question 17
Single choice
You are working as a data science consultant for a gaming company. You have three member team and all other stake holders are from the company itself like project managers and project sponsored, data team etc. During the discussion project managed asked you that when can you tell me that the model you are using is robust enough, after which step you can consider answer for this question?
-
A
-
B
-
C
-
D
-
E
Reveal answer details
Close answer details
Correct answerE
ExplanationTo answer whether the model you are building is robust enough or not you need to have answer below questions at least - Model is performing as expected with the test data or not? - Whatever hypothesis defined in the initial phase is being tested or not? - Do we need more data? - Domain experts are convinced or not with the model? And all these can be answered when you have built the model and tested with the test data sets. Hence, correct option will be Model Building.
Question 18
Multiple choice
Select the correct option from the below:
-
A
If you're trying to predict or forecast a target value^ then you need to look into supervised learning.
-
B
If you've chosen supervised learning, with discrete target value like Yes/No. 1/2/3, A/B/C: or Red/ Yellow/Black, then look into classification.
-
C
If the target value can take on a number of values, say any value from 0.00 to 100.00, or -999 to 999: or +_to -_, then you need to look unsupervised learning
-
D
If you're not trying to predict a target value, then you need to look into unsupervised learning
-
E
Are you trying to fit your data into some discrete groups? If so and that's all you need, you should look into clustering.
Reveal answer details
Close answer details
Correct answersA, B, D, E
ExplanationExplanation: If you re trying to predict or forecast a target value, then you need to look into supervised learning. If not, then unsupervised learning is the place you want to be. If you've chosen supervised learning, what's your target value? Is it a discrete value like Yes/No, 1/2/3, A/B/C: or Red/Yellow/Black? If so, then you want to look into classification. If the target value can take on a number of values, say any value from 0.00 to 100.00, or-999 to 999, or+_to -_, then you need to look into regression. If you're not trying to predict a target value: then you need to look into unsupervised learning. Are you trying to fit your data into some discrete groups? If so and that's all you need, you should look into clustering. Do you need to have some numerical estimate of how strong the fit is into each group? If you answer yes then you probably should look into a density estimation algorithm.
Question 19
Single choice
What describes a true property of Logistic Regression method?
-
A
It handles missing values well.
-
B
It works well with discrete variables that have many distinct values.
-
C
It is robust with redundant variables and correlated variables.
-
D
It works well with variables that affect the outcome in a discontinuous way.
Reveal answer details
Close answer details
Question 20
Single choice
A data scientist is asked to implement an article recommendation feature for an on-line magazine. The magazine does not want to use client tracking technologies such as cookies or reading history. Therefore, only the style and subject matter of the current article is available for making recommendations. All of the magazine's articles are stored in a database in a format suitable for analytics. Which method should the data scientist try first?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationExplanation: kmeans uses an iterative algorithm that minimizes the sum of distances from each object to its cluster centroid, over all clusters. This algorithm moves objects between clusters until the sum cannot be decreased further. The result is a set of clusters that are as compact and well-separated as possible. You can control the details of the minimization using several optional input parameters to kmeans, including ones for the initial values of the cluster centroids, and for the maximum number of iterations. Clustering is primarily an exploratory technique to discover hidden structures of the data: possibly as a prelude to more focused analysis or decision processes. Some specific applications of k- means are image processing^ medical and customer segmentation. Clustering is often used as a lead-in to classification. Once the clusters are identified, labels can be applied to each cluster to classify each group based on its characteristics. Marketing and sales groups use k-means to better identify customers who have similar behaviors and spending patterns.
Question 21
Single choice
Regularization is a very important technique in machine learning to prevent overfitting. Mathematically speaking, it adds a regularization term in order to prevent the coefficients to fit so perfectly to overfit. The difference between the L1 and L2 is...
-
A
L2 is the sum of the square of the weights, while L1 is just the sum of the weights
-
B
L1 is the sum of the square of the weights, while L2 is just the sum of the weights
-
C
L1 gives Non-sparse output while L2 gives sparse outputs
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationExplanation: Regularization is a very important technique in machine learning to prevent overfitting. Mathematically speaking, it adds a regularization term in order to prevent the coefficients to fit so perfectly to overfit. The difference between the L1 and L2 is just that L2 is the sum of the square of the weights, while L1 is just the sum of the weights. As follows: L1 regularization on least squares: 
|