He was born and raised in Sri Lanka and came to the United States to do his undergraduate work at Oberlin College, where he earned a B.A. with highest honors in Economics and Computer Science in 1994. He received his Ph.D. in Economics from Stanford in 1999, writing his dissertation on monetary economics under the mentorship of John Taylor.