Hello, I have these questions that I dont understand how to solve. I have done the first question and managed to create the matrix. But the rest of the questions I don't understand how to do. Can you guys help me with giving pointers on how to solve these?
1. Generate the matrix “Customers” containing random values for the following variables. The matrix must contain 3000 people. ( I have solved this and gotten the matrix) Number 2 is what I have trouble with.
a. Gender. Must be either 1 or 0. 0 signifies that the person is female.
b. Age. Must be between 21 and 85.
c. Insurance risk. Must be a value between 1 and 10.
2. Create a plot that shows the distribution of the insurance risk for males
3. Create a plot that shows the distribution of males and females
4. Calculate the average insurance risk for males, females and combined. The averages must be rounded to two decimals.
I really hope someone can help me out.
Thank you in advance.