Have you ever tried to draw a straight line through a bunch of scattered points and wondered what the “best” line really is? This chapter answers that question. We’ll see how to find the best approximate solution when an exact answer doesn’t exist. This method pops up everywhere: fitting curves in science, solving huge systems in machine learning, and more.