Forum for Science, Industry and Business

Sponsored by:     3M 
Search our Site:


Airfare analyzer could save big bucks by advising when to buy tickets


’Hamlet’ algorithm answers the question: ’To buy, or not to buy?’

It’s a classic dilemma for air travelers in today’s world of wildly varying ticket prices – should you purchase now if the rate seems reasonable, or wait for a better deal and take the risk that the price will go up?

Researchers at the University of Washington and the University of Southern California appear to have taken out some of the uncertainty with a new computer program that approaches a 90 percent score in saving money by predicting air fares.

"If you’re on an airplane and look around at your fellow passengers, probably every single person on that plane has paid a different price," said Oren Etzioni, associate professor in the Department of Computer Science & Engineering in the UW’s College of Engineering. On one flight studied, the ticket price varied by more than $2,000, depending on when the purchase was made.

"It’s the same product, but people are paying radically different prices," he said. "So ’to buy or not to buy’ is the question – that’s why we named our program ’Hamlet.’"

Initial testing indicates that Hamlet does a good job of edging things toward the consumer’s side of the equation.

During a 41-day pilot run, the algorithm saved 607 simulated passengers a total of $283,904 on airline fares by advising when to buy and when to postpone purchases. If one could predict the future and had perfect knowledge of how the ticket prices would vary, the greatest possible savings was $320,572. That means Hamlet’s savings were 88.6 percent of optimal.

Put another way, the algorithm saved an average of 27.1 percent per simulated passenger in cases where savings were possible. In a number of cases, savings were not possible because the virtual passenger tried to buy a ticket too close to the departure date. Etzioni and his colleagues at the UW and USC have filed for a patent on the algorithm and the approach.

Airlines are famous for raising and lowering fares in an attempt to maximize revenue. It’s an issue that many service-oriented businesses face. If you have a standing inventory – passenger seats, hotel rooms, rental cars – you want to sell as much of that inventory as possible and may decide to do a promotion if some of it is standing empty. And airlines have become among the most sophisticated users of this so-called "dynamic pricing" to get the most out of their product, using algorithms that are closely guarded as trade secrets to vary pricing.

That leaves the traveler at a distinct disadvantage, Etzioni said.

"The airlines have a bunch of high-powered consultants who work with them to figure out the algorithm in the back room," he said. "We’re looking at this from the consumer’s point of view. Can we help consumers save money?"

To answer that question, Etzioni had to design an algorithm that could accurately predict what the airlines’ algorithms would do, without having access to the information the airlines use to drive their pricing. The key, as it turns out, is the World Wide Web. "That’s really what makes this possible," Etzioni said. "All of the prices are available on the Web now."

Hamlet uses a combination of techniques to find patterns in the variation of prices over time. But before the algorithm could work its predictive magic, the researchers had to gather the data from which Hamlet could "learn."

For that, Etzioni teamed up with Craig Knoblock, a colleague with the Information Sciences Institute at the University of Southern California.

"They have all the machinery for gathering this kind of information on the Web," Etzioni said.

Researchers built a data-mining program to collect pricing information directly from the Web, store it in a database and anticipate price changes. Data mining is the process of discovering patterns by sifting through large volumes of information. For the purposes of the study, the researchers restricted themselves to two non-stop flights – Los Angeles to Boston and Seattle to Washington, D.C. They looked at six airlines on those routes, gathering pricing data every three hours.

In examining how the fares behaved, they found that the price of particular flights changed as often as seven times a day. Over time, the range in prices could be extreme – for one flight on the LA to Boston route, for example, the high was $2,524 for a round trip ticket, compared to a brief low of $275. The high from Seattle to Washington, D.C., was $1,668 compared to a low of $281.

"Look how big those jumps are," Etzioni said. "If you were going from Los Angeles to Boston and could buy in that window when the price dropped, you could save more than $2,000 on the ticket price. The potential savings are huge." While the airlines aren’t likely to welcome Hamlet, Etzioni believes their options for retaliation will be somewhat limited. "We’re looking at prices that are available to people," Etzioni said. "If the airlines start playing with the prices to trick us, they also have the potential of shooting themselves in the foot." In other words, the prices are juggled to maximize profits, and if airlines manipulate them to obfuscate things for algorithms like Hamlet, they are also changing their chance of selling a ticket.

"I would never underestimate the cleverness of another party," Etzioni added. "But their hands are somewhat tied."

