Find the chance that the 5th card is the queen of spades

Assignment Help Basic Computer Science
Reference no: EM132110069

In R, write code to simulate the answers to both parts a) and b) of problem B4 based on 100,000 replications. (Note that R won't work if you leave the comma in a large number.) Suggestions: First write a line of code that will simulate drawing 5 cards from a "deck" with box model where the queen of spades has the value 1 and the other 51 cards have the value 0, then replicate that line 100,000 times using the replicate() function. The rep() function might be useful in constructing the "deck." Assign the output of the 100,000 replications to something, it should be a vector of length 100,000. If it's taking a long time (10 seconds or so) you can test with 1000 replications while you're trying things out, then do 100,000 after you are confident that you have the right idea. After you do that you can sum up the results and divide by 100,000. You have the answer in the back of the book, so you can compare the results of the simulation to the true value, they should be fairly close.

You can submit the code (probably 2 lines though you could do it in one line if you want) written in with your HW. 

B4. Five cards are dealt off the top of a well-shuffled deck. 

  • (a) Find the chance that the 5th card is the queen of spades.
  • (b) Find the chance that the 5th card is the queen of spades, given that the first
  • 4 cards are hearts. 

Reference no: EM132110069

Questions Cloud

Explain some changes that we may see in emergency management : Explain some changes that we may see in Emergency Management in the future in your words?
Discuss the potential benefits to using these technology : There are multiple ways to use technology to help develop a healthy lifestyle. For children, it might be in the form of incorporating games into the existing
List and describe five fundamental principles : FNSACC608 Evaluate Organisation's Financial Performance - FNS60217 Advanced Diploma of Accounting - What is a cost-benefit analysis (CBA)?
Write a short story about a childs journey from birth to age : Write a short story about a child's journey from birth to age 1. This can be a fictional child, or can be based on a real child.
Find the chance that the 5th card is the queen of spades : (a) Find the chance that the 5th card is the queen of spades. (b) Find the chance that the 5th card is the queen of spades, given that the first
What is the standard deviation : One of the values in a normal distribution is 43 and its z-score is 1.65. If the mean of the distribution is 40, what is the standard deviation?
Is the magnetic field created by a current loop uniform : Is the magnetic field created by a current loop uniform? Explain. Does a wire connected to the terminals of abattery emit electromagnetic waves? Explain.
Find the probability that a car battery lasts : Assuming that the car battery useful life has a normal distribution, find the probability that a car battery lasts less than 2.3 years.
What is the range of the projectile : A projectile is fired with speed (V0) at an angle theta) from the horizontal as shown in the figure. What is the range of the projectile?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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