Using R-studio
2. Consider an experiment where we flip a fair coin six times in a row, and i is the number of heads tossed:
a. Calculate the probability mass function for i = 0. . . 6 using the equation from Ross section 2.8 for Binomial Random Variables
b. Conduct a simulation of this experiment in R, with T trials of the experiment – pick several values of T from 10 to 10,000.
c. Create a plot of the theoretical result vs. your simulation at T = 100 and T = 10,000. Show that they converge as T increases.
c)actuals plot for T=100
theoretical plot for T=100
actuals plot for T=10,000
Theoretical at T=10000 (If you cannot understand which plot it is then look at the Y axis and you will get it is for which T value)
R code for the above plots
As we can rightly observe that the plots start to converge as T increases from 100 to 100000 as the actuals vs theoretical difference starts becoming small in the later plots which is the tendency of Central Limit Theorem as well
Hope the above answer has helped you in understanding the problem. Please upvote the ans if it has really helped you. Good Luck!!
Using R-studio 2. Consider an experiment where we flip a fair coin six times in a row, and i is the number of heads toss...
Suppose we flip a fair coin n times. We say that the sequence is balanced when there are equal number of heads and tails. For example, if we flip the coin 10 times and the results are HT HHT HT T HH, then this sequence balanced 2 times, i.e. at position 2 and position 8 (after the second and eighth flips). In terms of n, what is the expected number of times the sequence is balanced within n flips?
Consider the following discrete random variables W is the number of times heads is observed when a fair coin is tossed 10 times. X is the number of red balls drawn when 10 balls are drawn without replacement from an urn containing 50 red balls and 30 green balls. Y is the number of hearts received when a 10-card hand is dealt from a standard deck. Z is the number of hearts drawn when 1 card is drawn at random...
Use R - stuido 6. Consider a fair coin. If Y = # of tosses until first H, what are P(success), EY, and VY? 7. Next, take a quarter and record # of tosses until first H. Do this experiment 30 times: so that your first experiment consists of your tosses up to your first H, and you record the number of T before the coin came up heads. Then you pretend to start over: reset your count and toss...
Flipping Coins For a fair coin, the chance of getting tails is 1/2. Counting the number of tails Let's experiment with the total number of tails in n trials. Total number of tails in a small number of coin flips ם Suppose we flip 10 coins (with 1 = Tails and 0 = Heads). Here are six samples of size 10. = 10 trials = 6 for (i in 1: trials) { print (sample(c(0, 1), 1, replace=TRUE)) مه ## [1]...
R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable with mean 22 and variance 25 #(i)lies between 16.2 and 27.5 #(ii) is greater than 29 #(iii) is less than 17 #(iv)is less than 15 or greater than 25 #2.Probability that in 60 tosses of a fair coin the head comes up #(i) 20,25 or 30 times #(ii) less than 20 times #(iii) between 20 and 30 times #3.A random variable X has Poisson...
Experiment 2: Rotational KE and Moment of Inertia Data. Please help with Last Trial Experiment Il: Rotational KE and Moment of Inertia Data Radius of step-pulley groove: r = _ 0.02 Rod: L = 0.25m Mw=_30 8 = 0.16 Average mass of brass weights: Mr = _50 Mass of falling body: M = 40 8 m 0000003 Wahl APE -m /s IR rad Diff % m g ΔΚΕ, g.m/s Bom rad/s rad/s 0.12.0024 .9408 0.05 .4 0.18 .0036 1.4112 0.10...