Alexa also uses Alexa certified websites into consideration, this is direct source traffic. For non Alexa certified website they use the script and it is called estimated matrices. Alexa combines the traffic and applies high intelligent statistical model to calculate rankings.