How can two cubical

Assignment Help Basic Computer Science
Reference no: EM13168139

1)how can two cubical (six sided) dice be labelled using numbers {0,1,2,3,4,5,6} so that when the two dice are thrown, the sum has a uniform probability distribution over the integers ( 1,2...12}.The same number can repeat more than once on a face of either die, but each face will come up with the same probability 1/6 when the die is rolled.

 

2)A test for a disease is 90% reliable, i.e. in 90% of cases of people who have the diease,a positive test result is returned and in 90% of the people who do not have the disease, a negative result is obtained. Suppose that 1% of people are known to have the disease. If a person X takes the test and gets a positive result for the test, what is the probability that X actually has the disease?

 

3)Alice and Bill flip a fair coin until one of the respective patterns A = HHT or B = HTT appears for the first time (and then the corresponding player wins). Here is a state diagram that indicates how Alice (or Bill) would proceed to a win: the transitions indicate flips of a fair coin (H/T).

Use the state diagram to calculate:

(a) by hand, the exact probability that Alice wins within 5 or fewer coin flips

(b) via a programmed function that takes n 3 as argument and returns the ratio of the probability that Alice wins in exactly n flips to the probability that Bill wins in exactly n flips.

 

4)Redo problem 3 but this time choose winning patterns A = THH and B = HHT. You will need to draw a state diagram based on these patterns before answering parts (a) and (b) as above.You should be able to reuse the code in p3 if you parmaterize the functions properly

 

 

Reference no: EM13168139

Questions Cloud

Create an array that stores in integers from the keyboard : create an array that stores in integers from the keyboard and then I can scan that array to check numbers in order, if the number I check is greater than the previous then I will set the next number in the array to the higher value.
Write a generic class : Write a generic class (using Java generics) called Pair that stores two values of the generic type.  It should have a constructor to set them, two methods getfirst() and getsecond() to retrieve them.
Create an array that stores in integers from the keyboard : create an array that stores in integers from the keyboard and then I can scan that array to check numbers in order, if the number I check is greater than the previous then I will set the next number in the array to the higher value.
Definition of two queues : Write a code in C lenguage for the definition of two queues, one to hold the process in ready state and one to hold the process in waiting state. The queue should be designed to manage a process structure. Please comment the code.
How can two cubical : how can two cubical (six sided) dice be labelled using numbers {0,1,2,3,4,5,6} so that when the two dice are thrown, the sum has a uniform probability distribution over the integers ( 1,2...12}.The same number can repeat more than once on a face of e..
Know the industry in which a company operates : Getting to know the industry in which a company operates is a critical factor for leveraging information systems and gaining a competitive advantage.
Information such as parameters, resources used : Write a brief description about the following system calls used in Unix/Linux. Include information such as parameters, resources used, expected results/return values, and possible error conditions.
Each part of this problem that the eax register : Assume for each part of this problem that the EAX register contains 00 00 00 4F and the doubleword referenced by value contains FF FF FF 38. Determine whether each of the conditional jump statements causes a jump to dest.
Various standards organizations utilized in this industry : Discuss the various standards organizations utilized in this industry. Do they have conflicting charters or have they worked in different areas to form a coordinated industry overview?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Policies and provisions to unbundled network elements

What are some of the major policies and provisions under the 1996 Act in regards to unbundled network elements (UNEs).

  Statements that make variable-s field-s values consistent

Write one or two statements that make this variable's field's values consistent with the mathematical notion of "origin".

  Effort required for various project

Estimation of the effort required for various project tasks is one of the toughest assignments for a project planner. In an organization, who is the best judge for the effort needed for specific tasks? Please explain the basis for your answer.

  Explaining os not designed for smartphones and pdas

which OS is not designed for smartphones and PDAs?1. Which OS is not designed for smartphones and PDAs?

  Important ideas for legislators to get from your testimony

Suppose the legislature in your state is debating the adoption of UCITA. What are the three most important ideas you want your legislators to get from your testimony?

  Access control system

What access control system is most valuable for protecting enterprise systems? Why? What are two specific strengths and two specific drawbacks for your chosen access control system?

  Solve reasoning problem

If Abby is communicating, so is Randy. Vijay and Kevin are either both communicating or neither is. If Heather is communicating, then so are Abby and Kevin. Describe your reasoning.

  Describe method to keep the data local caches in sync across

describe method to keep the data local caches in sync across multiple processors (i.e. cache coherence). discuss implementations issues

  Explaining benefits of reconnaissance tools

Write down some popular reconnaissance tools? Compare three reconnaissance tools and describe the benefits and limitations of each.

  Design hardware-software driver processor-peripheral device

Design the hardware and software driver that will implement a byte-wide data transfer from your processor to a peripheral device.

  Your manager has decided that the throughput

Your manager has decided that the throughput of your file server can be improved by replacing your old SCSI-2 host adapter with a "fast and wide" SCSI-3 adapter. It has also been decided that the old SCSI-2 drives will be replaced with "fast and w..

  What networking-communications changes were in past decades

What networking and communications changes were introduced in the past decade (2000s), and what were their implications?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd