CloudyML - Data Science & Analytics
46.6K subscribers
260 photos
54 videos
33 files
1.1K links
My Assignment Driven Data Science Courses
https://linktr.ee/cloudyml

My LinkedIn profile
https://www.linkedin.com/in/akashraj001

My Instagram
https://www.instagram.com/cloudyml.akash
Download Telegram
πŸ”΄ INTERNSHIP ALERT πŸ”΄

CloudyML is hiring for AWS Cloud Intern.

It will be PAID internship

If interested, follow the link below πŸ‘‡πŸ»

https://forms.gle/hdM4jFj9zUD41g876
Today's Interview QnAs

Company Name - IBM

Role - Data Scientist



Q1. What is P-value?

Ans. The p-value is the probability that the null hypothesis is true. (1 – the p-value) is the probability that the alternative hypothesis is true. A low p-value shows that the results are replicable. A low p-value shows that the effect is large or that the result is of major theoretical, clinical or practical importance.


Q2. Forward and Backward selection? It's working?

Ans. Forward Selection chooses a subset of the predictor variables for the final model. Unlike forward stepwise selection, it begins with the full least squares model containing all p predictors, and then iteratively removes the least useful predictor, one-at-a-time. forward selection starts with a null model (with no predictors) and proceeds to add variables one at a time, and so unlike backward selection, it DOES NOT have to consider the full model (which includes all the predictors).


Q3. Fix multicollinearity?

Ans. To remove multicollinearities, we can do two things.
1. We can create new features
2. remove those features from our data.


Q4. Difference between Gradient boosting and random forest?

Ans. The two main differences are: How trees are built: random forests builds each tree independently while gradient boosting builds one tree at a time. Combining results: random forests combine results at the end of the process (by averaging or "majority rules") while gradient boosting combines results along the way.

.........................

πŸ”΄If you want to learn Data Science from scratch and crack interviews, join our Assignment based Data Science Combo course, trusted by 4500+ Learners.

It Covers Python, ML, DL, SQL, Statistics and Maths, AWS Sagemaker, Model Deployment, 25+ Capstone Projects for ML and DL, Interview QnAs PDF Collections and comes with 1-1 Live Doubt Clearance Support.

Total Worth of this course is Rs. 10389 but it is available at Rs. 3999/- today.

This offer gonna end on 19th March by 11:59PM, so Hurry Up!

Visit Course Now πŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
Python Interview Question asked in Tiger Analytics

YouTube Video LinkπŸ‘‰πŸ» https://appopener.com/yt/vt0ylpaow

Subscribe to our YouTube Channel to get such contents.
if we say you don't need prior coding Experience to start learning Data Science, will you believe that ???

30% of our learners coming from non-coding background
like mechanical, civil, commerce, MBA, teaching etc have switched to Data science and getting other benefits from our Assignment based Data Science course.

It is not just a normal course, it is a complete Hands on practical learning experience of Data Science field from scratch.

You will be learning Python, Machine Learning, Deep Learning, SQL, Statistics, AWS Sagemaker from basics to advanced level with Capstone End-to-End Projects that you can add in your resume and Interview QnAs PDF Collection for job preparation.

Not only that, you are getting 1-1 Live Doubt Clearance support on skype chat everyday. Mentors will resolve all of your queries and doubts within 10 mins.

It is a self-paced course with lifetime course access so you can learn according to your time availability.

So what are you waiting for, join our course today at best affordable price and become a part of 4500+ Happy learners community and become a Job-Ready Data Scientist.


Visit Course NowπŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/


πŸ”΄NOTE: Our so long running offer gonna end on 19th March at 11:59PM, enroll before to get the course at more than 50% discounted price.
πŸ‘‡πŸ»Visit Course NowπŸ‘‡πŸ»
https://www.cloudyml.com/course-combo-package/
Today's Interview QnAs

Company Name - Mindtree

Role: Data Scientist



Q. What is central tendency ?

A. The central tendency is a descriptive description of a dataset represented by a single value that represents the data distribution's center. It does not provide information on individual values in the dataset, but it does provide a thorough overview of the entire dataset. The following measurements can be used to describe the central tendency of a dataset in general: Mean: Represents the sum of all values in a dataset divided by total number of values in the dataset. The median is the midpoint value in an ascending-ordered dataset. The most often occurring value in a dataset is defined by the mode.




