Risk Math for Security Investments