News for hackers. Stuff that matters.
Re:Data science interview questions with answers by pw6hv on Sunday September 13, 2020 @11:49AM (#24461577)
Could you elaborate on which one in particular? I've also read the first questions but haven't noticed anything like this.
Re:Data science interview questions with answers by atty on Sunday September 13, 2020 @09:43PM (#24465861)
Sorry, I should have put it in my original reply. If you search for where it asks for an implementation of the standard deviation, you'll see that it asks for an implementation including Bessel's correction (using N-1 instead of N for the normalization, used to correct for the one degree of freedom lost by the calculation of the mean). However, when you look at the answer, provided, you'll notice that it divides by N, and does not provide 'NaN' for the condition N=1, as was asked.