Previous question · 1506
Fix Experiment Tracker
mediumPair Programming
Next question · 1508
Reconstruct Itinerary
hardData Structures
Random coding question

1507. Autocorrelation Function

easy
GeneralGeneral
senior
Function contract
Inputs
x
np.ndarray
max_lag
int
Returns
value
np.ndarray

Examples

Input
{
  "x": [
    1,
    2,
    1,
    2
  ],
  "max_lag": 2
}
Output
[
  1,
  -0.75,
  0.5
]

Constraints

Hint 1
Hint 2
Hint 3
Hint 4
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
time-series
autocorrelation
numerical-methods
loops-and-complexity

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
38 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands