Simon Gleave has been crunching the Olympic numbers for four years, putting them through a data-processing program as the head of analysis for US-based Gracenote, a sports and entertainment data provider.
"In terms of medal-count and order, it's going to be close to what we have," said Gleave, who in 2012, using a less sophisticated program, predicted within four medals the results of 16 of the top 20 teams.
Gleave will issue updates again in June, July and August, just days before the Aug. 5 opening. He expects a few minor changes, but nothing major.
Gleave is picking the United States to top the table with 42 gold and 102 overall. China will be second with 31 gold and 78 overall, which is the same 1-2 order as London four years ago. The next teams in order of gold are: Russia (22), Australia (18), Britain (17), Germany (15), Japan (12), South Korea (12), France (10) and the host-country Brazil (9).
"You could look at this as if these are the stories before they happen," Gleave said in an interview with The Associated Press.
For years, Italian Luciano Barra has predicted the medal count, basing his results on world-championships results leading up to the games.
Gleave has gone several steps beyond. He tracks world championships, grand prix events, grand slams and even some continental championships — then gives more weight to the most recent events, and the most important events.
Although Gleave has Russia placing third in the gold-medal and overall standings, some Russian athletes could be banned from the games over a doping scandal.
"It's a bit difficult to know with Russia at the moment," Gleave said. "We don't know the sports they are going to be competing in with all the stuff that's been going on around Russia."
Gleave also has Phelps down for six more medals — five gold. He's picking him to win gold in the 100- and 200-meter butterfly and the 200-meter individual medley. He's had to guess on which relays Phelps will swim, but he picks him for gold in the 4x100 medley and 4x200 freestyle. And he figures he'll get bronze in the 4x100 freestyle.
"We are speculating to an extent on the relays," Gleave said. "But I don't think that it's a wild thing to guess."
A few other highlights from Gleave's predictions:
— American gymnast Simone Biles will win four gold medals, and one silver.
— Australian swimmer Emily Seebohm will win three golds and a silver.
— Chinese table-tennis star Ma Long will win two golds.
— American swimmer Katie Ledecky will take four gold medals.
— Brazil will set a national record with 25 medals overall and nine gold, taking advantage of being the host nation.
— Argentina will win only two medals, its worst performance since 1992 in Barcelona when it won only one.
— Spain's medal total will fall for the fourth straight Olympics.
The predictions are fun for fans, but they also make money.
Gleave said Gracenote sells its data to national Olympic committees, including the United States, Australia and Britain. It also sells to media clients like the American television network CBS, and Canada's CBC.
"We provide them with data, and they use it in their decision-making," Gleave said.
Gleave laughed when he was told he was taking all the suspense out of the Olympics.
"As we all know, sport doesn't always work the way we expect it to," he said.