CS 547: Computer System Modeling Fundamentals Homework 3


Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due

Homework 3 CS 547 

Use the inverse CDF method to generate 100000 random values from an exponential distribution with λ = 10. 

Calculate the mean and variance of your generated data. How can you verify that your data is exponentially distributed using only these two numbers? 

Plot the CDF of your randomly generated values. 

Note: you can use any software tool for this problem as long as it produces nice, legible plots. If you don’t have a preferred tool, look into MATLAB or R. 

Mr. Fish’s Variable 

A Poisson1 random variable is often used to represent the occurence of random events over time. Its distribution is discrete and has a single parameter, λ > 0, which is called the rate. Very shortly, we’ll study the Poisson process, which is closely related to the Poisson distribution and has several nice properties that are useful in analyzing queueing systems. 

Let X be a random variable denoting the number of events that occur in a time period of fixed length. If X ∼ Pois(λ), the probability of obtaining exactly k events in the period is given by 

P[X = k] = e −λ (λ) k k! . 

Show that the expected number of events in the period is simply λ. 

Hint: it may be helpful to know that X∞ m=0 x m m! = e x . 

Lightbulbs 

We’ve been given a bin filled with lightbulbs. There are three different kinds of bulbs, labeled A, B, and C. 

The probability that a type A lightbulb lasts for at least 1000 hours is .7. The probabilities that type B and C lightbulbs last at least 1000 hours are .4 and .3, respectively. 

If 20% of the lightbulbs in the bin are type A, 30% are type B, and 50% are type C, what is the probability that a randomly chosen lightbulb lasts for at least 1000 hours? 

Suppose we pick two lightbulbs independently and at random. What is the probability that both lightbulbs last for at least 1000 hours? 

Suppose we pick 10 bulbs independently and at random. What is the probability that at least one bulb lasts for at least 1000 hours

The Gamma Function 

The gamma function, Γ(α), is defined by Γ(α) = Z ∞ 0 e −xx α−1 dx 

Show that the gamma function satisfies the following two properties: 

• Γ(α) = (α − 1)Γ(α − 1) 

• Γ(1) = 1 

Together, these two results imply that Γ(n) = (n − 1)! for positive integral values of n.

发表评论

电子邮件地址不会被公开。 必填项已用*标注