If cost is a factor, don’t forget about MBTA from Boston to Providence. https://www.goprovidence.com/plan-your-trip/transportation/rail-service/ and MetroNorth between New York and New Haven. Yes, it takes longer, but the commuter rails are MUCH cheaper than Amtrak.