• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Using Arrays

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys I have a quick question on my hw, I have found everything needed except the "unusual scores". this is the direction given:

Determine which of the grades, if any, are "unusual" in the sense that their corresponding z-score is < -2.0 or > +2.0. A z-score is computed as:




I know what the x bar and the s is, but I am unsure of what the first x is pertaining to. Can anyone give me a few tips?

Thanks

image004.gif
[Thumbnail for image004.gif]
 
Ranch Hand
Posts: 87
Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://en.wikipedia.org/wiki/Standard_score
 
Marshal
Posts: 79959
396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch

I would presume s means standard deviation, in which case you are assuming the marks are normally distributed, and you should really be given σ as its symbol
 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:I would presume s means standard deviation, in which case you are assuming the marks are normally distributed, and you should really be given σ as its symbol


Actually, looking at the formulas used, I think he does mean s. The stdDev function is dividing by N - 1, which means it's the sample standard deviation, rather than the standard deviation. And s is the conventional notation for that.
 
Cam Barley
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Matthew Brown wrote:

Campbell Ritchie wrote:I would presume s means standard deviation, in which case you are assuming the marks are normally distributed, and you should really be given σ as its symbol


Actually, looking at the formulas used, I think he does mean s. The stdDev function is dividing by N - 1, which means it's the sample standard deviation, rather than the standard deviation. And s is the conventional notation for that.



thanks for all the quick replies Yes it is the std dev for the sample grades. I was unsure how to write the array for the unusual scores, I didn't know if it should have a loop for the grades to see if any of them are unusual, anyone have a tip?

Thanks
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Cam Barley wrote:I didn't know if it should have a loop for the grades to see if any of them are unusual, anyone have a tip?


That's how I'd do it. Calculate the mean and ssd, assign them to variables, then look through the array checking the z-score for each one.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic