Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5004
| From | Andy Ross <andyr@wolfram.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Question on SmoothKernelDistribution, value of computed bandwidth? (vrs. 8.01) |
| Date | 2011-09-16 09:49 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j4v62k$c4j$1@smc.vnet.net> (permalink) |
On 9/15/2011 3:38 AM, kristoph wrote:
> Hi
>
> Regarding the function SmoothKernelDistribution I'm aware that it is
> possible to compute the kernel pdf of some data. In order to do so
> Mathematica computes the bandwidth parameter if it is not provided.
>
> I was wondering if it is possible to retrieve the value of the
> computed bandwidth parameter somehow. I was unable to do so, but I
> think it is possible since Mathematica is computing and using it in
> order to compute the kernel pdf.
>
> Does anyone have an idea? Thanks in advance for help.
>
> Here is an example:
>
> data=RandomReal[1,1000];
> dist= SmoothKernelDistribution[data,
> "LeastSquaresCrossValidation", "Epanechnikov"];
> Plot[PDF[dist, x], {x, -1, 1}, Filling -> Axis, Exclusions -> None]
>
>
>
>
There is an undocumented way to extract it. Try
dist["Bandwidth"]
Andy Ross
Wolfram Research
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Question on SmoothKernelDistribution, value of computed bandwidth? (vrs. 8.01) Andy Ross <andyr@wolfram.com> - 2011-09-16 09:49 +0000
csiph-web