baseballlife1875 baseballlife1875
  • 23-01-2020
  • Mathematics
contestada

Define a function roll_hundred_pair() that produces a histogram of the results of 100 rolls of two 6-sided dice

Respuesta :

dogacandu
dogacandu dogacandu
  • 23-01-2020

Answer:

The code is attached. I used python to define the function and matplotlib library to plot the histogram.

Step-by-step explanation:

  1. I defined a function called roll_hundred_pair
  2. I imported matplotlib.pyplot as plt and random
  3. I defined a list called dice
  4. I created an empty list to collect dice results
  5. I simulated 100 dice roll using a loop and random.sample
  6. finally I plot the histogram using plt.hist method
Ver imagen dogacandu
Answer Link

Otras preguntas

Match the following items.Determine the functions if θ is a first-quadrant angle, and sin = .1. cosθ √(15)/5 2. tanθ √(10)/2 3. cscθ √(15)/3 4. secθ √6/3 5. cot
Jay pays $5.25 for 5 water bottles. What is the price per water bottle?
la población envejecida puede causarle problemas a un país por qué​
What is the answer to one plus one in mathematics?
Hello I am AnjaliI am going to send some ideas on save EnvironmentNow in image I had made this all Those who are nature Lover So I request to all use plastic bo
4x(3x - 1) - 2(3x + 1) - (x + 3)
Who was Hardeep Singh? Why Hardeep Singh approached his friend Gurpreet Singh
Please help, answer all 3 please ASAP!!!!! A. Graph the piece-defined function. B. What is the domain and range of the function?
in group of 60 students, 15 liked math only , 20 liked science only and 5 did not like any two subject how many student like math
Expand [tex](\frac{2a}3} +\frac{3b}{4} )^{2}[/tex]