MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / standard_deviation

Function standard_deviation

maths/joint_probability_distribution.py:72–77  ·  view source on GitHub ↗

>>> standard_deviation(0.21) 0.458257569495584

(variance: float)

Source from the content-addressed store, hash-verified

70
71# Function to calculate the standard deviation
72def standard_deviation(variance: float) -> float:
73 """
74 >>> standard_deviation(0.21)
75 0.458257569495584
76 """
77 return variance**0.5
78
79
80if __name__ == "__main__":

Calls

no outgoing calls

Tested by

no test coverage detected