Live data from Hacker News

Amazon data science interview questions

mldatageek.herokuapp.com

51–60 of 95 posts

Re: Amazon data science interview questions

#51

It appears that the current generation of "hackers" seems very keen to work for a big name company-- Amazon, Apple, Microsoft, Google, Facebook. As someone who has worked for many startups and several of the above named companies, please let me give you a bit of advice: - A big company on your resume has no outside value to your prospects. Seriously. There's not "hey well he worked for amazon so we know he's good" fr…

My favorite ideology used to shutdown dissent is the No Assholes Allowed rule.

Me: "Hey how come you guys don't use source control?"

Manager: "Are you being an asshole?"

Re: Amazon data science interview questions

#52
post #37

Earlier quoted context omitted.

Statistics and machine learning have a huge amount of overlap. Almost seems silly we separate the fields.

Well yes. Before the trendy buzzword, machine learning was known simply as predictive statistics.

Or simply statistical modelling. I think there are methodological differences though. To me ML seems like a massive p-value fishing operation.

Re: Amazon data science interview questions

#53
post #49

My quick and dirty answers are below. I'm thinking of moving jobs within the next year so I could use the practice. Can anyone do better? > How do you treat colinearity? Throw away the redundant part of the data > How will you deal with unbalanced data where the ratio of negative and positive is huge? This is very problem-dependent, but it's got the potential to wreak havoc with your learning algorithms. You might ge…

I will try. > How do you treat colinearity? Use an LASSO as a feature selector or regularizer. > How will you deal with unbalanced data where the ratio of negative and positive is huge? User F1 score instead of accuracy as a performance metric. Try using cascade classifier. > How will you decide whether a customer will buy a product today or not given the income of the customer, location where the customer lives, pro…

I am not a data scientist, just a researcher in cog neuro. With multicollinearity, I'd first want to know whether these variables are meant to measure the same latent construct. If so, creating a latent factor in a SEM seems the way to go. Lassos and ridge regression I've heard of, but I know very little, except thatse methods can find use when using fmri voxel timeseries...

Re: Amazon data science interview questions

#54

It appears that the current generation of "hackers" seems very keen to work for a big name company-- Amazon, Apple, Microsoft, Google, Facebook. As someone who has worked for many startups and several of the above named companies, please let me give you a bit of advice: - A big company on your resume has no outside value to your prospects. Seriously. There's not "hey well he worked for amazon so we know he's good" fr…

I think its already been iterated on by other commenters, but almost all of this advice is wrong. Name brands play a huge roll in careers, even in programming ones. If you have worked a long career and havent worked at a big name company, thats a huge negative signal.

Re: Amazon data science interview questions

#55

If you obtained a degree in Computer Science and specialized in Machine Learning are you suppose to be able to answer these questions? What job specialization is this aimed for? Almost strikes me more as a statistical based interview.

Machine learning systems that perform a job and make money are still overwhelmingly stats-based, and the knowledge required to understand, tune, and optimize any ml system, regardless of design, are based on statistics and always will be.

Re: Amazon data science interview questions

#56

If you obtained a degree in Computer Science and specialized in Machine Learning are you suppose to be able to answer these questions? What job specialization is this aimed for? Almost strikes me more as a statistical based interview.

Machine learning systems that perform a job and make money are still overwhelmingly stats-based, and the knowledge required to understand, tune, and optimize any ml system, regardless of design, are based on statistics and always will be.

Re: Amazon data science interview questions

#57

My quick and dirty answers are below. I'm thinking of moving jobs within the next year so I could use the practice. Can anyone do better? > How do you treat colinearity? Throw away the redundant part of the data > How will you deal with unbalanced data where the ratio of negative and positive is huge? This is very problem-dependent, but it's got the potential to wreak havoc with your learning algorithms. You might ge…

> How do you treat colinearity?

Colinearity can be handled either through variable selection, or dimensionality reduction. The right approach depends on the data. If you're trying to identify the root cause of some phenomenon, L1 regularized models will pick out variables (though they might pick the wrong one). If you just want to prevent colinear variables from taking over your model, dimensionality reduction is the right choice.

> How will you deal with unbalanced data where the ratio of negative and positive is huge?

This is one area where bayesian statistics really shines. The variance of the posterior predictive distribution for a bayesian model is inversely proportional to the amount of data you use for inference.

> How will you decide whether a customer will buy a product today or not given the income of the customer, location where the customer lives, profession and gender? Define a machine learning algorithm for this.

Random forests are a good answer to this in terms of predictive accuracy. The problem with random forests is that they don't give you any information about how certain your estimates are. A better technique to use would be Gaussian processes (GPs). GPs are a kernel method somewhat similar to SVMs, but they have the marked advantage that they provide a posterior distribution over their estimates, rather than just the maximum likelihood value.

> Is it useful to apply PCA to your data before SVM classification?

The right answer is that it depends on the shape of your data and the specific SVM kernel/hyperparameters you're using. If you have a square matrix and you're doing linear SVM, PCA first will be slower. On the other hand, for a highly asymmetric matrix and nonlinear SVM, PCA done by stochastic approximation of the SVD, followed by SVM will be much faster. From a prediction accuracy standpoint it isn't going to make a large difference in either case since the kernel trick effectively projects your data into a high dimensionality feature space.

> From a long sorted list and a short 4 element sorted list, which algorithm will you use to search the long sorted list for 4 elements.

To answer this properly you need to know if the list has repeated elements. If there are no repeated elements then a binary search on the first element of the 4 item list, then scanning forward from there is the correct answer. If you admit the possibility of (possible massive) repetition of elements then this is no longer the case.

> How will inspect missing data and when are they important for your analysis?

This is yet another case where bayesian analysis shines (can you tell what I specialize in?). With bayesian methods you don't have to impute a value, rather you can treat unknowns as coming from a specific distribution (which can be the exactly distribution of that variable, via empirical bayes). This prevents you from introducing bias in your model.

> Estimate the probability of a disease in a particular city given that the probability of the disease on a national level is low.

This question is kind of bad given that it doesn't put a bound on what data is available to you. In terms of model, this is just a classification problem in disguise

Re: Amazon data science interview questions

#58
These questions are largely unanswerable in their current form. Like"estimate the probably of disease in a city given Nationwide has a low probability". Like, what the heck does that even mean. I could imagine a dozen answers. I can only guess they are trying to get you to think about Bayes probability an event occurs given X independent identical trial). But that's ludicrous, because on what world has anyone proved disease occurs uniformly at random?

Re: Amazon data science interview questions

#59
post #58

These questions are largely unanswerable in their current form. Like"estimate the probably of disease in a city given Nationwide has a low probability". Like, what the heck does that even mean. I could imagine a dozen answers. I can only guess they are trying to get you to think about Bayes probability an event occurs given X independent identical trial). But that's ludicrous, because on what world has anyone proved…

The point isn't to answer the question correctly. It's to show how you think through the problem. There is often a "right" way to approach the problem and a "right" way to answer the question, even if there is no right answer per se.

Re: Amazon data science interview questions

#60

It appears that the current generation of "hackers" seems very keen to work for a big name company-- Amazon, Apple, Microsoft, Google, Facebook. As someone who has worked for many startups and several of the above named companies, please let me give you a bit of advice: - A big company on your resume has no outside value to your prospects. Seriously. There's not "hey well he worked for amazon so we know he's good" fr…

It appears that the current generation of "hackers" seems very keen to work for a big name company-- Amazon, Apple, Microsoft, Google, Facebook

Right, because BY FAR they are making the most progress, in the most promising technologies today, and they pay egregiously well.

Post reply on HN