MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Normality test

  • To: mathgroup at
  • Subject: [mg107100] Re: Normality test
  • From: Ray Koopman <koopman at>
  • Date: Tue, 2 Feb 2010 06:54:41 -0500 (EST)
  • References: <hk8nns$8jv$>

On Feb 2, 12:28 am, michael partensky <parten... at> wrote:
> Hi.
> I wonder if anybody knows a function similar to qqnorm(data) from *R*,
> producing a normal scores plot, or some related tools in M. for testing
> normality of data?
> Thanks
> Michael Partenskii

qqnorm[y_] := Block[
 {n = Length@y, m = Mean@y, s = StandardDeviation@y, x},
 x = InverseErf[Range[1-n,n-1,2]/n]*Sqrt[2.];
  PlotRange->All, Frame->True, Axes->None, AspectRatio->1,
  FrameLabel->{"Theoretical Standard Normal Quantiles",
               "Observed Quantiles"}]]

  • Prev by Date: matrix problem
  • Next by Date: Re: matrix
  • Previous by thread: Normality test
  • Next by thread: Re: Re: Normality test