Compare the standard deviation and standard error

Assignment Help C/C++ Programming
Reference no: EM131963147

Monte Carlo Lab Assignment

The program source code for each question must be submitted with a report which describes the problem and how your code works to solve the problem and the answer it calculates.

1. You are rolling two D12 dice (die with 12 sides with numbers 1-12).

a) Calculate the probability rolling two sixes.

b) Calculate the probability of rolling consecutive two sixes.

2. Consider the function:

f(θ) = sin(θ)/θ

a) Calculate the integral of f(θ) between 0 and 2π using the rejection method.

b) Calculate the integral of f(θ) between 0 and 2π using the evaluation method.

For both of your integral estimations provide an estimate of the standard deviation and standard error (using one sigma (68%) as the confidence interval) using the method introduced in Lab2.

c) Compare the standard deviation and standard error when generating 1x103, 1x104 and 1x105 random numbers and explain the reason for this trend.

3. Robbie R. has stolen 1E4 debit cards and plans to start up a nest egg by withdrawing cash from ATMS. Each card will be frozen after four incorrect pin attempts. Based on pin number frequencies Robbie has decided that his first pin guess will be 1234 then 1111, 0000 and finally 1212, with the frequency of each PIN being 10.7, 6, 1.9, 1.2%, respectively. Robbie tries this 10 times (as in 10 groups of 1x104cards).

What is the average number of cards Robbie gains access to for each collection of 1x104cards? Assume that the rest of the PINS (besides 1234, 1111, 0000, 1212) all have an equal probability of being used.

You don't need to worry about leading zeros in a PIN. IE generating a random number of 12 and treating it as a PIN of 0012 is fine.

4. An exotic particle, the bobbyon, and its accompanying anti-particle, the anti-bobbyon, are located in a sphere with a radius of 10 mm. The bobbyon is initially located at (-1, 0,0)mm and the anti- bobbyon is located at (1, 0,0)mm if the two particles come within a radius of 1mm of one another they will annihilate.

Calculate the probability that the two particles will annihilate instead of leaving the sphere (average over about 1x105runs), assume the particles to be points.

Both particles have the same distribution of step size which varies uniformly between 0 and 1mm and at each step the particles scatters in a random direction isotropically.

Reference no: EM131963147

Questions Cloud

Analyze and discuss the mortality and morbidity risk factors : Analyze and discuss the mortality and morbidity risk factors for your selected population. Discuss four health risk factors.
Describe the foundation or project for social good : Describe the foundation or project for social good.Discuss how the foundation reflects the personal values of the celebrity or athlete.
What is the payment expected to be in one month : White Mountain Packaging just bought a new ice cream parlor for 592,410 dollars. What is the payment expected to be in 1 month?
How the given issue impacts nursing and healthcare : How this issue impacts nursing and healthcare. INCLUDE literature review references and/or current event articles to support your perspective.
Compare the standard deviation and standard error : Calculate the integral of function between 0 and 2p using the rejection method - Compare the standard deviation and standard error
Highest key value in a block of next level down : What is the key value of the 4th index record on the top level, assuming each index record points to the record with the highest key value in a block
Discuss one professional journal and nursing care conference : Discuss one professional journal and one nursing or health care conference where you might present your project.
Some sort of switch case statement : Convert Program #1 into using some sort of switch- case statement this program should be name PrintNumberToWordie2
Develop the equation of the regression model : Use Excel to develop the equation of the regression model. Comment on the regression coefficients. Determine the predicted value of y.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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