If you are in search of Data science interview questions, then you have landed at the right place. You might have heard this saying so many times, "Data Science has been called as the Sexiest Job of the 21st century". Due to increased importance for data, the demand for the Data scientists has been growing over the years. According to IBM’s predictions, demand for the data scientist role will soar 28% by 2021.
This blog is specifically designed to provide you with the frequently asked Data science interview questions. We have segregated the interview questions based on their belonging and complexity. The questions presented over here are collected based on the opinions of the Data science experts.
We are going to cover essential questions in each segment that are asked frequently. Without wasting much time, let's discuss one by one topic in detail.
Basic Data Science Interview Questions
Q1) What is Data Science?
Ans: Data science is defined as a multidisciplinary subject used to extract meaningful insights out of different types of data by employing various scientific methods such as scientific processes and algorithms. Data science helps in solving the analytically complex problems in a simplified way. It acts as a stream where you can utilize raw data to generate business value.
Q2) What is meant by supervised and unsupervised learning in data?
Ans: Supervised Learning: Supervised learning is a process of training machines with the labelled or right kind of data. In supervised learning, the machine uses the labelled data as a base to give the next answer.
Unsupervised learning: It is another form of training machines using information which is unlabeled or unstructured one. Unlike Supervised learning, there is no special teacher or predefined data for the machine to quickly learn from.
Q3) What is meant by A/B testing?
Ans: It is a statistical hypothesis testing for conducting randomized experiment between two variables A and B. The A/B testing is used to identify the changes for an outcome of interest or to maximize a web page. A/B testing helps organizations in finding out the right outcome that works best for a particular business.
Q4) What is meant by selection bias?
Ans: Selection bias is a type of error that arises when the researcher decides on whom he is going to conduct the study. It happens when the selection of participants takes place not randomly. Selection bias is also sometimes referred to as a selection effect. It works more effectively and sometimes if the selection bias is not taken into account, the conclusions of the study may go wrong.
Q5) What is the technique that is being used categorical responses?
Ans: Classification technique is widely used in mining data sets.
Q6) What is power analysis?
Ans: It is an experimental design technique for expecting the outcome of a given sample size.
Q7) What is Root cause Analysis?
Ans: The Root cause analysis was initially used to make analysis on industrial accidents, but now it has been extended into many areas. It is a technique that is being used to identify the root cause of a particular problem.
Q8 What is collaborative filtering?
Ans: Filtering is a process used by recommender systems to find patterns and information from numerous data sources, several agents, and collaborating perspectives. In other words, the collaborative method is a process of making automatic predictions from human preferences or interests.
Q9) Do we have different Selection Biases, if yes, what are they?
- Sampling Bias: This bias arises when you select only particular people or when non-random selection of samples happened. In general terms, it is nothing but a selection of the majority of the people belong to one group.
- Time Interval: sometimes a trial may be terminated earlier than actual time (probably due to some ethical reasons) but the extreme value finally taken into consideration is the most significant value even though all other variables have similar Mean.
- Data: We can name it as a Data bias when a separate set of data is taken to support a conclusion or eliminates terrible data based on the orbitory grounds, instead of generally relying on generally stated criteria.
- Attrition bias: Attrition bias is defined as an error that occurs due to Unequal loss of participants from a randomized controlled trial (RCT). There are some cases in which the participant's losses due to various reasons is called an Attrition.
Statistics Interview Questions
Q10) What is the central limit theorem and why it is essential?
Ans: The central limit theorem is defined as a statistical theory which indicates that given a sufficiency large sample size from the available population with a finite level of variance, which means the mean of the sample population is approximately equal to the mean of the total population.
Q11) What is meant by sampling? Explain some sampling methods that you know?
Ans: Data sampling is a statistical analysis method in which a particular portion of data is taken to analyze, identify the hidden trends and patterns in data. With the help of sampling method, a larger set of data being examined. It helps the data scientists to work with the limited portion of data to produce accurate results rather than working on entire data sets.
Types of sampling methods are:
- Simple random sampling method
- Stratified sampling
- Cluster sampling
- Multistage sampling
- Systematic sampling
Q12) What makes the difference between "Long" and "Wide" Format data?
Ans: In a wide format method, when we take a subject, the repeated responses are recorded in a single row, and each recorded response is in a separate column. When it comes to Long format data, each row acts as a one-time point per subject. In wide format, the columns are generally divided into groups whereas in a long-form the rows are divided into groups.
Q13) What is meant by normal distribution?
Ans: Sometimes the data is distributed in different ways, and sometimes it can be done with the bias to the right or left.
However, we can have a chance here to distribute the data around a central value without showing any bias to left or right when you distribute data around the central value that reaches the bell-shaped curve as mentioned below.
The random variables are distributed in the form of a bell-shaped curve.
Below mentioned are the properties of Normal distribution.
- Unimodel- one model
- Symmetrical- which means left and right halves look like mirror images to each other.
- It looks like bell-shaped, and the maximum height is at the mean.
- In normal distribution mean, median and mode are found at the centre.
Q14) Explain about type I and Type II errors?
Ans: The type I error generally occurs when the null hypothesis is true, but when rejected. And when we consider the Type II error, it occurs when the null hypothesis is false but erroneously fails to be rejected.
Q15) What is meant by linear regression?
Ans: Linear regression is commonly used one for conducting predictive analysis. It helps us in examining two things. For instance, linear regression is used to compare two factors that belong to a particular thing. Let's say the price of a house depends on two different factors such as location and size. To find the relationship between these factors, we need to conduct a linear regression. Linear regression helps us in finding the positive or negative effects of these two relationships.
Q16) What is meant by statistical power of Sensitivity, and how can we calculate it?
Subscribe to our youtube channel to get new updates..!
Ans: The word Sensitivity is often used in validating the accuracy of a classifier (SVM, Random Forest, Logistics, etc.).
In statistical analysis, Sensitivity is treated as predicted events that are true. The true events are nothing but the events which are actually true in nature and the model also predicted them as true.
Calculation of seasonality is pretty straightforward.
Seasonality = ( True Positives ) / ( Positives in Actual Dependent Variable )
Q17) Explain the difference between overfitting and underfitting?
Ans: In machine learning as well as in statistics, the common task to undergo is to fit a model to a set of training data. It helps us in making reliable predictions using general untrained data.
In overfitting, a statistical model will help us in letting know the random noise or errors instead of the underlying relationship. Overfitting comes into light when the data is associated with too much complexity, which means it is associated with so many parameters relative to the number of observations. A model that is overfitted is always performed poor in predictive performance and acts overly to the minor fluctuations in the training data.
Unnderfittinng happens when a machine learning algorithm or statistical model is unable to focus on the underlying insights of the data. The case when you are trying to fix a linear model to a nonlinear one. This kind of model would result in poor predictive performance.
Data Analysis Interview Questions
Q18) What would you prefer between Python or R for text analytics?
Ans: We actually prefer python because of the following reasons.
- R suites best for machine learning rather than text analytics
- Python works in a swift mode to work with all types of text analytics
- Python has pandas library that supports high-performance data analysis tools and easy to use data structures.
Q19) Explain the difference between Univariate, Bivariate and Multivariate analysis?
Univariate analysis is a descriptive analysis and can be used to differentiate the number of variables involved at a given point of time. For instance, the sales of a particular territory include only one variable, and then the same is treated as a Univariate analysis.
Bivariate analysis is used to understand the difference between two variables at a given time on the scatter pilot. The best example for bivariate analysis of the difference between the sale and expenses happens for a particular product.
Multivariate analysis is used to understand the more than two variables responses for the variables.
Q20) What is cluster sampling?
Ans: Cluster sampling will come into the light when you want to conduct a study on the population that spread across a wide area and when it is difficult to apply simple random Sampling. Cluster sampling is used to collect the samples from each sampling unit or cluster of elements.
For instance: A researcher in India wants to study the academic performance of the students. So to do that he divided the entire country into the cities (clusters). Then he can select the cities based on his research requirements such as systematic or simple random sampling.
Q21) What is systematic sampling?
Ans: Systematic sampling is a technique, and the name resembles that it follows some systematic way, and the samples are selected from an ordered sampling frame. In systematic sampling, the list is actually in a circular manner and the selection starts from one end and reaches the final, and the cycle goes on. Equal probability method would be the best example for the systematic sampling.
Q22) Explain the difference between a Validation set and a Test Set?
Ans: A validation set helps select the parameter and helps in avoiding overfitting the model that is being built.
When it comes to Test Set, it is being used to test the trained machine learning models.
Q23) What is Cross-validation?
Ans: It is a model validation technique used to evaluate how the statistical analysis would generalize to an independent dataset. This could be helpful in the areas of backgrounds where the objective is exactly forecasted, and the people want to estimate how accurately the model would work in real-time.
The main ambition of cross-validation is to test a model that is to test a model which is in the training phase and limit the problems like overfitting and to get insights on how to generalize the to an independent data set.
Machine Learning Interview Questions
Q24) What is Machine learning?
Ans: Machine learning is a subfield of artificial intelligence, and that enables the systems to learn themselves from the data and previous experiences. Machine learning develops the programs that are capable of accessing data and learns out of it.
Q25) can we use machine learning for time series analysis?
Ans: Yes! Time series analysis can be used in machine learning based on the application requirements.
Q26) List different types of classification algorithms?
Below mentioned are the different types of algorithms.
- Logistic regression
- Support Vector Machines
- Nearest Neighbor
- Boosted trees
- Decision trees
- Neural Networks
- Random Forest
Q27) What are the types of machine learning?
Ans: We have three different types which are,
- Reinforcement learning
- Supervised learning
- Unsupervised learning
Q28) What are recommender systems?
Ans: Recommender systems are also treated as information filtering systems that work to predict or likeness of a user for a product. These recommender systems are widely used in areas like news, movies, social tags, music, products, etc.
We can see the movie recommenders in Netflix, IMDB, & bookMyShow, and product recommender e-commerce sites like eBay, Amazon, Flipcart, Youtube video recommendations and game recommendations.
Q29) What is meant by Linear regression?
Ans: Linear regression is a technique used in statistics where one variable is presented on the Y-axis, and the other one is presented on X-axis. They both depend on each other. In linear Regression, Y is referred to as a creation variable and X as a predictor variable.
Q30) How can the outlier values be treated?
Ans: We can identify the outlier values by using graphical analysis method or by using Univariate method. It becomes easier and can be assessed individually when the outlier values are few but when the outlier values are more in number then these values required to be substituted either with the 1st or with the 99th percentile values.
Below are the common ways to treat outlier values.
- To bring down and change the value
- To remove the value
Q31) Explain the different projects involved in an analytics project?
Ans: Following are the steps involved in any analytics project
- Identify and understand the business problem
- Examine the data and understand it well
- Prepare data modelling by using various methods
- Once the model is prepared, start running the model and analyse the results.
- Examine the model with the help of new dataset
- Implement the model and analyse the outcomes over a period of time.
Q32) While conducting analysis, how can you treat missing values?
Upcoming Batches - Data Science Training !
7:00 AM IST
6:30 AM IST
6:30 AM IST
6:30 AM IST
Ans: To identify the extent of the missing values, first, you have to identify the variables with missing values. If the analyst finds any patterns, then he can concentrate on them because that's where the places we can find meaningful business insights.
If in case, the analyst is unable to find the patterns, then he can substitute the missing values with median or mean values; otherwise, they can even be ignored. They are assigning a default value that can be minimum or maximum or median values.
For instance, if 80% of the variables are missing, you can answer the interviewer this as you would drop the variables instead of considering the missing values.
Deep Learning Interview Questions
Q33) What is meant by Deep learning?
Ans: Deep learning is a function of artificial intelligence that inserts the capability to the machines to mimic the human brain tasks such as data processing and analysing the data for taking valid decisions. Deep learning is a subfield of machine learning and is capable enough to learn from the data that is unsupervised or unstructured.
Even though the existence of Deep learning is there, but it has gotten popular in recent years due to the following two reasons.
Data is the primary source for the effective functioning of deep learning, and the generation of data from various sources has been increased massively over the years.
The development of the hardware resources to process the data models in an advanced manner.
Q34) What are Artificial Neural Networks?
Ans: Artificial neural networks are the main elements which have made the machine learning popular. These neural networks are developed based on the functionality of a human brain. The Artificial neural networks are trained to learn from the examples and experiences without being programmed explicitly. Artificial neural networks work based on nodes called artificial neurons that are connected to one another. Each connection acts similar to synapses in the human brain that helps in transmitting the signals between the artificial neurons.
Q35) Explain the basic structure of the artificial neural network?
Ans: Artificial neural works are similar to the biological human brain. The neural network works similar to the human nervous system that receives, processes and transmits the information. A neural network consists of three layers in general which are,
- Input Layer
- Hidden Layer
- Output Layer
The inputs get processed with weight sums and bias with the assistance of Activation functions.
Q36) What is back Propagation?
Ans: Backpropagation is an algorithm used in Deep Learning to train the multilayer neural network. Using this method, we can move an error form an end of a network to the inside of it, and that brings the efficient computation of gradient.
It consists of the below-mentioned steps:
- Forward data propagation of data that is being used for training
- Derivatives are computed with the help of output and target.
- Backpropagation for computing the derivative error.
- You can use the output that was previously calculated for output.
- Update the weights.
Q37) List the variants of backpropagation?
Ans: Below mentioned are the three different variants of backpropagation
- Stochastic Gradient Descent: In this module, we take the help of the single training as an example for updating the parameters and for calculation of gradient.
- Batch Gradient Descent: in this backpropagation method, we consider whole data to calculating the gradient and executes the update at each iteration.
- Mini-batch Gradient Descent: It is considered as a popular optimization algorithm in deep learning. In this Mini-batch gradient Descent instead of single training example, mini-batch of samples is used.
Q38) Explain the various Deep learning Frameworks?
Ans: Below mentioned are the various types of Deep Learning Frameworks.
- Microsoft Cognitive Toolkit
Q39) Explain the role of Activation function?
Ans: The activation function helps in introducing the nonlinearity into the neural network that enables the neural network to learn the complex functions. Without this, it is challenging for the linear function to analyse complex data. An activation function is a function is an artificial neuron which delivers the output based on the input given.
Q40) What is an Auto-Encoder?
Ans: The Auto-Encoders are learning networks that work for transforming the inputs into outputs with no errors or minimised error. It means the output must be very close to the input. We add a few layers between the input and output and the sizes of these layers would be smaller than the input layer. Actually, the Auto-encoder is provided with the unlabelled input then it would be transmitted into reconstructing the input.
Q41) What is a Boltzmann machine?
Ans: Boltzmann developed with simple learning algorithms that allow them to find the important information that was presented in the complex regularities in the data. These machines are generally used to optimize the quantity and the weights of the given problem. The learning program works very slow in networks due to many layers of feature detectors. When we consider Restricted Boltzmann Machines, this has a single algorithm feature detectors that make it faster compared to others.
Q42) What is a Random Forest?
Ans: Random forest is a versatile method in machine learning that performs both classification and regression tasks. It also helps in areas like treats missing values, dimensionality reduction, and outlier values. It is like gathering the various weak modules comes together to form a robust model.
Q43) Explain the difference between machine learning and deep learning?
Ans: Machine Learning: It is treated as a field of computer science that enables computers to learn from the experiences automatically. Below are the three different categories of machine learning.
- Supervised Machine Learning
- Unsupervised Machine Learning
- Reinforcement Machine Learning
Deep Learning: It is a subField of Machine Learning and works with the algorithms that mimic the functionality of the human brain.
Q44) What is Reinforcement learning?
Ans: Reinforcement learning maps the situations to what to do and how to map actions. The end result of this Reinforcement learning is to maximise the numerical reward signal. The learner is not defined with what action to do next but instead must discover which actions will give the maximum reward. Reinforcement learning is developed from the learning process of human beings. It works based on the reward/penalty mechanism.
45) What is Pruning in a decision tree?
Ans: The process of removing the sub-nodes of the decision node is called pruning. It is also called as Opposite process of splitting.