Design a simulation exercise in r to approximate the value

Assignment Help Mathematics
Reference no: EM13117714

Polya urn simulation via R
I need help in two probability problems using R program.

1. Simulation of an expectation. Design a simulation exercise in R to approximate the value of E ( X^X) when X has a U [0,1] distribution. Plot the value of the approximation as the sample size goes from 1 to 10,000. Use the Notebook feature in RStudio to create an HTML file for your answer.

2. Simulation of a Polya Urn. Put a = 10 white balls and b = 20 blue balls in an urn. Then, randomly draw a ball from the urn, and replace it along with another ball of the same color, repeat.
a) Write an R program to simulate Rn, the proportion of white balls in the urn after n draws from the urn, for any integer n.
b) Plot the histogram of Rn for n = 1,000.
c) Simulate Rn 10,000 times.
d) Overlay the histogram with a line graph of the appropriate limiting distribution. Use the Notebook feature in RStudio to create an HTML file for your answer.

Reference no: EM13117714

Questions Cloud

Determining exponential-logarithm-power questions : Solve the following problems with exponents-Write the following numbers using scientific notation
How much heat energy, in kilojoules, is require : How much heat energy, in kilojoules, is required to convert 65.0g of ice at 18.0 degrees celcius to water at 25.0 degrees celcius.
Illustrate what is the safes coefficient of kinetic friction : The safe slides with a constant speed if Clyde pushes from behind with 420 {rm N} of force while Bonnie pulls forward on a rope with 285 {rm N} of force. Illustrate what is the safe's coefficient of kinetic friction on the bank floor?
Calculate the mole fraction, x : A gaseous mixture contains 420.0 Torr of H2(g), 391.3 Torr of N2(g), and 79.5 Torr of Ar(g). Calculate the mole fraction, X, of each of these gases.
Design a simulation exercise in r to approximate the value : Simulation of an expectation. Design a simulation exercise in R to approximate the value of E ( X^X) when X has a U [0,1] distribution. Plot the value of the approximation as the sample size goes from 1 to 10,000
Logarithm and scientific notation : Imagine that every single person in your contact list has the same number of people in their contact list as you. Write this total number of all the contacts in all the phones (ignore the fact that some may repeat) as an exponential. Next, evaluat..
What is the concentration of a solution : What is the concentration of a solution formed by diluting 25.0 mL of a 3.2 M NaCl solution to 135.0 mL.
What are some of the causes of failed change : What are some of the causes of failed change? Where possible, illustrate these with examples. What practices and/or processes might managers adopt to improve the prospect of successful change implementation?
Find out the dog resultant displacement vector : A dog searching for a bone walks 3.00 m south, then 8.20 m at an angle 30.0° north of east, and finally 14.0 m west. Find out the dog's resultant displacement vector using graphical techniques.

Reviews

Write a Review

Mathematics Questions & Answers

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

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