Difficulty: Medium
Category: Code Analysis
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
Topics: numpy, broadcasting, shape, data-analysis, trading-strategy
You are working on a trading strategy that involves manipulating large arrays of market data using NumPy. A crucial step in your analysis involves adding two NumPy arrays with shapes (3, 1) and (1, 4). Assume the arrays contain numerical data. What is the shape of the resulting array after the addition operation? Is NumPy's broadcasting behavior in this scenario likely to be intentional in a typical trading context, or could it indicate a potential error in how your data is structured or interp
Practice this medium trader interview question on MyntBit - the all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.