<human>:  Why did the transistor replace the vacuum tube?
<bot>: The transistor was smaller, cheaper, and more reliable than the vacuum tube. It was also easier to manufacture, which made it more cost-effective. The transistor was invented by John Bardeen, Walter Brattain, and William Shockley in 1947.