Q. Which central tendency method is used If there exists any outliers ?

A. Because the value of the mean might be skewed by outliers, the median is frequently recommended in these instances. It will, however, depend on how powerful the outliers are. Using the mean as the measure of central tendency is usually preferred if they do not significantly alter the mean.



Q. Explain Central limit theorem ?

A. The central limit theorem (CLT) asserts that as the sample size grows higher, the distribution of a sample variable approaches a normal distribution (i.e., a "bell curve"), assuming that all samples are identical in size and independent of the population's actual distribution shape.



Q. What is Chi-Square test ?

A. A hypothesis testing method is the Chi-square test. Checking if observed frequencies in one or more categories match expected frequencies is one of two frequent Chi-square tests. The Chi-square test is used to determine whether your data is as expected. The test's core premise is to compare the observed values in your data to the expected values that you would see if the null hypothesis is true. The Chi-square goodness of fit test and the Chi-square test of independence are two regularly used Chi-square tests. Both tests use variables to categorize your data into groups.

..................

πŸ”΄If you want to learn Data Science from scratch and crack interviews, join our Assignment based Data Science Combo course, trusted by 4500+ Learners.

It Covers Python, ML, DL, SQL, Statistics and Maths, AWS Sagemaker, Model Deployment, 25+ Capstone Projects for ML and DL, Interview QnAs PDF Collections and comes with 1-1 Live Doubt Clearance Support.


Visit Course Now πŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
Today's Interview QnAs

Company Name - IBM

Role - Data Scientist



Q1. What is P-value?

Ans. The p-value is the probability that the null hypothesis is true. (1 – the p-value) is the probability that the alternative hypothesis is true. A low p-value shows that the results are replicable. A low p-value shows that the effect is large or that the result is of major theoretical, clinical or practical importance.


Q2. Forward and Backward selection? It's working?

Ans. Forward Selection chooses a subset of the predictor variables for the final model. Unlike forward stepwise selection, it begins with the full least squares model containing all p predictors, and then iteratively removes the least useful predictor, one-at-a-time. forward selection starts with a null model (with no predictors) and proceeds to add variables one at a time, and so unlike backward selection, it DOES NOT have to consider the full model (which includes all the predictors).


Q3. Fix multicollinearity?

Ans. To remove multicollinearities, we can do two things.
1. We can create new features
2. remove those features from our data.


Q4. Difference between Gradient boosting and random forest?

Ans. The two main differences are: How trees are built: random forests builds each tree independently while gradient boosting builds one tree at a time. Combining results: random forests combine results at the end of the process (by averaging or "majority rules") while gradient boosting combines results along the way.

..................

πŸ”΄If you want to learn Data Science from scratch and crack interviews, join our Assignment based Data Science Combo course, trusted by 4500+ Learners.

It Covers Python, ML, DL, SQL, Statistics and Maths, AWS Sagemaker, Model Deployment, 25+ Capstone Projects for ML and DL, Interview QnAs PDF Collections and comes with 1-1 Live Doubt Clearance Support.


Visit Course Now πŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
#quiz

Which one is NOT a legal variable name?
Anonymous Quiz
33%
_myvar
51%
my-var
5%
my_var
11%
Myvar
It is not just a normal course, it is a complete Hands on practical learning experience of Data Science field from scratch.

Visit Course NowπŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
πŸ”΄Python Interview Question asked in Bridgei2i

LinkπŸ‘‰πŸ» https://appopener.com/yt/6kjka81ct


NOTE: If you haven't subscribed to our YouTube channel, please do to get regular Data Science related useful contents.
Today's Interview QnAs

Company Name: Mindtree

Role: Data Scientist


1. Explain the difference between supervised and unsupervised machine learning?

Ans: Supervised learning algorithms are trained using labeled data. An unsupervised learning model finds the hidden patterns in data. In supervised learning, input data is provided to the model alongside the output. In unsupervised learning, only input data is provided to the model.


2. Explain the difference between KNN and k.means clustering?

