1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
faust18 [17]
3 years ago
3

Write Python code that produces an array called epsilon of length 10000 for which plt.acorr(epsilon), the plot of correlation be

tween values, produces a plot with a correlation above 0.25 at lags 0,1 and 2, and has a correlation below 0.05 for lags strictly larger than 2. Hand in your code and your plot.
Computers and Technology
1 answer:
Alekssandra [29.7K]3 years ago
4 0

Answer:

Check the explanation

Explanation:

acorr() is function in matplotlib module in python. acorr() in full meaning is Auto-Correlation function(). and it it generally used to find  out   Auto-Correlation of array of x element.

matplotlib.pyplot.acorr()

# Implementation acorr()  

import matplotlib.pyplot as plt

import numpy as np

epsilon= np.random.randn(1000)

plt.title("Autocorrelation")

plt.acorr(epsilon, usevlines = True,  

    normed = True, maxlags =2,  

    lw = 3)

plt.grid(True)

plt.show()

also i have created the exmaple for both Auto as well as cross correlation as below

import matplotlib.pyplot as plt

import numpy as np

np.random.seed(10**3)

x, y = np.random.randn(2, 1000)

fig, [ax1, ax2] = plt.subplots(2, 1, sharex=True)

ax2.acorr(x, usevlines=True, normed=True, maxlags=50, lw=2)

ax2.grid(True)

ax1.xcorr(x, y, usevlines=True, maxlags=50, normed=True, lw=2)

ax1.grid(True)

plt.show()

You might be interested in
A user informs you that he or she never deletes any files he or she creates. How might this affect the operating system? It will
Juliette [100K]

Answer:

Depending on the amount of files there are, the operating system will run slower because these files take up space on the hard drive, slowing it down.

Explanation:

6 0
3 years ago
_____ is the software that protects you computer from harmful files, Trojan horses, and worms.
Bumek [7]
I think it's antivirus because Antivirus means to protect your computer from a deadly virus
4 0
4 years ago
Read 2 more answers
Which of these is NOT an example of lifelong learning?
oee [108]

Answer:

B. having lunch with a friend

Explanation:

Lifelong learning can be defined as a continuous, self-motivated, and self-initiated learning activity that is typically focused on personal or professional development. Thus, it's a form of education that is undertaken throughout life with the sole aim of pursuing knowledge, competencies, and skills for either personal or professional growth and development, especially after acquiring a formal education.

Some examples of lifelong learning includes the following;

I. Reading a trade magazine.

II. Reviewing a textbook.

III. Studying an encyclopedia.

7 0
3 years ago
A while loop's body can contain multiple statements, as long as they are enclosed in braces
algol [13]

Answer:

True

Explanation:

while loop is used to execute the statement again and again until the condition is true. if condition False program terminate the while loop and start execute the statement outside the loop.

syntax:

initialize;

while(condition)

{

  statement 1;

  statement 2;

   to

  statement n;

}

we can write multiple statement within the braces. their is no limit to write the statement within the body of the while loop.

while terminate only when condition false

4 0
4 years ago
Create a program that draws a rectangle whenever you click the mouse. The rectangle should have a width of 30 and a height of 50
Alinara [238K]

Answer:

RECT_HEIGHT = 50

RECT_WIDTH = 30

rect = Rectangle(50,30)

       

# random.choice returns a random value from the COLORS

# function will draw a rectangle at x, y

def draw_rect(x, y):

   rectangle = Rect(50, 30)

   rect.set_position(x, y)

   rect.set_color(Color.green)

   add(rect)

# Link to the mouse click event

   add_mouse_click_handler(draw_rect)

Explanation: Hope this works for you.

6 0
3 years ago
Other questions:
  • Explain how you give users keyboard access to a text box
    6·1 answer
  • Earthquakes happen in the Earth’s
    10·1 answer
  • You want to centrally back up the files users store in the Documents folder in their user profiles, but you don’t want users to
    7·1 answer
  • Big data are used to _____. Select 3 options.
    5·1 answer
  • Sound technology has been influenced the most by the ___.
    5·2 answers
  • When should you use an ELIF statement?<br> Edhesive
    15·1 answer
  • 1. Who is known as the father of a computer?​
    12·2 answers
  • What is it called when you define a variable for the first time
    12·2 answers
  • A leading pharmaceutical company is launching a major transformation of its entire Cloud operations in order to more quickly and
    13·1 answer
  • a) consider the binary number 11010010. what is the base-4 representation of (11010010)2? (there is a way to do this without con
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!