1- Write a Python code which calculates and plots the histogram for rolling a six side dice 10000 times.
Added by Andr-S T.
Step 1
``` import random import matplotlib.pyplot as plt ``` Show more…
Show all steps
Your feedback will help us improve your experience
Patina Herring and 64 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Construct a spreadsheet simulation model to simulate 1,000 rolls of a die with the six sides numbered 1, 2, 3, 4, 5, and 6. Construct a histogram of the 1,000 observed dice rolls. For each roll of two dice, record the sum of the dice. Construct a histogram of the 1,000 observations of the sum of two dice. For each roll of three dice, record the sum of the dice. Construct a histogram of the 1,000 observations of the sum of three dice. For each roll of four dice, record the sum of the dice. Construct a histogram of the 1,000 observations of the sum of four dice. Compare the histograms in parts (a), (b), (c), and (d). What statistical phenomenon does this sequence of charts illustrate?
Lucas F.
Imagine rolling u fair, six-sided die 60 times. Draw a plausible graph of the distribution of die rolls. If 1 int: Should you use a bar graph or a histogram?)
Leon D.
Ahmad R.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD