Share your knowledge with other learners . . . Login Register

python में statistics module का pstdev() method का use population standard deviation calculate करने के लिए किया जाता है।

What is Population Standard Deviation?

Population Standard deviation का use statistics में dispersement को measure करने के लिए किया जाता है , मतलब कि आपका data , mean / average के आसपास कितना फैला हुआ है। या कह सकते हैं कि data value , data mean / average के कितने close है।

Population Standard Deviation Formula

= Population Variance

Population Variance

= Σ(x-x¯)2/n

Python statistics pstdev() Method Syntax

statistics.pstdev(data)
Parameters
  1. data | required : data जिसका हमें Population Standard Deviation calculate करना है , आप इसमें values की (list, tuple) pass कर सकते हैं।

  2. Return value : pass की गयी values के according value (Integer/float) return होती है।

Python statistics pstdev() Method Example

Copy Fullscreen Close Fullscreen Run
# Import statistics Library.
import statistics
#using list.
print(statistics.pstdev([23,34,56,657,56]))
#using tuple.
print(statistics.pstdev((23,34,56,657,56)))
Output
C:\Users\Rahulkumar\Desktop\python>python test_psdev.py
246.23192319437382
246.23192319437382

Related Topics :

Rahul Kumar

Rahul Kumar

Hi ! My name is Rahul Kumar Rajput. I'm a back end web developer and founder of learnhindituts.com. I live in Uttar Pradesh (UP), India and I love to talk about programming as well as writing technical tutorials and tips that can help to others.

Get connected with me. :) LinkedIn Twitter Instagram Facebook

b2eprogrammers