Talk:Statistics/Basic: Difference between revisions

m
changed spelling of a word.
(→‎Perl style: new section)
m (changed spelling of a word.)
 
(9 intermediate revisions by 5 users not shown)
Line 75:
(The comments above are notes to the talk page, and I would erase them before posting the above to the article.)
 
Needless to say, TMTOWTDI, but this seems more like idiomatic perl to me, and, at least to me, it's more readable. [[User:Flies 1|Flies 1]] 22:26, 5 March 2012 (UTC)
:I concur with the style tweaks, and would go so far as to initialize the array with <tt>(0) x 10</tt> instead of using a <tt>map</tt>. I also dislike the original's style of making <tt>for</tt> look like a function call when it's really a keyword, so I'm glad you're fixing that too. --[[User:TimToady|TimToady]] 00:02, 6 March 2012 (UTC)
::I have updated the code - the page now matches closely what I suggested above. Further improvements to style are welcome! [[User:Flies 1|Flies 1]] 22:06, 6 March 2012 (UTC)
 
== Bugs in Python Example ==
 
The previous example code had the following bugs
 
# Line 36 prints the value of i that was used in a list comprehension (line 35) not the original value of i in the outer loop, so the printed value (in Python 2.7) is the max value not the number of values, e.g. 10^7
# Runtime exceeds 2 minutes on a MacBook Pro. Probably not suitable for an example
 
So I reduced the maximum list allocated to 100,000 random values, and added a new index variable, j, to take care of the recycled variable i displaying the wrong value (and hanging the terminal update because the string was 10 MB long).
 
--[[User:Hobs|Hobs]] ([[User talk:Hobs|talk]]) 19:35, 8 April 2013 (UTC)
 
 
==Formulae made invisible for most browsers by under-tested cosmetic edits at 20:09, 21 June 2016 ==
 
Under-tested cosmetic edits made to the task page at 20:09, 21 June 2016, including the injection of spaces around expressions in &lt;math&gt; tags, have left the task description formulae completely invisible to all browsers which display the graphic file version of formulae rather than processing the MathML (this is, in fact, the majority of browsers). The MediaWiki processor does not currently expect such spaces, and generates syntactically ill-formed HTML if they are introduced. Other aspects of these cosmetic edits may further compound the problem. [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 10:06, 24 September 2016 (UTC)
 
:: Visibility of task description formulae now restored [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 18:58, 10 November 2016 (UTC)
 
== mean statistic ==
Using statistics to prove a point is just mean. &nbsp; &nbsp; --- anonymous