Statistics for Safe and Secure Control of Connected and Automated Vehicles