In the hash function ha(x) = ((a*x)%p)%s . Since a=2, therefore a*x will be the set of even number.
Now let's test the output ha(x) for x= 0,1,2,3,4,5,6 . Since p = 7 and s=4.
ha(0) = ((2*0)%7)%4 = 0 % 4 = 0
ha(1) = ((2*1)%7)%4 = 2 % 4 = 2
ha(2) = ((2*2)%7)%4 = 4% 4 = 0
ha(3) = ((2*3)%7)%4 = 6 % 4 = 2
ha(4) = ((2*4)%7)%4 = 1 % 4 = 1
ha(5) = ((2*5)%7)%4 = 3 % 4 = 3
ha(6) = ((2*6)%7)%4 = 5 % 4 = 1
So we can see that out of 4 possible output of ha(x) which are 0,1,2,3, output 3 occurs only once for x = 5 while every other output occurs twice.
Thus from above distribution of x, we get that output 3 is less probable.
Please comment for any clarification.
Consider the universal hash function ha(x) = ((a * z)%p)%s for p = 7 and 8-4; e the random parame...
A discrete random variable X follows the geometric distribution
with parameter p, written X ∼ Geom(p), if its distribution function
is
A discrete random variable X follows the geometric distribution with parameter p, written X Geom(p), if its distribution function is 1x(z) = p(1-P)"-1, ze(1, 2, 3, ). The Geometric distribution is used to model the number of flips needed before a coin with probability p of showing Heads actually shows Heads. a) Show that fx(x) is indeed a probability...
Need help with this
Problem 4 A discrete random variable X follows the geometric distribution with parameter p, written X ~Geom(p), if its distribution function is fx(x) = p(1-p)"-1, xe(1, 2, 3, . . .} The Geometric distribution is used to model the number of flips needed before a coin with probability p of showing Heads actually shows Heads. a) Show that Ix(z) is indeed a probability inass function, i.e., the sum over all possible values of z is one...
If X is a nonnegative integer-valued random variable then the function P(z), defined for lzl s 1 by is called the probability generating function of X (a) Show that d* (b) With 0 being considered even, show that PX is even) = P(-1) + P(1) (c) If X is binomial with parameters n and p, show that Pix is even) -1+12p (d) If X is Poisson with mean A, show that 1+ e-24 2 P[X is even)- (e) If X...
P7
continuous random variable X has the probability density function fx(x) = 2/9 if P.5 The absolutely continuous random 0<r<3 and 0 elsewhere). Let (1 - if 0<x< 1, g(x) = (- 1)3 if 1<x<3, elsewhere. Calculate the pdf of Y = 9(X). P. 6 The absolutely continuous random variables X and Y have the joint probability density function fx.ya, y) = 1/(x?y?) if x > 1,y > 1 (and 0 elsewhere). Calculate the joint pdf of U = XY...
1. Consider a continuous random variable X with the probability density function Sx(x) = 3<x<7, zero elsewhere. a) Find the value of C that makes fx(x) a valid probability density function. b) Find the cumulative distribution function of X, Fx(x). "Hint”: To double-check your answer: should be Fx(3)=0, Fx(7)=1. 1. con (continued) Consider Y=g(x)- 20 100 X 2 + Find the support (the range of possible values) of the probability distribution of Y. d) Use part (b) and the c.d.f....
5. Consider the discrete random variable X with probability mass function p.) = (3/30 for r=1 6/30 for r= 2 8/30 for r=3 7/30 for r = 4 4/30 for r = 5 2/30 for r= 6 10 otherwise. You may find it helpful to use a table with columns for I, Px(), 2. Px(2), and r.Px() to keep track of your computations. Do not round off-express all values as rational fractions. a) Find the probability P(X<3. b) Find the...
3. Use the probability generating function Px)(s) to find (a) E[X(10)] (b) VarX(10)] (c) P(X(5)-2) . ( 4.2 Probability Generating Functions The probability generating function (PGF) is a useful tool for dealing with discrete random variables taking values 0,1, 2, Its particular strength is that it gives us an easy way of characterizing the distribution of X +Y when X and Y are independent In general it is difficult to find the distribution of a sum using the traditional probability...
2.34. Probability integral transformation. Consider a random variable X with cumulative function Fx(x), 0-x-00, Now define a new random variable U to be a particular function of X, namely, U = Fx(X) For example, if FX(x)-1-e-Ax, then U = 1-e-Ax = g(X). Show [at least for reasonably smooth Fx(x)] that the random variable U has a constant density function on the interval O to 1 and is zero elsewhere. Hint: Con vince yourself graphically thatgg (u)- u and assume that...
and Y ~ Geometric - 4 Let X ~ Geometric We assume that the random variables X and Y are statistically independent. Answer the following questions: a (3 marks) For all x E 10,1,2,...^, show that 2+1 P(X>x) P(x (3 = Similarly, for all y [0,1,2,...^, show that Show your working only for one of the two identities that are pre- sented above. Hint: You may use the following identity without proving it. For any non-negative integer (, we have:...
Homework 4: Problem 3 Previous Problem Problem List Next Problem (6 points) Consider the function f(x, y) - (e - x) sin(y). Suppose S is the surface z- f(x, y) (a) Find a vector which is perpendicular to the level curve of f through the point (5,5) in the direction irn which f decreases most rapidly. vector (b) Suppose u = 31 + 3/4 ak is a vector in 3-space which is tangent to the surface S at the point...