Hi
while processing some internal va statistics I came across a discrepancy in the average pilot rating.
When I retrieve the pilot's data via XML interface (getPilotData) I recieve the absolute numbers for rating and flights.
My assumption now is:
avg rating = rating / flights which for example is: 19750 / 201 = 98.25871 %
but on the FSA website the avg. rating for this pilot is 98.9%
Where is my fault?
How is avg. rating calculated?
Moderator: FSAirlines Staff
Re: How is avg. rating calculated?
As I recall, it is a little more complex.
I believe it is:
Average Rating= (# of flights at 100*100)x(# of flights at 95*95)x(# of flights at 90*90)x(# of flights at 85*85) and so on, all divided by (total # of flights x 100)
I believe it is:
Average Rating= (# of flights at 100*100)x(# of flights at 95*95)x(# of flights at 90*90)x(# of flights at 85*85) and so on, all divided by (total # of flights x 100)
Matt-FSAirlines DB Admin
-
- FSAirlines Developer
- Posts: 1564
- Joined: Sun Sep 25, 2005 10:40 am
- Location: Munich, Germany
- Contact:
Re: How is avg. rating calculated?
Hi Jörg,
Your calculations are correct, I guess the problem is the training flights. On our website we exclude the ratings from training-flights.
Your calculations are correct, I guess the problem is the training flights. On our website we exclude the ratings from training-flights.
Konrad - FSAirlines Developer
Re: How is avg. rating calculated?
Is there an easy way to exclude them too in my calculations? I mean without browsing all past flights of a pilot.