Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Interesting node, Matt, particularly the notion of reporting on tension in threads. For kicks, I threw together a little code to see how well the binomial standard deviation would work as a measure of an individual post's tension.
# Binomial standard deviation, from PerlMonks node [477227] # Standard deviation = SQR{(N*p*(1-p)} # Represent upvotes as 1, downvotes as 0 (or vice-versa) sub b_stddev { my $N = @_ or return 0; my $p = (grep $_, @_) / $N; sqrt($N * $p * (1-$p)); } my @samples = (1, 3, 8, 20); for (map {my $x=$_; map [$x, $_], grep $x >= $_, @samples} @samples) { printf "%2d %2d: %3.4f\n", @$_, b_stddev((1) x $_->[0], (0) x $_->[1 +]); }
The results didn't appeal to me, because a lot of votes in one direction and just a few in the other can make for a comparatively high result. So using the stddev of reps in a thread as a measure of tension in the thread probably wouldn't appeal, either.

Possibly counter-intuitively, it is the nodes of low tension (and low rep) that I would like to have warnings for, while I think that threads of high tension are most likely to include trolls.


Caution: Contents may have been coded under pressure.

In reply to Re: monastery memory by Roy Johnson
in thread Troll Warning by Roy Johnson

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2024-04-24 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found