Also participating in the research were graduate students Alexander Yates from the UW and Rattapoom Tuchinda from USC.

For more information, contact Etzioni at (206) 685-3035 or For a copy of a more detailed, scholarly paper on Hamlet, contact Etzioni or Rob Harrill at

Rob Harrill | EurekAlert!
Further information:

More articles from Information Technology:

nachricht Next Generation Cryptography
20.03.2018 | Fraunhofer-Institut für Sichere Informationstechnologie SIT

nachricht TIB’s Visual Analytics Research Group to develop methods for person detection and visualisation
19.03.2018 | Technische Informationsbibliothek (TIB)

All articles from Information Technology >>>

The most recent press releases about innovation >>>

Die letzten 5 Focus-News des innovations-reports im Überblick:

Im Focus: Space observation with radar to secure Germany's space infrastructure

Satellites in near-Earth orbit are at risk due to the steady increase in space debris. But their mission in the areas of telecommunications, navigation or weather forecasts is essential for society. Fraunhofer FHR therefore develops radar-based systems which allow the detection, tracking and cataloging of even the smallest particles of debris. Satellite operators who have access to our data are in a better position to plan evasive maneuvers and prevent destructive collisions. From April, 25-29 2018, Fraunhofer FHR and its partners will exhibit the complementary radar systems TIRA and GESTRA as well as the latest radar techniques for space observation across three stands at the ILA Berlin.

The "traffic situation" in space is very tense: the Earth is currently being orbited not only by countless satellites but also by a large volume of space...

Im Focus: Researchers Discover New Anti-Cancer Protein

An international team of researchers has discovered a new anti-cancer protein. The protein, called LHPP, prevents the uncontrolled proliferation of cancer cells in the liver. The researchers led by Prof. Michael N. Hall from the Biozentrum, University of Basel, report in “Nature” that LHPP can also serve as a biomarker for the diagnosis and prognosis of liver cancer.

The incidence of liver cancer, also known as hepatocellular carcinoma, is steadily increasing. In the last twenty years, the number of cases has almost doubled...

Im Focus: Researchers at Fraunhofer monitor re-entry of Chinese space station Tiangong-1

In just a few weeks from now, the Chinese space station Tiangong-1 will re-enter the Earth's atmosphere where it will to a large extent burn up. It is possible that some debris will reach the Earth's surface. Tiangong-1 is orbiting the Earth uncontrolled at a speed of approx. 29,000 km/h.Currently the prognosis relating to the time of impact currently lies within a window of several days. The scientists at Fraunhofer FHR have already been monitoring Tiangong-1 for a number of weeks with their TIRA system, one of the most powerful space observation radars in the world, with a view to supporting the German Space Situational Awareness Center and the ESA with their re-entry forecasts.

Following the loss of radio contact with Tiangong-1 in 2016 and due to the low orbital height, it is now inevitable that the Chinese space station will...

Im Focus: Alliance „OLED Licht Forum“ – Key partner for OLED lighting solutions

Fraunhofer Institute for Organic Electronics, Electron Beam and Plasma Technology FEP, provider of research and development services for OLED lighting solutions, announces the founding of the “OLED Licht Forum” and presents latest OLED design and lighting solutions during light+building, from March 18th – 23rd, 2018 in Frankfurt a.M./Germany, at booth no. F91 in Hall 4.0.

They are united in their passion for OLED (organic light emitting diodes) lighting with all of its unique facets and application possibilities. Thus experts in...

Im Focus: Mars' oceans formed early, possibly aided by massive volcanic eruptions

Oceans formed before Tharsis and evolved together, shaping climate history of Mars

A new scenario seeking to explain how Mars' putative oceans came and went over the last 4 billion years implies that the oceans formed several hundred million...

All Focus news of the innovation-report >>>



Industry & Economy
Event News

New solar solutions for sustainable buildings and cities

23.03.2018 | Event News

Virtual reality conference comes to Reutlingen

19.03.2018 | Event News

Ultrafast Wireless and Chip Design at the DATE Conference in Dresden

16.03.2018 | Event News

Latest News

For graphite pellets, just add elbow grease

23.03.2018 | Materials Sciences

Unique communication strategy discovered in stem cell pathway controlling plant growth

23.03.2018 | Agricultural and Forestry Science

Sharpening the X-ray view of the nanocosm

23.03.2018 | Physics and Astronomy

Science & Research
Overview of more VideoLinks >>>