Data-Driven Discovery of Coarse-Grained Equations