Talk:Stem-and-leaf plot: Difference between revisions

→‎Data set: new dataset?
No edit summary
(→‎Data set: new dataset?)
Line 39:
:: Agreed, and it's notable that this is a style of plotting that's fallen out of favour. From the perspective of RC tasks though, the main problem was that it was very poorly described in the first instance. We could do with a test dataset that forces correct handling of negative numbers too. –[[User:Dkf|Donal Fellows]] 15:07, 16 December 2009 (UTC)
 
:: Should I appear smug at this point? ;) Kevin, is this task still under development? From your comments here, it sounds like it's pretty much fixed. --[[User:Glennj|glennj]] 16:09, 16 December 2009 (UTC)
 
==Data set==
::: It needs a data set which is less sparse -- more obvious humps, and less unnecessary completely-blank stems. That's all. —[[User:Kevin Reid|Kevin Reid]] 17:05, 16 December 2009 (UTC)
Kevin, is this task still under development? From your comments here, it sounds like it's pretty much fixed. --[[User:Glennj|glennj]] 16:09, 16 December 2009 (UTC)
:::: Now that I'm back at work again, I'm again short on time for everything. See the data generator linked to in the class. Adding additional calls to genhump will add more humps. Tweaking the parameters will adjust the width, location, height and shape of the humps. Run it until a suitable dataset is found. Or provide several data sets, testing and highlighting different behaviors. --[[User:Short Circuit|Michael Mol]] 19:26, 16 December 2009 (UTC)
 
::: It needs a data set which is less sparse -- more obvious humps, and less unnecessary completely-blank stems. That's all. —[[User:Kevin Reid|Kevin Reid]] 17:05, 16 December 2009 (UTC)
:::: Now that I'm back at work again, I'm again short on time for everything. See the data generator linked to in the class. Adding additional calls to genhump will add more humps. Tweaking the parameters will adjust the width, location, height and shape of the humps. Run it until a suitable dataset is found. Or provide several data sets, testing and highlighting different behaviors. --[[User:Short Circuit|Michael Mol]] 19:26, 16 December 2009 (UTC)
::: Here is an alternative data set matching those specs:
<pre>176 86 160 210 76 205 186 67 154 192 96 187
83 110 112 90 247 91 108 93 88 133 159 104
109 173 167 52 225 73 82 198 114 69 183 166
59 209 74 267 74 211 118 68 105 221 67 233
243 109 226 66 179 201 61 84 93 83 181 88</pre>
Generated using:
<lang j> require 'stats/distribs/normal'
randomize=: ] /: 0 ?@$~ #
showStemLeaf dat=: (84 20,:184 40) ([: randomize ,@:(<.@:rnorm"1 0)) 30 30
┌──┬─────────────┐
│ 5│2 9 │
│ 6│1 6 7 7 8 9 │
│ 7│3 4 4 6 │
│ 8│2 3 3 4 6 8 8│
│ 9│0 1 3 3 6 │
│10│4 5 8 9 9 │
│11│0 2 4 8 │
│12│ │
│13│3 │
│14│ │
│15│4 9 │
│16│0 6 7 │
│17│3 6 9 │
│18│1 3 6 7 │
│19│2 8 │
│20│1 5 9 │
│21│0 1 │
│22│1 5 6 │
│23│3 │
│24│3 7 │
│25│ │
│26│7 │
└──┴─────────────┘</lang>
 
== "do better if you can"??? ==
892

edits