Skip to main content
Notice removed Authoritative reference needed by CommunityBot
Bounty Ended with no winning answer by CommunityBot
Tweeted twitter.com/#!/StackStats/status/444467787734736896
Notice added Authoritative reference needed by user7064
Bounty Started worth 50 reputation by user7064
modified mathjax formatting for "real" notation
Source Link
David Marx
  • 7.1k
  • 2
  • 30
  • 46

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in R$$\eta = \log(\theta) \in \mathbb{R}$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Example:

-- Minus log likelihood for a sample from the Exp distribution with mean $\theta = \exp(\eta)$:

minusloglik <- function(eta, sample)
{
  theta <- exp(eta)
  - sum(dexp(x=sample, rate=theta, log=TRUE))
}

-- True value of $\theta$:

theta <- 5.73

-- Simulations:

thetaHat <- etaHat <- rep(NA, 1000)
for(i in 1:1000)
{  
  sample <- rexp(n=100, rate=theta)
  etaHat[i] <- nlm(f=minusloglik, p=0, sample=sample)$estimate
  thetaHat[i] <- exp(etaHat[i])
}

Question:

  • Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?
  • Is the answer the same if $\theta$ denotes the variance of a normal distribution?

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in R$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Example:

-- Minus log likelihood for a sample from the Exp distribution with mean $\theta = \exp(\eta)$:

minusloglik <- function(eta, sample)
{
  theta <- exp(eta)
  - sum(dexp(x=sample, rate=theta, log=TRUE))
}

-- True value of $\theta$:

theta <- 5.73

-- Simulations:

thetaHat <- etaHat <- rep(NA, 1000)
for(i in 1:1000)
{  
  sample <- rexp(n=100, rate=theta)
  etaHat[i] <- nlm(f=minusloglik, p=0, sample=sample)$estimate
  thetaHat[i] <- exp(etaHat[i])
}

Question:

  • Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?
  • Is the answer the same if $\theta$ denotes the variance of a normal distribution?

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in \mathbb{R}$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Example:

-- Minus log likelihood for a sample from the Exp distribution with mean $\theta = \exp(\eta)$:

minusloglik <- function(eta, sample)
{
  theta <- exp(eta)
  - sum(dexp(x=sample, rate=theta, log=TRUE))
}

-- True value of $\theta$:

theta <- 5.73

-- Simulations:

thetaHat <- etaHat <- rep(NA, 1000)
for(i in 1:1000)
{  
  sample <- rexp(n=100, rate=theta)
  etaHat[i] <- nlm(f=minusloglik, p=0, sample=sample)$estimate
  thetaHat[i] <- exp(etaHat[i])
}

Question:

  • Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?
  • Is the answer the same if $\theta$ denotes the variance of a normal distribution?
added 91 characters in body
Source Link
user7064
  • 2.2k
  • 6
  • 26
  • 44

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in R$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Example:

-- Minus log likelihood for a sample from the Exp distribution with mean $\theta = \exp(\eta)$:

minusloglik <- function(eta, sample)
{
  theta <- exp(eta)
  - sum(dexp(x=sample, rate=theta, log=TRUE))
}

-- True value of $\theta$:

theta <- 5.73

-- Simulations:

thetaHat <- etaHat <- rep(NA, 1000)
for(i in 1:1000)
{  
  sample <- rexp(n=100, rate=theta)
  etaHat[i] <- nlm(f=minusloglik, p=0, sample=sample)$estimate
  thetaHat[i] <- exp(etaHat[i])
}

Question: Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?

  • Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?
  • Is the answer the same if $\theta$ denotes the variance of a normal distribution?

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in R$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Example:

-- Minus log likelihood for a sample from the Exp distribution with mean $\theta = \exp(\eta)$:

minusloglik <- function(eta, sample)
{
  theta <- exp(eta)
  - sum(dexp(x=sample, rate=theta, log=TRUE))
}

-- True value of $\theta$:

theta <- 5.73

-- Simulations:

thetaHat <- etaHat <- rep(NA, 1000)
for(i in 1:1000)
{  
  sample <- rexp(n=100, rate=theta)
  etaHat[i] <- nlm(f=minusloglik, p=0, sample=sample)$estimate
  thetaHat[i] <- exp(etaHat[i])
}

Question: Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in R$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Example:

-- Minus log likelihood for a sample from the Exp distribution with mean $\theta = \exp(\eta)$:

minusloglik <- function(eta, sample)
{
  theta <- exp(eta)
  - sum(dexp(x=sample, rate=theta, log=TRUE))
}

-- True value of $\theta$:

theta <- 5.73

-- Simulations:

thetaHat <- etaHat <- rep(NA, 1000)
for(i in 1:1000)
{  
  sample <- rexp(n=100, rate=theta)
  etaHat[i] <- nlm(f=minusloglik, p=0, sample=sample)$estimate
  thetaHat[i] <- exp(etaHat[i])
}

Question:

  • Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?
  • Is the answer the same if $\theta$ denotes the variance of a normal distribution?
added 644 characters in body
Source Link
user7064
  • 2.2k
  • 6
  • 26
  • 44

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in R$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Example:

-- Minus log likelihood for a sample from the Exp distribution with mean $\theta = \exp(\eta)$:

minusloglik <- function(eta, sample)
{
  theta <- exp(eta)
  - sum(dexp(x=sample, rate=theta, log=TRUE))
}

-- True value of $\theta$:

theta <- 5.73

-- Simulations:

thetaHat <- etaHat <- rep(NA, 1000)
for(i in 1:1000)
{  
  sample <- rexp(n=100, rate=theta)
  etaHat[i] <- nlm(f=minusloglik, p=0, sample=sample)$estimate
  thetaHat[i] <- exp(etaHat[i])
}

Question: Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in R$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Let $\theta > 0$ be some model parameter for which properties (bias, ...) of an estimate are studied via simulations.

For a given data set, an estimate $\hat{\theta}_i$ of $\theta$ can be obtained by maximising a likelihood function.

As $\theta$ is positive, however, I perform the maximisation over $\eta = \log(\theta) \in R$ and I set $\hat{\theta} = \exp(\hat{\eta})$.

After running $N$ simulations, how should I compute the mean value,

  • $\bar{\hat{\theta}} = \frac{1}{N} \sum_{i=1}^N \hat{\theta}_i$, or
  • $\bar{\hat{\theta}} = \exp(\frac{1}{N} \sum_{i=1}^N \hat{\eta}_i)$?

Example:

-- Minus log likelihood for a sample from the Exp distribution with mean $\theta = \exp(\eta)$:

minusloglik <- function(eta, sample)
{
  theta <- exp(eta)
  - sum(dexp(x=sample, rate=theta, log=TRUE))
}

-- True value of $\theta$:

theta <- 5.73

-- Simulations:

thetaHat <- etaHat <- rep(NA, 1000)
for(i in 1:1000)
{  
  sample <- rexp(n=100, rate=theta)
  etaHat[i] <- nlm(f=minusloglik, p=0, sample=sample)$estimate
  thetaHat[i] <- exp(etaHat[i])
}

Question: Should I summarise the results as mean(thetaHat) or as exp(mean(etaHat))?

edited body
Source Link
user7064
  • 2.2k
  • 6
  • 26
  • 44
Loading
Source Link
user7064
  • 2.2k
  • 6
  • 26
  • 44
Loading