Calculating galactic space velocities and their uncertainties, with an application to the Ursa Major group | Synapse