The probability of getting an 8 in any roll is .
a) G follows a geometric distribution with parameter .
means the
probability of getting an 8 on the gth roll and not getting an 8 in
each of the throws before it. Since each roll is independent this
probability is :
Thus,
is the pmf of G. Also
b)
c)
Let's calculate all the required values:
.
Hence Proved.
Problem 1. Suppose that you roll an 8-sided die until you get an 8. Let G denote the number of rolls that this takes. (a) Write down the probability mass function of G (b) Write a closed-form express...
Problem 3 Roll a die until we get a 6. Let X be the total number of rolls and Y the number of l's we get. (a) Find Etx Y k (b) Find EY
Problem 3 Roll a die until we get a 6. Let X be the total number of rolls and Y the number of l's we get. (a) Find Etx Y k (b) Find EY
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be |X-Y|. The range of Z will be from 0 to 3. 1. Find E(Z). 2. Find P(Z = 1|Z <3). 3. What is the probability that you have to play the game 4 times before you roll Z=3? 4. What is the probability...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be (X+Y). The range of Z will be from 2-8. 1.(2.5 points) Find E(Z). 2. (2.5 points) Find P(Z = 71Z > 5). 3.(2.5 points) What is the probability that you have to play the game 4 times before you roll Z=7? 4. (2.5...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be (X+Y). The range of Z will be from 2-8. 1.(2.5 points) Find E(Z). 2. (2.5 points) Find P(Z = 71Z > 5). 3.(2.5 points) What is the probability that you have to play the game 4 times before you roll Z=7? 4. (2.5...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be X-Y). The range of Z will be from 0 to 3. 1. (2.5 points) Find E(Z). 2. (2.5 points) Find P(Z = 21Z >1). 3. (2.5 points) What is the probability that you have to play the game 6 times before you roll...
I know Pk~1/k^5/2 just need the
work
Problem 1. Suppose that a fair six-sided die is rolled n times. Let N be the number of 1's rolled, N2 be the number of 2's rolled, etc, so that NN2+Ns-n Since the dice rolls are independent then the random vector < N,, ,Ne > has a multinomial distribution, which you could look up in any probability textbook or on the web. If n 6k is a multiple of 6, let Pa be...
Problem 8.2
In a simple gambling game, you roll a single fair 6-sided die
until the first time you get a 1. After the first 1 appears, your
winnings W in dollars is the total number of points on all your
rolls (including the last one).
(a) Define random variables N, X1, X2, ...
such that W = X1 + X2 + ···+ XN . (The answer
is not unique, but we can probably all agree on the most useful...
Thank you!!!
4.1 [2 pts. int rollO Define a function roll() that takes no arguments, and returns a random integer from 1 to 6. Before proceeding further, we recommend you write a short main method to test it out and make sure it gives you the right values. Comment this main out after you are satisfied that roll() works. Remenber:texibook Seciion 49 is on randormness, and Chapier 5is on functions. int getKandomNumber return 4 l chosen by fair dice roll....
Self-check exercise: While-loops
The value of (π^2)/8 can be approximated by the series
Write a script that evaluates this expression, ignoring all
terms that are strictly smaller than .000001. Your script should
display the number of terms summed and the sum. Use a while-loop.
Think about the initialization of your variables and the order of
computation carefully! In the loop body you need to calculate the
value of a term only once.
We use the above series for approximating (π^2)/8...
could you please help me with this problem, also I
need a little text so I can understand how you solved the
problem?
import java.io.File; import java.util.Scanner; /** *
This program lists the files in a directory specified by * the
user. The user is asked to type in a directory name. * If the name
entered by the user is not a directory, a * message is printed and
the program ends. */ public class DirectoryList { public static...