Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me this question by using python!! 2 Scatter plots and histograms pioieser in p 1. Create random points drawn from a bivariate normal

image text in transcribed

Please help me this question by using python!!

2 Scatter plots and histograms pioieser in p 1. Create random points drawn from a bivariate normal distribution using, e.g, numpy.random.multivariate_ normal. Read up on how to use this function (http://doc org/documpy/reference/generatedumpy. random.multivariate normal.html) s.SCi 2. Make a scatter plot of your random points. Save the plot as bivariate_scatter plot.pd:f 3. Make a histogram plot for thex and y coordinates. Save the histograms as bivariate_hist_x_plot.pdf 4. Make a single figure, called master_plot.pdf, showing the scatter plot in the top left corner, and bivariate_hist_y_plot.pdf the x histogram in the bottom left corner, and the y histogram in the top right corner. This should look something like figure 1 Put your commen ted code in a file called scatter_hist_plot.py 400 350 300 250 200 150 100 50 4 2 2 4 -4-3-2-1 0 1 2 3 4 -4-3-2-1 0 1 2 3 4 450 400 350 300 250 200 150 100 50 0 -4-3-2-1 0 1 2 3 4 Figure 1: Random points drawn from a bivariate normal distribution. Expected output: your code scatter_hist_plot.py should generate the four plots above when executed. The number of random points must be entered by the person running the code when it executes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What were the reasons for your conversion or resistance?

Answered: 1 week ago

Question

How was their resistance overcome?

Answered: 1 week ago