R code:
n=10000
x=matrix(0,nrow=n,ncol=10)
m=1:n*0
var=1:n*0
for(i in 1:n)
{
x[i,]=rpois(10,lambda=2)
m[i]=mean(x[i,])
var[i]=var(x[i,])
}
M=mean(m)
Var=mean(var)
M
Var
Output:
> M
[1] 1.99852
> Var
[1] 1.999093
Description: We draw a sample of size 10 from Poisson(2) and compute sample mean and sample variance. We repeat this whole process 10000 times and compute 10000 sample mean and sample standard deviation then we take average these 10000 sample means and variances then we observe that these average values are very closed to true value of lambda i.e. 2.
However here we observe that sample mean is closer to 2 than sample variance.
2) We know that the variance of mean of a Poisson distributed population are e Thus...
Suppose that we want to test the null hypothesis that the mean of population 1 is equal to the mean of population 2. We select a random sample from population 1 and a random sample from population 2, and these two samples are independent. Circle the TRUE statements. A. We need to perform a two-sided test. B. If we know the variance of each population, even if they are different, we can use the Z test. That is, the test...
a) Suppose we know the population variance σ2-400, there is a randorm sample with i-135, and the sample size is n the mean. I. 100. Please construction a 95% confidence interval for b) Suppose we do not know the population variance, and only know the sample variable s2-400, there is a random sample with -135, and the sample size is n-25. Please construct a 95% confidence interval for the mean.
3. You have two independent random samples: XiXX from a population with mean In and variance σ2 and Y, Y2, , , , , Y,n from a population with mean μ2 and variance σ2. Note that the two populations share a common variance. The two sample variances are Si for the first sample and Si for the second. We know that each of these is an unbiased estimator of the common population variance σ2, we also know that both of...
1. Select all true statements about sample mean and sample median. A) When the population distribution is skewed, sample mean is biased but sample median is an unbiased estimator of population mean. B) When the population distribution is symmetric, both mean and sample median are unbiased estimators of population mean. C) Sampling distribution of sample mean has a smaller standard error than sample median when population distribution is normal. D) Both mean and median are unbiased estimators of population mean...
new random variable X is distributed as Poisson) in this question. We create a U where its probability mass function is P(X u) u) P(X 1) P(U for u = 1,2,... (a) Show that e P(U u)= 1- e-A u!' for u 1,2,. (6 marks) expression for the moment generating function of U (7 marks (b) Derive an (c) Find the mean and variance of U (7 marks)
new random variable X is distributed as Poisson) in this question. We...
Consider a sensor system for which we know that the sensor noise is normally distributed (and thus that an actual reading is taken from a normal distribution). Given an existing sensor with a known mean reading of µ = 3.75 and a standard deviation of 0.4, we want to compare a new sensor to it. For the new sensor we take 10 measurements: {3, 4.5, 4, 3.6, 3.9, 4.15, 3.2, 4.1, 3.2, 3.35}. Given this data we want to show...
Consider a sensor system for which we know that the sensor noise is normally distributed (and thus that an actual reading is taken from a normal distribution). Given an existing sensor with a known mean reading of µ = 3.75 and a standard deviation of 0.4, we want to compare a new sensor to it. For the new sensor we take 10 measurements: {3, 4.5, 4, 3.6, 3.9, 4.15, 3.2, 4.1, 3.2, 3.35}. Given this data we want to show...
A simple random sample of size n is drawn from a population that is normally distributed. The sample mean, x, is found to be 106, and the sample standard deviation, s, is found to be 10. (a) Construct a 90% confidence interval about u if the sample size, n, is 22. (b) Construct a 90% confidence interval about u if the sample size, n, is 27. (c) Construct a 99% confidence interval about u if the sample size, n, is...
LU 22 2. We know that the sample variance follows a chi-square distribution: Sanx?(n-1). (a) (5 points) Use this fact to show that E(S) = 02. (Hint: Find the mean of the x as then mean of a Gamma distribution.) (b) (5 points) Use Markov's inequality to find an upper bound on the probability that the sample variance is twice the true variance, i.e. P(S? > 20%).
Suppose that a random variable is normally distributed with mean μ and variance σ2 and we draw a random sample of 5 observations from this distribution. What is the joint probability density function of the sample?