From: Tava Eurdanceza on
Hello
I want to know how Adapting histfit.m to tfit.m?
I want to fitting my data using pdf t distribution
Thanks before
From: Wayne King on
"Tava Eurdanceza" <tava_cute(a)yahoo.com> wrote in message <hnpc76$op8$1(a)fred.mathworks.com>...
> Hello
> I want to know how Adapting histfit.m to tfit.m?
> I want to fitting my data using pdf t distribution
> Thanks before

Hi Tava, histfit() already supports the t distribution. You can use the 'tlocationscale' option in histfit.

R = trnd(4,400,1);
histfit(R,15,'tlocationscale')

Hope that helps,
Wayne
From: Tava Eurdanceza on
"Wayne King" <wmkingty(a)gmail.com> wrote in message <hnq3fa$i3n$1(a)fred.mathworks.com>...
> "Tava Eurdanceza" <tava_cute(a)yahoo.com> wrote in message <hnpc76$op8$1(a)fred.mathworks.com>...
> > Hello
> > I want to know how Adapting histfit.m to tfit.m?
> > I want to fitting my data using pdf t distribution
> > Thanks before
>
> Hi Tava, histfit() already supports the t distribution. You can use the 'tlocationscale' option in histfit.
>
> R = trnd(4,400,1);
> histfit(R,15,'tlocationscale')
>
> Hope that helps,
> Wayne


Thanks for your answer Sir. But what the mean about 15 in histfit(R,15,'tlocationscale')?
From: Wayne King on
"Tava Eurdanceza" <tava_cute(a)yahoo.com> wrote in message <hpgsg7$ck8$1(a)fred.mathworks.com>...
> "Wayne King" <wmkingty(a)gmail.com> wrote in message <hnq3fa$i3n$1(a)fred.mathworks.com>...
> > "Tava Eurdanceza" <tava_cute(a)yahoo.com> wrote in message <hnpc76$op8$1(a)fred.mathworks.com>...
> > > Hello
> > > I want to know how Adapting histfit.m to tfit.m?
> > > I want to fitting my data using pdf t distribution
> > > Thanks before
> >
> > Hi Tava, histfit() already supports the t distribution. You can use the 'tlocationscale' option in histfit.
> >
> > R = trnd(4,400,1);
> > histfit(R,15,'tlocationscale')
> >
> > Hope that helps,
> > Wayne
>
>
> Thanks for your answer Sir. But what the mean about 15 in histfit(R,15,'tlocationscale')?


Hi Tava, 15 is the number of bins used in constructing the histogram, see

>>doc histfit

Wayne
From: Tava Eurdanceza on
"Wayne King" <wmkingty(a)gmail.com> wrote in message <hphl6s$rei$1(a)fred.mathworks.com>...
> "Tava Eurdanceza" <tava_cute(a)yahoo.com> wrote in message <hpgsg7$ck8$1(a)fred.mathworks.com>...
> > "Wayne King" <wmkingty(a)gmail.com> wrote in message <hnq3fa$i3n$1(a)fred.mathworks.com>...
> > > "Tava Eurdanceza" <tava_cute(a)yahoo.com> wrote in message <hnpc76$op8$1(a)fred.mathworks.com>...
> > > > Hello
> > > > I want to know how Adapting histfit.m to tfit.m?
> > > > I want to fitting my data using pdf t distribution
> > > > Thanks before
> > >
> > > Hi Tava, histfit() already supports the t distribution. You can use the 'tlocationscale' option in histfit.
> > >
> > > R = trnd(4,400,1);
> > > histfit(R,15,'tlocationscale')
> > >
> > > Hope that helps,
> > > Wayne
> >
> >
> > Thanks for your answer Sir. But what the mean about 15 in histfit(R,15,'tlocationscale')?
>
>
> Hi Tava, 15 is the number of bins used in constructing the histogram, see
>
> >>doc histfit
>
> Wayne

oh..i see. Thanks so much Sir. But can we not use the number of bins? In order for the number of bins is determined automatically by matlab

Tava