Suranga Kasthurirathne
2012-Mar-01 17:30 UTC
[R] Standard variance / devistion clarification
Dear gurus, Im a newbie, and I want to ask a very general question. Assume that I have a set of numbers as follows, 1, 1, 2, 10, 100, 10,1>From these, I need to identify which number is the most different ascompared to others. (in this case, it will be 100, since its way larger than the other numbers). It doesnt have to be specifically this way, but I need to identify which number(s) are most different compared to the others. Any idea as to what I need to do this ? Im a math noob, so I'm also going to need to ask it this is called 'standard deviation' or 'variance' :-) -- Best Regards, Suranga [[alternative HTML version deleted]]
On Mar 1, 2012, at 12:30 PM, Suranga Kasthurirathne wrote:> Dear gurus, > > Im a newbie, and I want to ask a very general question. > Assume that I have a set of numbers as follows, > > 1, 1, 2, 10, 100, 10,1 > >> From these, I need to identify which number is the most different as > compared to others. (in this case, it will be 100, since its way > larger > than the other numbers). It doesnt have to be specifically this way, > but I > need to identify which number(s) are most different compared to the > others. > > Any idea as to what I need to do this ? Im a math noob, so I'm also > going > to need to ask it this is called 'standard deviation' or > 'variance' :-)You are requested not to use rhelp as a statistics Q&A list. It was not set up to remediate gaps in statistics education. There are other websites and perhaps mailing list whose purposes would be a better fit for this question. -- David Winsemius, MD West Hartford, CT
No it's an outlier problem, I think. If you have a fairly small number of sets of these numbers simple visual inspection of a boxplot for each set would probably acomplish what you want. Try this in R for an example. Just paste the next two lines into R xx <- c(1, 1, 2, 10, 100, 10,1) boxplot(xx) After this it gets more complicated, but it you're new here let's take it one step at a time John Kane Kingston ON Canada> -----Original Message----- > From: surangakas at gmail.com > Sent: Thu, 1 Mar 2012 09:30:59 -0800 > To: r-help at r-project.org > Subject: [R] Standard variance / devistion clarification > > Dear gurus, > > Im a newbie, and I want to ask a very general question. > Assume that I have a set of numbers as follows, > > 1, 1, 2, 10, 100, 10,1 > > >From these, I need to identify which number is the most different as > compared to others. (in this case, it will be 100, since its way larger > than the other numbers). It doesnt have to be specifically this way, but > I > need to identify which number(s) are most different compared to the > others. > > Any idea as to what I need to do this ? Im a math noob, so I'm also going > to need to ask it this is called 'standard deviation' or 'variance' :-) > > -- > Best Regards, > > Suranga > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.____________________________________________________________ Send your photos by email in seconds... TRY FREE IM TOOLPACK at http://www.imtoolpack.com/default.aspx?rc=if3 Works in all emails, instant messengers, blogs, forums and social networks.
Suranga Kasthurirathne
2012-Mar-02 03:43 UTC
[R] Standard variance / devistion clarification
On 2 Mar 2012 09:12, "Suranga Kasthurirathne" <surangakas@gmail.com> wrote:> Hi, thank you very much for the advice. I'll try it out, and see where I > can take it from there. > > @david, your point is noted. I will avoid such mails in the future. > On 2 Mar 2012 04:27, "Peter Ehlers" <ehlers@ucalgary.ca> wrote: > >> On 2012-03-01 13:52, John Kane wrote: >> >>> No it's an outlier problem, I think. >>> >>> If you have a fairly small number of sets of these numbers simple visual >>> inspection of a boxplot for each set would probably acomplish what you want. >>> >>> Try this in R for an example. Just paste the next two lines into R >>> >>> xx<- c(1, 1, 2, 10, 100, 10,1) >>> boxplot(xx) >>> >> >> For graphical analysis, I would prefer plot(xx, type="h"). >> But "most different as compared to the others" is not >> well-defined. Possibly something like scale(xx) would help. >> >> Peter Ehlers >> >> >>> After this it gets more complicated, but it you're new here let's take >>> it one step at a time >>> >>> >>> John Kane >>> Kingston ON Canada >>> >>> >>> -----Original Message----- >>>> From: surangakas@gmail.com >>>> Sent: Thu, 1 Mar 2012 09:30:59 -0800 >>>> To: r-help@r-project.org >>>> Subject: [R] Standard variance / devistion clarification >>>> >>>> Dear gurus, >>>> >>>> Im a newbie, and I want to ask a very general question. >>>> Assume that I have a set of numbers as follows, >>>> >>>> 1, 1, 2, 10, 100, 10,1 >>>> >>>> > From these, I need to identify which number is the most different as >>>> compared to others. (in this case, it will be 100, since its way larger >>>> than the other numbers). It doesnt have to be specifically this way, but >>>> I >>>> need to identify which number(s) are most different compared to the >>>> others. >>>> >>>> Any idea as to what I need to do this ? Im a math noob, so I'm also >>>> going >>>> to need to ask it this is called 'standard deviation' or 'variance' :-) >>>> >>>> -- >>>> Best Regards, >>>> >>>> Suranga >>>> >>>> [[alternative HTML version deleted]] >>>> >>>> ______________________________**________________ >>>> R-help@r-project.org mailing list >>>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> >>>> PLEASE do read the posting guide >>>> http://www.R-project.org/**posting-guide.html<http://www.R-project.org/posting-guide.html> >>>> and provide commented, minimal, self-contained, reproducible code. >>>> >>> >>> ______________________________**______________________________ >>> Send your photos by email in seconds... >>> TRY FREE IM TOOLPACK at http://www.imtoolpack.com/**default.aspx?rc=if3<http://www.imtoolpack.com/default.aspx?rc=if3> >>> Works in all emails, instant messengers, blogs, forums and social >>> networks. >>> >>> ______________________________**________________ >>> R-help@r-project.org mailing list >>> https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> >>> PLEASE do read the posting guide http://www.R-project.org/** >>> posting-guide.html <http://www.R-project.org/posting-guide.html> >>> and provide commented, minimal, self-contained, reproducible code. >>> >> >>[[alternative HTML version deleted]]