Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Statistics) expand_more
Statistics / Descriptive Statistics

weighted mean

Learn weighted mean in Statistics with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.

12 min read • Beginner
statistics-002.py
python
scores=[80,90,70]; weights=[0.2,0.5,0.3]
weighted=sum(s*w for s,w in zip(scores,weights))/sum(weights)
print(weighted)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content