Skip to main content
grammar
Source Link
conjectures
  • 4.3k
  • 25
  • 38

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$. What then happens if we add a small number to our parameter e.g. $\theta' = \theta + 1/100000$? We get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when we have a requirement that $\theta \geq 0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

EDIT: I focused on the why here because it's not enough to show that a function is not differentiable everywhere (a topic on which CV can offer nothing more than wikipedia, which the OP may wish to look at also). Neal's comment is that the set of discontinuties must have zero probability.

This is hand waving equivalent to saying that one is going to explore a room while blindfolded by taking tentative steps. If the room is booby trapped, but the booby traps are sufficiently sparse, then we'll get lucky and never step on one. If the booby traps are not sufficiently sparse then if we wander around long enough we'll get blown up.

Where being blown up means getting divide by zeros, log of zero, or some other, weirder possibilities.

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$. What then happens if we add a small number to our parameter e.g. $\theta' = \theta + 1/100000$? We get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when we have a requirement that $\theta \geq 0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$. What then happens if we add a small number to our parameter e.g. $\theta' = \theta + 1/100000$? We get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when we have a requirement that $\theta \geq 0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

EDIT: I focused on the why here because it's not enough to show that a function is not differentiable everywhere (a topic on which CV can offer nothing more than wikipedia, which the OP may wish to look at also). Neal's comment is that the set of discontinuties must have zero probability.

This is hand waving equivalent to saying that one is going to explore a room while blindfolded by taking tentative steps. If the room is booby trapped, but the booby traps are sufficiently sparse, then we'll get lucky and never step on one. If the booby traps are not sufficiently sparse then if we wander around long enough we'll get blown up.

Where being blown up means getting divide by zeros, log of zero, or some other, weirder possibilities.

grammar
Source Link
conjectures
  • 4.3k
  • 25
  • 38

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$ and what. What then happens if youwe add a small number to our parameter e.g. $\theta' = \theta + 1/100000$, we? We get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when we have a requirement that $\theta \geq 0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$ and what happens if you add a small number e.g. $\theta' = \theta + 1/100000$, we get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when we have a requirement that $\theta \geq 0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$. What then happens if we add a small number to our parameter e.g. $\theta' = \theta + 1/100000$? We get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when we have a requirement that $\theta \geq 0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

added 5 characters in body
Source Link
conjectures
  • 4.3k
  • 25
  • 38

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$ and what happens if you add a small number e.g. $\theta' = \theta + 1/100000$, we get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when we have a requirement that $\theta>0$$\theta \geq 0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$ and what happens if you add a small number e.g. $\theta' = \theta + 1/100000$, we get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when $\theta>0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

The following is a rough exposition of what the requirement for differentiability on the parameters means here.

$U$ involves the log posterior up to an additive constant where $\theta$ are the model parameters. The requirement for differentiability is essentially that one can make a miniscule change to a parameter $\theta$ and this will return a small change in the posterior $U(\theta)$.

Problems of this sort often crop up in some important cases:

  • Parameters which can take on only a few discrete values. E.g. counts, categories, binary variables. To see think about what happens if we have $U(\theta)$ defined on $\theta \in \{\ 0, 1\}$ and what happens if you add a small number e.g. $\theta' = \theta + 1/100000$, we get a value which is no longer valid to even plug into our $U$.
  • Parameters on intervals with at least one boundary, e.g lengths, times etc. (what happens if we take a small step to the left at $\theta=0$ when we have a requirement that $\theta \geq 0$?)

HMC needs this because it operates by adding small changes to $\theta$. The differentiability requirement is, then, roughly that the probability won't fall off a cliff if we make a small change to $\theta$.

Work-arounds exist for many such problems, but will generally require reparameterisation of the likelihood and prior.

Source Link
conjectures
  • 4.3k
  • 25
  • 38
Loading