Write a matlab program to simulate the dice rolling game

Assignment Help Financial Econometrics
Reference no: EM131214817

Write a MATLAB program to simulate the dice rolling game described in given exercise. Run your program a large number of times and use the relative frequency to verify that your answers to given exercise are correct.

Exercise

Now consider a modified version of Problem where the defense is also allowed to roll multiple dice. Each player's highest roll is compared with the other player's highest roll, their second highest roll is compared with the other player's second highest roll, etc. As before, any ties go to the defense.

(a) Suppose both players roll two dice. In this case, there are two armies to be lost since there are two dice comparisons (highest vs. highest and lowest vs. lowest). Find each of the following probabilities:

(i) Offense wins both comparisons (and thus defense loses two armies).

(ii) Offense wins one comparison and defense wins the other (and thus each lose one army).

(iii) Defense wins both comparisons (and thus offense loses two armies).

(b) Repeat all the calculations in part (a) for the scenario where the offense rolls three dice and the defense rolls two dice. As before, there are two comparisons to be made in this scenario (highest vs. highest and second highest vs. second highest).

Reference no: EM131214817

Questions Cloud

Critical task as a project manager : What do you believe is the most critical task as a project manager? What role should they play (a coordinator, a technical advisor, a consultant, a coach, a manager, a bridge between project team, upper manager and customers or a combination of al..
Which are ill defined and tenuously rooted : Discuss a moral dilemma you have either found yourself involved in or one your closely observed another involved in where you or that other person have had to make a decision based solely on your moral beliefs. First, read Chapter 9, p. 375, "Your..
Database design lacks functionality to support theaters : The current movie database design lacks functionality to support theaters and show times.  It is not possible to see what theaters a movie is currently playing in or what movies are being shown at a particular theater.  Therefore, we would like to..
What value cluster is represented in the advertising : Search the Web and compare at least five companies' slogans. Briefly state what value cluster is represented in the advertising.
Write a matlab program to simulate the dice rolling game : Write a MATLAB program to simulate the dice rolling game. - Run program a large number of times and use the relative frequency to verify the answer.
Describe why companies develop predetermined overhead rates : Explain why companies develop predetermined overhead rates. Explain why the increase in the overhead rate should not have a negative financial impact on Borealis Manufacturing.
Depends whether you prefer the track record : But having demonstrated the extent that O'Leary met the Finklestein criteria, McManus concluded: "So, is it time for Ryanair to dump O'Leary - Depends whether you prefer the track record of one of the most successful businessmen in modern aviatio..
Explain the concept of organizational effectiveness : Explain the concept of organizational effectiveness, as it relates to the interactions of members. Describe methods used to assess the behaviors and attitudes of organizational members, and apply 1 model in an analysis of your organization.
Calculate its inductance and capacitance per unit length : Application: Parameters of coaxial line. The RG-l1/U coaxial line has the following properties: Z0 = 75 Ω and vp = 2c/3 m/s. Assuming the line to be lossless, calculate its inductance and capacitance per unit length.

Reviews

Write a Review

Financial Econometrics Questions & Answers

  What kind of financial product has the same payoffs

What are the possible payoffs to the equityholders at date 1 and what kind of financial product has the same payoffs? Please describe the detailed characteristics of the financial product.

  Calculate the firms ocfs and find the present value now

McDermott estimates that the new project will generate $900,000 in annual sales at the end of each of the next four years and that operating costs (excluding depreciation) will equal $400,000.

  Why are some economists not concerned about this

The variability of floating exchange rates since 1973 has been higher than most economists expected. -  Why are some economists not concerned about this?

  How to solve it with logic based benders decomposition

The goal is to find a feasible schedule. - Formulate this problem and indicate how to solve it with logic-based Benders decomposition.

  How much additional debt will be needed to issue

Your firm has an ROE of 12.1%, a payout of 29%, $576,100 of stockholders equity, and $438,700 of debt. If yougrow at your sustainable growth rate this year, how much additional debt will you need to issue

  Write the appropriate benders cut

Suppose that a minimum makespan planning and scheduling problem is to be solved by logic-based Benders decomposition.

  Estimate the price of the companys common stock

Due to growing demand for computer software, the Perry Company has had avery successful year and expects its earnings per share to grow by 25 percent to reach $5.50 for this year.

  How much will have available to put down on that home

Kate and Richard just won $35,000 in the Pennsylvania state lottery. They decide to spend $9,000 now and put the remaining $26,000 in an investment earning 7 percent compounded annually.

  Calculate estimate of the weighted average cost of capital

Calculate the estimate of the weighted average cost of capital ( WACC ) for Northrop Grumman Corporation using their 10K report.

  Determine what is the yield on the repurchase agreement

A bank enters a repurchase agreement in which it agrees to buy Treasury securities from a correspondent bank at a price of $19,945,000, with the promise to buy them back at a price of $20,000,000.

  Determine b-a using forward rates denote the pv

Second, assume that the given rates are forward rates and let B denote the PV of the three $1000 payments discounted using forward rates. Determine B-A.

  Who will win the mvp if raffy is found innocent

Who will win the MVP if Raffy is found innocent? - Who will win the MVP if Raffy is found guilty?- What problem with consistent aggregation does this illustrate?

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