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:

All articles from Information Technology >>>

The most recent press releases about innovation >>>

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

Im Focus: Light-driven atomic rotations excite magnetic waves

Terahertz excitation of selected crystal vibrations leads to an effective magnetic field that drives coherent spin motion

Controlling functional properties by light is one of the grand goals in modern condensed matter physics and materials science. A new study now demonstrates how...

Im Focus: New 3-D wiring technique brings scalable quantum computers closer to reality

Researchers from the Institute for Quantum Computing (IQC) at the University of Waterloo led the development of a new extensible wiring technique capable of controlling superconducting quantum bits, representing a significant step towards to the realization of a scalable quantum computer.

"The quantum socket is a wiring method that uses three-dimensional wires based on spring-loaded pins to address individual qubits," said Jeremy Béjanin, a PhD...

Im Focus: Scientists develop a semiconductor nanocomposite material that moves in response to light

In a paper in Scientific Reports, a research team at Worcester Polytechnic Institute describes a novel light-activated phenomenon that could become the basis for applications as diverse as microscopic robotic grippers and more efficient solar cells.

A research team at Worcester Polytechnic Institute (WPI) has developed a revolutionary, light-activated semiconductor nanocomposite material that can be used...

Im Focus: Diamonds aren't forever: Sandia, Harvard team create first quantum computer bridge

By forcefully embedding two silicon atoms in a diamond matrix, Sandia researchers have demonstrated for the first time on a single chip all the components needed to create a quantum bridge to link quantum computers together.

"People have already built small quantum computers," says Sandia researcher Ryan Camacho. "Maybe the first useful one won't be a single giant quantum computer...

Im Focus: New Products - Highlights of COMPAMED 2016

COMPAMED has become the leading international marketplace for suppliers of medical manufacturing. The trade fair, which takes place every November and is co-located to MEDICA in Dusseldorf, has been steadily growing over the past years and shows that medical technology remains a rapidly growing market.

In 2016, the joint pavilion by the IVAM Microtechnology Network, the Product Market “High-tech for Medical Devices”, will be located in Hall 8a again and will...

All Focus news of the innovation-report >>>



Event News

#IC2S2: When Social Science meets Computer Science - GESIS will host the IC2S2 conference 2017

14.10.2016 | Event News

Agricultural Trade Developments and Potentials in Central Asia and the South Caucasus

14.10.2016 | Event News

World Health Summit – Day Three: A Call to Action

12.10.2016 | Event News

Latest News

Oasis of life in the ice-covered central Arctic

24.10.2016 | Earth Sciences

‘Farming’ bacteria to boost growth in the oceans

24.10.2016 | Life Sciences

Light-driven atomic rotations excite magnetic waves

24.10.2016 | Physics and Astronomy

More VideoLinks >>>