<p>A good discussion, with references for the mathematical justifications, is given in the textbook written by Henderson and Parmeter (2015, Chapter 2.5). See also the technical appendices of the textbook available online at:
<a href="https://www.the-smooth-operators.com/technical-appendixerratum" rel="nofollow noreferrer">https://www.the-smooth-operators.com/technical-appendixerratum</a></p>
<p>Henderson, D. and C. Parmeter, 2015, Applied Nonparametric Econometrics, Cambridge University Press.</p>
<p>To summarize the material exposed there: the bandwith can be calculated optimally in order to minimize either AMSE or AMISE. This yields the expression
<span class="math-container">$$ h_{opt} = g\left(f(x),f^{(2)}(x),R(f^{(2)}),R(k),\kappa_2(k) \right)\hspace{2mm} n^{-1/5} $$</span>
where the proportionality factor <span class="math-container">$g$</span> is specific to the objective that is minimized, <span class="math-container">$f$</span> denotes the density and <span class="math-container">$f^{(2)}(x)$</span> its second derivative,
<span class="math-container">$\kappa_2(k)$</span> is the second moment of the kernel function <span class="math-container">$k$</span>, and <span class="math-container">$R(f) = \int f(v)^2 dv$</span> represents the &quot;difficulty&quot; of a function <span class="math-container">$f$</span>.
There is no optimal value for this proportionality factor, but it can be calibrated for specific choices of the kernel and density functions. The values you give are obtained for the normal density and gaussian kernel. Further values are given by the authors in their Table 2.3.</p>

CC BY-SA 4.0
2022-07-04T12:49:55.460Z
Thank you for the answer. I did not see an explanation in the freely available technical appendix. Is there a method to obtain an answer that does not involve paying for the textbook?
Michael Gmeiner
CC BY-SA 4.0
2022-07-04T20:45:38.940Z
I have added a short paragraph... but the best alternative is to borrow the textbook at a library.
Bertrand
CC BY-SA 4.0
2022-06-30T08:00:59.957Z
2022-07-04T20:51:51.117Z
2022-07-04T20:51:51.117Z
Bertrand
<p>When using a Gaussian kernel to estimate the distribution of a Gaussian-distributed <span class="math-container">$x$</span>, the bandwidth that minimizes the mean integrated squared error is:</p>
<p><span class="math-container">$$h=\left(\frac{4 \hat{\sigma}^5}{3n}\right)^{\frac{1}{5}} $$</span></p>
<p>where <span class="math-container">$\hat{\sigma}$</span> is the estimated standard deviation of <span class="math-container">$x$</span> and <span class="math-container">$n$</span> is the sample size. I have seen the derivation of this result.</p>
<p>I am aware there are adjustments that use the inter-quartile range rather than <span class="math-container">$\hat{\sigma}$</span> and also that use <span class="math-container">$0.90$</span> rather than <span class="math-container">$1.06=\left(\frac{4}{3}\right)^{\frac{1}{5}}$</span>. I am aware that these adjustments are motivated by the fact that <span class="math-container">$x$</span> may not be normally distributed and may be skewed.</p>
<p>I have not seen mathematical justification for these adjustments or an explanation of why the adjustments are &quot;optimal&quot;. The adjustments feel arbitrary to me. Is there mathematical justification of these?</p>

CC BY-SA 4.0
2022-06-29T08:42:18.473Z
Consider moving this to Cross Validated for a better fit and a greater pool of experts on such topics.
Richard Hardy
CC BY-SA 4.0
2022-06-29T09:12:04.820Z
I asked on stats stack exchange and got nothing back. 
https://stats.stackexchange.com/questions/580248/mathematical-underpinnings-of-variations-on-silvermans-bandwidth
 I'm an economist and know other economists use kernels, so I thought it was worth trying here. I'm not offended if it is deemed to be off topic.
Michael Gmeiner
<econometrics>
Econometrics - Kernel Bandwidth Formula
Michael Gmeiner
# Econometrics - Kernel Bandwidth Formula

(Asked by: username_0 on 2022-06-29)

When using a Gaussian kernel to estimate the distribution of a Gaussian-distributed $x$, the bandwidth that minimizes the mean integrated squared error is:

$$h=\left(\frac{4 \hat{\sigma}^5}{3n}\right)^{\frac{1}{5}} $$

where $\hat{\sigma}$ is the estimated standard deviation of $x$ and $n$ is the sample size. I have seen the derivation of this result.

I am aware there are adjustments that use the inter-quartile range rather than $\hat{\sigma}$ and also that use $0.90$ rather than $1.06=\left(\frac{4}{3}\right)^{\frac{1}{5}}$. I am aware that these adjustments are motivated by the fact that $x$ may not be normally distributed and may be skewed.

I have not seen mathematical justification for these adjustments or an explanation of why the adjustments are "optimal". The adjustments feel arbitrary to me. Is there mathematical justification of these?

**Tags:** econometrics

> **Comments:**
> **username_1**: Consider moving this to Cross Validated for a better fit and a greater pool of experts on such topics.  
> **username_0**: I asked on stats stack exchange and got nothing back.  https://stats.stackexchange.com/questions/580248/mathematical-underpinnings-of-variations-on-silvermans-bandwidth  I'm an economist and know other economists use kernels, so I thought it was worth trying here. I'm not offended if it is deemed to be off topic.  

---

## 1 answers

### Answer by username_2 on 2022-06-30. Score: 3 | Accepted answer

A good discussion, with references for the mathematical justifications, is given in the textbook written by Henderson and Parmeter (2015, Chapter 2.5). See also the technical appendices of the textbook available online at:
<https://www.the-smooth-operators.com/technical-appendixerratum>

Henderson, D. and C. Parmeter, 2015, Applied Nonparametric Econometrics, Cambridge University Press.

To summarize the material exposed there: the bandwith can be calculated optimally in order to minimize either AMSE or AMISE. This yields the expression
$$ h\_{opt} = g\left(f(x),f^{(2)}(x),R(f^{(2)}),R(k),\kappa\_2(k) \right)\hspace{2mm} n^{-1/5} $$
where the proportionality factor $g$ is specific to the objective that is minimized, $f$ denotes the density and $f^{(2)}(x)$ its second derivative,
$\kappa\_2(k)$ is the second moment of the kernel function $k$, and $R(f) = \int f(v)^2 dv$ represents the "difficulty" of a function $f$.
There is no optimal value for this proportionality factor, but it can be calibrated for specific choices of the kernel and density functions. The values you give are obtained for the normal density and gaussian kernel. Further values are given by the authors in their Table 2.3.

> **Comments:**
> **username_0**: Thank you for the answer. I did not see an explanation in the freely available technical appendix. Is there a method to obtain an answer that does not involve paying for the textbook?  
> **username_2**: I have added a short paragraph... but the best alternative is to borrow the textbook at a library.  

---

