Pools profitability table

hello everyone, I see those tables all the time but still don’t know how they calculate those, does anyone know?

and does it really matter if the pool has all red/green arrows or it’s just a bad/good luck? (personally I am on the pool with almost all green arrows and everything is cool but still curious)