Ans: KNN represents a supervised classification algorithm that will give new data points accordingly to the k number or the closest data points, while k-means clustering is an unsupervised clustering algorithm that gathers and groups data into k number of clusters.


3. What is the difference between classification and regression?

Ans: Classification is about predicting a label and regression is about predicting a quantity. That classification is the problem of predicting a discrete class label output for example. That regression is the problem of predicting a continuous quantity output for example.


4. How to ensure that your model is not overfitting?

Ans: To ensure that your model is not overfitting are:
β€’ Keep the model simpler: remove some of the noise in the training data.
β€’ Use cross-validation techniques such as k-folds cross-validation.
β€’ Use regularization techniques such as LASSO.

..................

πŸ”΄If you want to learn Data Science from scratch and crack interviews, join our Assignment based Beginner to Advanced Data Science Combo course, trusted by 4500+ Learners.

It Covers Python, ML, DL, SQL, Statistics and Maths, AWS Sagemaker, Model Deployment, 25+ Capstone Projects for ML and DL, Interview QnAs PDF Collections and comes with 1-1 Live Doubt Clearance Support on skype chat.


Visit Course Now πŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
Today's Interview QnAs

Company Name: IBM

Role: Data Scientist


1. What relationships exist between a logistic regression’s coefficient and the Odds Ratio?

The coefficients and the odds ratios then represent the effect of each independent variable controlling for all of the other independent variables in the model and each coefficient can be tested for significance.

2. What’s the relationship between Principal Component Analysis (PCA) and Linear & Quadratic Discriminant Analysis (LDA & QDA)

LDA focuses on finding a feature subspace that maximizes the separability between the groups. While Principal component analysis is an unsupervised Dimensionality reduction technique, it ignores the class label. PCA focuses on capturing the direction of maximum variation in the data set.The PC1 the first principal component formed by PCA will account for maximum variation in the data.PC2 does the second-best job in capturing maximum variation and so on.

The LD1 the first new axes created by Linear Discriminant Analysis will account for capturing most variation between the groups or categories and then comes LD2 and so on.


3. What’s the difference between logistic and linear regression? How do you avoid local minima?


Linear Regression is used to handle regression problems whereas Logistic regression is used to handle the classification problems.
Linear regression provides a continuous output but Logistic regression provides discreet output.
The purpose of Linear Regression is to find the best-fitted line while Logistic regression is one step ahead and fitting the line values to the sigmoid curve.
The method for calculating loss function in linear regression is the mean squared error whereas for logistic regression it is maximum likelihood estimation.
We can try to prevent our loss function from getting stuck in a local minima by providing a momentum value. So, it provides a basic impulse to the loss function in a specific direction and helps the function avoid narrow or small local minima. Use stochastic gradient descent.

4. Explain the difference between type 1 and type 2 errors.

Type 1 error is a false positive error that β€˜claims’ that an incident has occurred when, in fact, nothing has occurred. The best example of a false positive error is a false fire alarm – the alarm starts ringing when there’s no fire. Contrary to this, a Type 2 error is a false negative error that β€˜claims’ nothing has occurred when something has definitely happened. It would be a Type 2 error to tell a pregnant lady that she isn’t carrying a baby.

..................

πŸ”΄If you want to learn Data Science from scratch and crack interviews, join our Assignment based Beginner to Advanced Data Science Combo course, trusted by 4500+ Learners.

It Covers Python, ML, DL, SQL, Statistics and Maths, AWS Sagemaker, Model Deployment, 25+ Capstone Projects for ML and DL, Interview QnAs PDF Collections and comes with 1-1 Live Doubt Clearance Support on skype chat.


Visit Course Now πŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
#Quiz

When using the NumPy random module, how can you return a Normal Data Distrbution with 1000 numbers, concentrated around the number 50, with a standard deviation of 0.2 ?
Anonymous Quiz
30%
random.normal(size=1000, loc=50, scale=0.2)
56%
random.normal(size=1000, mean=50, deviation=0.2)
14%
random.normal(size=1000, normal=50, s=0.1)
🀩1
Today's Interview QnAs

Company: TheMathCompany

Role: Data Scientist


