I have 16 2d-arrays, each in a shape of [16000, 16000], which means one array has 256000000 cells. I want to have a std_array that is the standard deviation of each cell in the 16 arrays. I tried something but failed, and my questions are in bold. Here’s my attempt. For example (simplified 3*3 arrays): However, the np.std function only
Tag: standard-deviation
Weighted standard deviation in NumPy
numpy.average() has a weights option, but numpy.std() does not. Does anyone have suggestions for a workaround? Answer How about the following short “manual calculation”?