adijo / data-science-prep Goto Github PK
View Code? Open in Web Editor NEWProblems from https://datascienceprep.com/
Problems from https://datascienceprep.com/
Hi @adijo, I believe that in your PDF, the solution for question 15 "Max Dice Roll" is not the expected answer.
You write the formula for P(max{X1, ..., Xn} <= r)
but we don't want the probability that the largest number rolled is less than (or equal to) r
. We want the probability that the largest number rolled is equal to r
.
So the expected result is P(max{X1, ..., Xn} = r)
which changes the formula:
P(max{X1, ..., Xn} = r) = r^n/6^n - (r-1)^n/6^n
(from here)
You can verify that the PDF formula does not give the wanted result:
The total number of possibilities was considered as 8-1 =7
But why will the order matter here, isn't 101, 110 and 011 the same ?
I think there are three possibilities that contain at least one fan viz (fan, not fan, not fan), (fan, fan, not fan) and (fan, fan, fan)
out of these only one combination has exactly one fan, so probability is 1/3
In Question 6 โ Picking between two dice games, you state the expected value E[X] of a dice roll (X โผ Uniform(1, 6)) is 3, when it is actually 3.5. This results in a very different expected value for E[XY] of 3.5 * 3.5 = 12.25 and E[Z^2] = 2.92 + 12.25 = 15.17.
Other than that, I enjoyed reading through your solutions. Cheers!
I had the initial idea that P(HH) = P(TH) as well, but list out a few possibilities and you'll see that this isn't the case! In fact, this game is very biased towards one side. Try to consider what happens when the first coin flip yields T.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.