1. How to find the positions of numbers that are multiples of 4 from a series in python?
Ans.
For finding the multples of 4, we will use the argwhere() function. First, we will create a list of 10 numbers –
s1 = pd.Series([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) np.argwhere(s1 % 4==0)
Output > [3], [7]

2. What is the difference between recall and precision?
Ans.
While calculating the Precision of a model, we should consider both Positive as well as Negative samples that are classified.
While calculating the Recall of a model, we only need all positive samples while all negative samples will be neglected.
Hence Precision quantifies the number of positive class predictions that actually belong to the positive class. Recall quantifies the number of positive class predictions made out of all positive examples in the dataset.

3. How can you select k for k-means?
Ans.
There are two methods to calculate the optimal value of k in k-means are:
* Elbow method
*Silhouette score method
Silhouette score is the most prevalent while determining the optimal value of k.

4. What is a ROC Curve? Explain how a ROC Curve works?
Ans.
AUC – ROC curve is a performance measurement for the classification problem at various thresholds settings. ROC is a probability curve and AUC represents the degree or measure of separability. It tells how much model is capable of distinguishing between classes. Higher the AUC, better the model is at predicting 0s as 0s and 1s as 1s.

5. How will you get second highest salary of an employee emp from employee_table?
Ans.
SELECT TOP 1 salary FROM( SELECT TOP 2 salary FROM employee_table ORDER BY salary DESC) AS emp ORDER BY salary ASC;

6. What is the central limit theorem?
Ans.
The central limit theorem states that the distribution of an average will tend to be Normal as the sample size increases, regardless of the distribution from which the average is taken except when the moments of the parent distribution do not exist.

7. Difference between Normalisation and Standardization?
Ans.
Both Normalisation and Standardization are methods of Features Conversion. However, the methods are different in terms of the conversions. The data after Normalisation scales in the range of 0-1. While in case of Standardization the data is scaled such that it means comes out to be 0.

..................

πŸ”΄If you want to learn Data Science from scratch and crack interviews, join our Assignment based Beginner to Advanced Data Science Combo course, trusted by 4500+ Learners.

It Covers Python, ML, DL, SQL, Statistics and Maths, AWS Sagemaker, Model Deployment, 25+ Capstone Projects for ML and DL, Interview QnAs PDF Collections and comes with 1-1 Live Doubt Clearance Support on skype chat.


Visit Course Now
πŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
Not just this course will help you to learn Data Science from scratch, it will give you complete hands-on learning experience from day one.

Become Interview Ready Data Scientist

Start Your Journey Today

Course Link
πŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
Today's Interview QnAs

Company Name - IBM

Role: Data Scientist



1. How do you analyse the performance of the predictions generated by regression models versus classification models?

In the regression model, the most commonly known evaluation metrics include:
β€’ R-squared (R2)
β€’ Root Mean Squared Error (RMSE)
β€’ Residual Standard Error (RSE)
β€’ Mean Absolute Error (MAE)

Classification is the problem of identifying to which of a set of categories/classes a new observation belongs, based on the training set of data containing records whose class label is known. Following are the performance metrics used for evaluating a classification model:
β€’ Accuracy
β€’ Precision and Recall
β€’ Specificity
β€’ F1-score
β€’ AUC-ROC

2. How do you assess logistic regression versus simple linear regression models?

β€’ Linear Regression is used to handle regression problems whereas Logistic regression is used to handle the classification problems.
β€’ Linear regression provides a continuous output but Logistic regression provides discreet output. β€’ The purpose of Linear Regression is to find the best-fitted line while Logistic regression is one step ahead and fitting the line values to the sigmoid curve.
β€’ The method for calculating loss function in linear regression is the mean squared error whereas for logistic regression it is maximum likelihood estimation.

3. What is cross-validation and why would you use it?

Cross-validation is a statistical method used to estimate the performance (or accuracy) of machine learning models. It is used to protect against overfitting in a predictive model, particularly in a case where the amount of data may be limited. In cross-validation, you make a fixed number of folds (or partitions) of the data, run the analysis on each fold, and then average the overall error estimate.

4. What’s the name of the matrix used to evaluate predictive models?

Confusion Matrix: A confusion matrix is a tabular summary of the number of correct and incorrect predictions made by a classifier. It can be used to evaluate the performance of a classification model through the calculation of performance metrics like accuracy, precision, recall, and F1-score.

..................

πŸ”΄If you want to learn Data Science from scratch and crack interviews, join our Assignment based Beginner to Advanced Data Science Combo course, trusted by 4500+ Learners.

It Covers Python, ML, DL, SQL, Statistics and Maths, AWS Sagemaker, Model Deployment, 25+ Capstone Projects for ML and DL, Interview QnAs PDF Collections and comes with 1-1 Live Doubt Clearance Support on skype chat.


Visit Course Now πŸ‘‰πŸ» https://www.cloudyml.com/course-combo-package/
Today's Interview QnAs

Company: TCS

Role: Data Scientist

1. You are given a data set consisting of variables with more than 30 percent missing values. How will you deal with them?
Ans.
If the data set is large, we can just simply remove the rows with missing data values. It is the quickest way, we use the rest of the data to predict the values.
For smaller data sets, we can substitute missing values with values like mean, mode, forward or backward fill. There are different ways to do so, such as df.mean(), df.fillna(mean).

2.What do you understand about true positive rate and false-positive rate?
Ans.
The True Positive Rate (TPR) defines the probability that an actual positive will turn out to be positive.
The True Positive Rate (TPR) is calculated by taking the ratio of the [True Positives (TP)] and [True Positive (TP) & False Negatives (FN) ].
Formula: TPR=TP/TP+FN
The False Positive Rate (FPR) defines the probability that an actual negative result will be shown as a positive one i.e the probability that a model will generate a false alarm.
The False Positive Rate (FPR) is calculated by taking the ratio of the [False Positives (FP)] and [True Negatives (TN) & False Positives(FP)].
Formula: FPR=FP/TN+FP


3. What are the feature selection methods you use to select important variables?

Ans.
1. Filter Methods
There are various filter methods such as the Chi-Square test, Fisher’s Score method, Correlation Coefficient, Variance Threshold, Mean Absolute Difference (MAD) method, Dispersion Ratios, etc.
2. Wrapper Methods
There are three types of wrapper methods, they are:
Forward Selection: Here, one feature is tested at a time and new features are added until a good fit is obtained.
Backward Selection: Here, all the features are tested and the non-fitting ones are eliminated one by one to see while checking which works better.
Recursive Feature Elimination: The features are recursively checked and evaluated how well they perform.
3. Embedded Method
Examples of embedded methods: LASSO Regularization (L1), Random Forest Importance.

4. What is a lambda expression in Python?
Ans.
With the help of lambda expression, you can create an anonymous function. Unlike conventional functions, lambda functions occupy a single line of code. The basic syntax of a lambda function is –
lambda arguments: expression
Eg
x = lambda a : a * 4
print(x(5))
Output of 20.

5. What is root cause analysis?
Ans. Root cause analysis (RCA) is the process of discovering the root causes of problems in order to identify appropriate solutions. It assumes that it is much more effective to systematically prevent and solve for underlying issues rather than just treating ad hoc symptoms and putting out fires.

6. Write the code to find the length of a string without using the string functions.
Ans. string=raw_input("Enter string:")
count=0
for i in string:
count=count+1
print("Length of the string is:")
print(count)

............................................................
πŸ”΄Get PDF Collection of Interview QnAs of Top Data Science Companies and boost your job preparation.

Check Now
πŸ‘‰πŸ» https://www.cloudyml.com/qna-package/

Happy Learning with CloudyMLπŸ’™
πŸ”΄Data Science Job Openings

Company - Nike India
Role - Data Analyst
Exp- 0-5 yrs

ApplyπŸ‘‰πŸ» https://ai.cloudyml.com/3INsYfS


Company : IBM
Role: Business Analyst
Exp- 1-4 yr

ApplyπŸ‘‰πŸ» https://ai.cloudyml.com/3Lm5no9


Company - Dell
Role - Machine Learning Engineer
Exp: 2 yr

ApplyπŸ‘‰πŸ» https://ai.cloudyml.com/3Di8YRD


Company- Talent stack
Role - Data Scientist
Exp: 1-4 yrs

ApplyπŸ‘‰πŸ» https://ai.cloudyml.com/3IPBYkO