learn-co-curriculum / dsc-1-08-10-introduction-to-probability-lab Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
In the testing of probability axioms, it is possible to pass all test cases even if only enforcing the second axiom of probability. Any set containing values less than 0 and/or greater than 1 but summing to 1, e.g. [-1, 2], will obey the second axiom but not the first. This creates an edge case. It would be nice to have a set which creates this edge case in order to enforce more rigorous standards for solving the lab.
Students in the current in person described spending over an hour being confused about the difference between these two questions:
"""
a. What is the probability of throwing a 5 at least once?
First, use sample_dice to get "True" values for each time a 5 occurs.
set_5 = None
Next, make sure that you get a value True for each pair where at least one 5 was thrown.
true_5 = None
print(true_5)
"""
Further clarification about combining booleans and what was intended here is warranted.
Now let's try creating your own event space!
A teaching assistant is holding office hours so students can make appointments. She has 6 appointments scheduled today, 3 by male students, and 3 by female students.Create a NumPy array te say way as we did this for you in the "throwing a dice twice" exercise. It will be quite a bit of typing, as your resulting NumPy array will have a shape (20,6)!
It was unclear of what you were looking for. A prompt of "How many ways can you fill the appointments" or "How many different ways can the students sign up for the appointments" would go a long way here.
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.