Problem 1:
Please finish the tasks below using both Python and R:
1. Generate a 150 by 1 vector following standard normal distribution. (Please set a random
seed to make your generation reproducible)
2. Output its average, variance, quartile, and mean absolution deviation.
3. Make a histogram for the data you generated.
4. Convert this vector to a 50 by 3 data frame and print it.
5. Assume each column represents a group. Make a boxplot to compare these groups, and
describe your observations.
Problem 2:
Please finish the tasks below using both Python and R:
1. Input the data below (the first row is the name of each variable).
2. Select two variables and make a scatter plot. (e.g., "mpg" and "cy!")
3. Perform PCA to extract features from the data (using the first three PCs), and print the
features (1.e., the PC scores).