The Local Group is the galaxy group that includes the Milky Way, where Earth is located. It has a total diameter of roughly 3 megaparsecs, and a total mass of the order of 2×10¹² solar masses. From Wikipedia
Factoring in the Large Magellanic Cloud’s gravitational influence shifts the long-term collision odds with Andromeda to roughly 50% over the next 10 billion years.