- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to find the proportion using normal distribution in R?
To find the proportion using normal distribution in R, we can use pnorm function where we can provide the mean and standard deviation of population along with sample, also the tail position can be set by using lower.tail argument to TRUE or FALSE. Check out the below examples to understand how it can be done.
Example 1
Finding the proportion of values above 55 when sample mean is 50 and standard deviation is 8 −
pnorm(55,mean=50,sd=8,lower.tail=FALSE)
Output
[1] 0.2659855
Example 2
Finding the proportion of values above 60 when sample mean is 50 and standard deviation is 8 −
pnorm(60,mean=50,sd=8,lower.tail=FALSE)
Output
[1] 0.1056498
Example 3
Finding the proportion of values above 70 when sample mean is 50 and standard deviation is 8 −
pnorm(70,mean=50,sd=8,lower.tail=FALSE)
Output
[1] 0.006209665
Example 4
Finding the proportion of values below 55 when sample mean is 50 and standard deviation is 8 −
pnorm(55,mean=50,sd=8)
Output
[1] 0.7340145
Example 5
Finding the proportion of values below 60 when sample mean is 50 and standard deviation is 8 −
pnorm(60,mean=50,sd=8)
Output
[1] 0.8943502
Example 6
Finding the proportion of values below 70 when sample mean is 50 and standard deviation is 8 −
pnorm(70,mean=50,sd=8)
Output
[1] 0.9937903
Example 7
Finding the proportion of values above 2 when sample mean is 1.25 and standard deviation is 0.75 −
pnorm(2,mean=1.25,sd=0.75,lower.tail=FALSE)
Output
[1] 0.1586553
Example 8
Finding the proportion of values above 3 when sample mean is 1.25 and standard deviation is 0.75 −
pnorm(3,mean=1.25,sd=0.75,lower.tail=FALSE)
Output
[1] 0.009815329
Example 9
Finding the proportion of values below 2 when sample mean is 1.25 and standard deviation is 0.75 −
pnorm(2,mean=1.25,sd=0.75)
Output
[1] 0.8413447
Example 10
Finding the proportion of values below 3 when sample mean is 1.25 and standard deviation is 0.75 −
pnorm(3,mean=1.25,sd=0.75)
Output
[1] 0.9901847
- Related Articles
- How to find the less than probability using normal distribution in R?
- How to simulate normal distribution for a fixed limit in R?
- How to create a standard normal distribution curve with 3-sigma limits in R?
- How to find the proportion of row values in an R data frame?
- How to find confidence interval for binomial distribution in R?
- How to round values in proportion table in R?
- How to create a sample or samples using probability distribution in R?
- How to find the sample size for two sample proportion tests with given power in R?
- Application of Normal Probability Distribution Technique in Psychology
- How to generate a normal random vector using the mean of a vector in R?
- Java Program for Standard Normal Distribution (SND)
- How to generate standard normal random numbers in R?
- How to find the proportion of categories based on another categorical column in R's data.table object?
- How to create an exponential distribution plot in R?
- How to add proportion total at margins on a table in R?
