Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

definition
python

What is normal distribution?

Educative Answers Team

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Data can be distributed in any form. Data represented on a graph could be spread out more on the right or left side, it could be spread out randomly, or it could be in the center. The data that is distributed in the center forms a “bell curve” – this kind of distribution is called a normal distribution.

Normal distribution

Normal distribution has the following properties:

  • The mean, median, and mode all are equal

  • The data is symmetric on both sides of the center, i.e., 50% of the data is on the right side (greater than mean) and 50% on the left (less than mean)

Example

The graph on the right represents the relationship between the number of adult men and their height. The data in this graph is normally distributed. From the graph data, we can calculate that 70 inches is the mean, median, and mode height for adult men.

Adult male height

Code

# import numpy
from numpy import random
# generating a random normally distributed array
# of size 5
arr = random.normal(size=(1, 5))
# printing array
print(arr)

RELATED TAGS

definition
python
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.