They extrapolate from data they get from carriers, and retail stores that sell iPhones. Maybe Apple is selling 100% iPhone X, and maybe they are selling 1% iPhone X, the analysts are just making the assumption that the product mix for people buying from Apple is the same as people buying from Verizon or Target....I doubt they are exactly the same, but I see no reason they should be wildly different.