Although the following is fairly lengthy, it is still a somewhat simplified explanation, as it doesn’t get into the mathematics at all and probably skips over a few special cases.
The ratings system divides players into several types:
Those who have no pre-event rating, for whom some pre-event approximation is made based on other information, such as a rating under another ratings system (not necessarily a US Chess ratings system) or the player’s age. This includes deciding how many games to based this approximation on, which can be as few as zero. Then this information is used to produce a more refined approximation using the special formula. (This is called the stage 3 rating, and is only computed for those players who were unrated prior to this event, for all other players their stage 3 rating is their pre-event rating.)
Once this is done for all unrated players, each player will fall into one of the following categories, which determines what formula is used to compute a new rating.
Those who have a pre-event rating based on 8 games or less, for whom the ‘special formula’ is used.
This category also includes players who have won all their games or lost all their games in their previous events. All we really know about these players is that the ones who have won all their games are PROBABLY stronger than anyone they’ve played so far and the ones who have lost all their games are PROBABLY weaker than anyone they’ve played so far. So the special formula is still used, regardless of how many games this player has from previous events.
Those who have a pre-event rating based on 9 or more games, for whom the ‘standard formula’ is used. These are the only players who receive bonus points.
Note that neither of these formulas match the usual definition of having an ‘established’ rating. That’s because the ratings formula doesn’t utilize that information. It keeps track of whether or not a rating is established (currently defined as a player who has played 26 or more rated games that were not all wins or all losses), but that doesn’t enter into how ratings are computed.
When computing a player’s new rating, it is done in two passes, as Larry noted. In the first stage, each player’s ‘stage 4’ rating is computed, using the appropriate formula (standard or special) Then that set of ratings is used as your opponents’ ratings for another round of computations.
This has an effect upon your final or stage 5 rating, because it changes the expected result based on the difference in ratings between you and each opponent. For example, if you played someone with a 1600 rating and their preliminary (stage 4) post-event rating is 1800, then if you lost the game the number of ratings points you would lose goes down a little, because your expected score goes down, and if you won the game it goes up a little, again, because your expected score goes down a little. (A draw is a bit more complicated.) But if you played someone with an 1800 rating and their preliminary post-event rating is 1600, then the opposite occurs.
Mark Glickman once told me that during the development of the current formulas, around 2000, they tried making more than 2 passes, and the system would sometimes start to oscillate. (Your rating might go up 10 points in pass 2, but go up only a total of 8 points in pass 3 and then 11 points in pass 4, up 9 points in pass 5, etc.) They settled on making just two passes.