LT Ratings Details Script

ForumHacking LibraryThing

Melde dich bei LibraryThing an, um Nachrichten zu schreiben.

LT Ratings Details Script

Dieses Thema ruht momentan. Die letzte Nachricht liegt mehr als 90 Tage zurück. Du kannst es wieder aufgreifen, indem du eine neue Antwort schreibst.

1brightcopy
Mrz. 8, 2012, 10:51 pm

http://userscripts.org/scripts/show/127912

Adds Median, Mode(adj) and Members lines to the green Ratings box on work pages.

Median is the "middle" value in the set of ratings. If there are two middle value, the mean of these two values is taken.

Mode(adj) is a the most often used rating or ratings. Here it is computed in a somewhat unscientific way, but I think it works out for the best for something like this. Half-stars are kind of funky since most people don't use them (either because they don't like them or they don't realize they even exist). But they wreak havoc with a mode calculation. So I'm making an adjustment that gets rid of them for the mode by giving half of them to the score below and half to the score above. For a single half-star, it only gives half the users to the score above and dumps the other half since there is no such thing as a zero star rating. For a multi-modal result, it displays the star graphic for the first mode and lists the values in square brackets.

Members is the number of members that have ratings for this work.

2birder4106
Bearbeitet: Mrz. 9, 2012, 11:36 am

Hello Brightcopy

Thanks for your script. I have been looking for stats like this for a long time.

Could you please explain me Median.
As I understood your example, there is a list with 9 items (1 star to 5 stars). So I was expecting the median value as 3.
4 values below and 4 values over the middle value of the list.

Could you please explain.

3TimSharrock
Mrz. 9, 2012, 9:18 am

There are 322 ratings below 4.5, 49 at 4.5, and 294 above, so the median is in the 4.5 bucket

4birder4106
Mrz. 9, 2012, 10:06 am

>3 TimSharrock:

Thank you. Now I got it.
Oops. It's the point of view.

5Louve_de_mer
Mrz. 9, 2012, 11:16 am

> 1. brightcopy : Nice feature ! Thanks.