Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
voke
# X ~ N(mean = 75, sd = 5) # pnorm is used to calculate the probability for a normal random variable # what is the P( X <= 70 ) pnorm(q = 70, mean = 75, sd = 5) pnorm(q = 85, mean = 75, sd = 5, lower.tail = F) #P(Z >= 1) pnorm(q = 1, mean = 0, sd = 1, lower.tail = F) # area above a z score is approx 16% #qnorm is used to calculate quartiles or percentiles for a random variable #find Q1 qnorm(p = 0.25, mean = 75, sd = 5, lower.tail = T) #dnorm is for calculatung the probability density function #first we create a sequence of X values that run from 55-95 X <- seq(from=55, to=95, by=0.25) dens <- dnorm(X, mean=75, sd=5)
run
|
edit
|
history
|
help
0
My R Code Practice
User defined functions
Ex21-01-21
Even.r
12 character random alpha numeric
sum of digits is prime
Paired t-test [Shear Strength of Girder]
Chi-squared tests of independence [Seat Belt Yes/No] worked
Roll of a two dice
28-09-2020Int-poli-inter-FuncaoComportadabem