Welcome to the Genome Toolbox! I am glad you navigated to the blog and hope you find the contents useful and insightful for your genomic needs. If you find any of the entries particularly helpful, be sure to click the +1 button on the bottom of the post and share with your colleagues. Your input is encouraged, so if you have comments or are aware of more efficient tools not included in a post, I would love to hear from you. Enjoy your time browsing through the Toolbox.

Friday, January 29, 2016

Normal Distribution Functions in R

I always need to look up how to use the distributional functions in R. Rather than it always being a guessing game I made a quick primer with visual example plots of what each command means and the results each command actually returns.

The below examples assume a N(0,1). A link to the R manual is here.

dnorm-returns the height of the normal curve at a specified value along the x-axis
pnorm-the cumulative density function (CDF) that returns the area to the left of a specified value
qnorm-returns quantiles or "critical values"
rnorm-generates random numbers from the normal distribution
These are examples for the normal distribution, but as you could imagine R has commands for numerous other distributions such as the chi-square, beta, uniform, and poisson.

If you are curious, here are the commands I used to plot these figures:

1 comment:

  1. I have suffered HSV-2 for a very long  time until  three week ago when I read about Dr. Kham's Herbal remedies recommendation online on how he cured someone who went through the same problem. I contacted him and he advised and guided me with all the necessary procedures. He prepared the medicine and sent me the medicine and after taking the medication for first weeks my HSV-2 Virus breakouts where gone, I was surprised, After I completed the Dr. Kham herbal remedies dosage for the Second weeks making it 2 weeks, I went to the hospital and I was tested negative with my hospital test Results, Which means I was cured permanently from HSV-2 Virus. I'm using this opportunity in recommending him to you all who are having different health issues. You too can be cured too if I was able to get cured with Dr. Kham Herbal Remedies, Reach out to him through his email dr.khamcaregiver@gmail.com or his WhatsApp number +234 8159922297. Visit his web site herbalistdrkhamcaregiver.simdif.com

    ReplyDelete