Random variables X and Y have joint PDF fXY x y x y3 0 les
Random variables X and Y have joint PDF f_XY (x, y) = {x + y/3 0 lessthanorequalto x lessthanorequalto 1, 0 lessthanorequalto y lessthanorequalto 2 0 otherwise Find the marginal PDFs f_x(x) and f_y(y). What are E[X] and Var[X]? What are E[Y] and Var[Y]?
Solution
main.cpp
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double kilograms;
double pounds;
cout << \"Please input your weight in Kilograms : \";
cin >> kilograms;
cout << endl;
pounds = 2.20462262184878*kilograms;
cout << \"Your weight in pounds is exactly : \" << setprecision(4) << fixed << pounds << endl;
cout << endl;
return 0;
}
Output :-
