Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please solve in python code and explain each step, please 1. Create your own sample space, compute probabilities and simulate selecting items from it. (a)

please solve in python code and explain each step, please image text in transcribed

1. Create your own sample space, compute probabilities and simulate selecting items from it. (a) Create a sample space with three or more simple events. Assign a probability to each item. Show that the axioms of probability hold under this assignment. (b) Create a compound event that uses some of the simple events. (c) Compute the probability of a union and an intersection of your events. (d) Compute both conditional probabilities of two events. Make sure to explain what they are in words. Apply Bayes' theorem to verify your result. (e) Compute the probability of the complement of an event. (f) Simulate a simple occurrence of your sample space 10 times. Pick an event, does the simulation give you exactly the same probability as your assignment? Explain why or why not. 2. Be sure to comment on the following: (a) Describe your findings in words. (b) If you were unable to code something discuss what the difficulty was and why doing it by hand was easier. (c) Discuss how simulation might be different than your ideal sample space. The first report will be graded by the following criteria: Report Style - 5 points. Your report contains a title, author's name, class it is for, and instructor's name. Clean Code- 5 points. Functions and variables are defined with descriptive names. Code can be interpreted with minimal effort. Probability - 5 points. Probability makes sense. Explanation is given of computations. Simulation - 5 points. Simulation works correctly and gives reasonable results. Those results are interpreted. Writing Quality - 5 point. The paper is readable, clearly written and contains a single voice. There are few, if any, grammatical or spelling errors and they do not interfere with the clarity of the paper

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

Discuss supervised and unsupervised learning.

Answered: 1 week ago

Question

1. Which position would you take?

Answered: 1 week ago