1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kaheart [24]
3 years ago
9

Implement the simulation of a biased 6-sided die which takes the values 1,2,3,4,5,6 with probabilities 1/8,1/12,1/8,1/12,1/12,1/

2. In [ ]: # WRITE YOUR OWN CODE HERE! FEEL FREE TO INSERT MORE CELLS! # ADD SOME COMMENTS TO YOUR CODE! ​ Plot a histrogramm with 1,000,000 simulations to check if the relative counts of each number is approximately equal to the corresponding specified probabilities. Remark: Specify the bins of your histogram correctly.

Computers and Technology
1 answer:
hjlf3 years ago
4 0

Answer:

see explaination

Explanation:

import numpy as np

import matplotlib.pyplot as plt

a = [1, 2, 3, 4, 5, 6]

prob = [1.0/8.0, 1.0/12.0, 1.0/8.0, 1.0/12.0, 1.0/12.0, 1.0/2.0]

smls = 1000000

rolls = list(np.random.choice(a, smls, p=prob))

counts = [rolls.count(i) for i in a]

prob_exper = [float(counts[i])/1000000.0 for i in range(6)]

print("\nProbabilities from experiment : \n\n", prob_exper, end = "\n\n")

plt.hist(rolls)

plt.title("Histogram with counts")

plt.show()

check attachment output and histogram

You might be interested in
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from great
WITCHER [35]

Here are the multiple choices below:

A. Sort sugar in descending order, and filter Calories by under 100 calories.

B. Sort sugar in ascending order, and filter Calories by over 100 calories.

C. Filter Calories by over 100 calories, and sort Sugar in descending order.  

D. Filter Calories by over 100 calories, and sort Sugar in ascending order.

Sorting and Filtering in Excel or Access are two tools that let you organize and view your data. Sorting your data puts it in order and filtering lets you hide unimportant data. And in this case, it is no different. If you want to show foods with more than 100 calories, you should filter calories by over 100 and sort sugar in highest to the lowest (descending order).


7 0
3 years ago
Green field country is planning to conduct a cricket match between two teams A and B. a large crowd is expected in the stadium a
AnnZ [28]

Answer:

For this requirement, we first need the Network Interface Card which supports the serial transmission, and two such can be RS-485 and EIA RS-422A. And you need to remember that parallel transmission is speedier than serial, however, they are more prone to the noise. And in both of the above cases, we can have multiple receivers and one transmitter and all that over a single line. And this line can be as long as 6000 feet and the speed can be as high as 10 MBPS, which is quite awesome and certainly apt for the above requirement.

Explanation:

Please check the answer.

5 0
3 years ago
Colorful bead bracelet in codehs
Burka [1]

Answer:

native american indians

Explanation:

8 0
2 years ago
When creating an HTML document, what do we use to set aside space for content?
Minchanka [31]

Tags are use to set aside space for contents

<h3 /><h3>What is HTML?</h3>

HTML simply means hypertext mark-up language . This is a language for document that are design to be displayed in the web browser.

Tags are HTML codes that defines how a web browser will format and display the content.

The tags is used to set aside space to accommodate contents. Example of tags are header tags(<h1>, <h2>, <h3>, <h4>, <h5> and <h6>), paragraph tag(<p>).

learn more on HTML here: brainly.com/question/9069928

5 0
2 years ago
Which of the following is a primary disadvantage of using a GUI HTML editor to develop your Webpages?
lora16 [44]

Answer:

C (Most feasible option)

Explanation:

I am not sure but option C seems most probable, all other options do not seem to be true

7 0
2 years ago
Other questions:
  • Before responding to an e-mail from another student in an online course, a student should
    13·2 answers
  • How do you change brightness on acer laptop?
    7·1 answer
  • Which information is considered free for use?
    9·2 answers
  • What is the decimal value of 00001111
    14·1 answer
  • What is IaaS? For this service model, what are the resources the cloud vendor will provide/manage and what are the resources the
    15·1 answer
  • Write a for loop to print all NUM_VALS elements of array hourlyTemp. Separate elements with a comma and space. Ex: If hourlyTemp
    11·1 answer
  • Which of the following might an interior designer in the retail industry specialize in?
    9·1 answer
  • What is the use of a piano​
    10·2 answers
  • Suppose you want to boot a VM from its virtual DVD drive, but it boots to the VM’s hard drive. Which of the following could be t
    12·1 answer
  • you are setting up an active directory environment for a business that has three locations and 300 users. you want the users to
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!