Sign In
Not register? Register Now!
Essay Available:
Pages:
7 pages/≈1925 words
Sources:
No Sources
Level:
APA
Subject:
Mathematics & Economics
Type:
Statistics Project
Language:
English (U.S.)
Document:
MS Word
Date:
Total cost:
$ 36.29
Topic:

Analyze The Sample Mean And Compare It To The Theoretical Mean (Statistics Project Sample)

Instructions:

simulation project, the instruction is in the oral-exam pdf.

source..
Content:
#console to analyze the sample mean and compare it to the theoretical mean
set.seed(1)
lambda<-0.2
nexp<-40
nsim<-1000
mns<-NULL
for(i in 1:nsim) mns<-c(mns,mean(rexp(40,lambda)))
hist(mns, col="blue", main="distributions of means of rexp")
## console for comparing the variance of the means vs the theoretical variance
varexp<-((1/lambda)^2)/nexp ##theoritical variance
varmean<-var(mns) ## variance of the means
##simulation initialization
lambda<-0.2
mu<-1/lambda
n<-40
nosim<-100
nosim2<-2000
simulations<-rexp(n*nosim2,lambda)
simulations40<-matrix(simulations[1:(n*nosim)],nosim)
simulations40by2000<-matrix(simulations,nosim2)
##comparing sample...
Get the Whole Paper!
Not exactly what you need?
Do you need a custom essay? Order right now:

Other Topics:

  • Course in Public Economics-John Leach Questions Chapter 3
    Description: When there are only two people in an economy, the markets clear when the sum of their excess demands is equal to zero...
    1 page/≈275 words | No Sources | APA | Mathematics & Economics | Statistics Project |
  • Real Estate Managerial Report (MTH410)
    Description: In today’s business world, conducting market surveys is important as far as the success of the company is concerned. It is not an exemption for Gulf Real Estate Property Company...
    10 pages/≈2750 words | 2 Sources | APA | Mathematics & Economics | Statistics Project |
  • Measures of Central Tendency Essay #2
    Description: The data collected focused on the spent talking on the phone each day for10 observations...
    2 pages/≈550 words | No Sources | APA | Mathematics & Economics | Statistics Project |
Need a Plagiarism Free Essay?
Submit your instructions!