You are viewing a single comment's thread. Return to all comments →
print(f"{sum([x*w for x,w in zip(X,W)]) / sum(W):.1f}")
Seems like cookies are disabled on this browser, please enable them to open this website
Day 0: Weighted Mean
You are viewing a single comment's thread. Return to all comments →
print(f"{sum([x*w for x,w in zip(X,W)]) / sum(W):.1f}")