{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "### R에서의 확률분포\n", "d를 붙이면 확률밀도함수(probability density function)\n", "\n", "p를 붙이면 누적밀도함수(cumulation density function)\n", "\n", "q를 붙이면 분위수 함수\n", "\n", "r를 붙이면 난수를 생성함" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 정규분포(Normal Distribution)\n", "#####dnorm(0, mean=0, sd=1) # N(0,1)의 0에서의 밀도 함수값\n", "#####pnorm(0, mean=0, sd=1) # N(0,1)의 0까지의 누적밀도 함수값\n", "#####qnorm(0.5, mean=0, sd=1) # N(0,1)의 50% 분위수 값\n", "#####rnorm(5, mean=0, sd=1) # N(0,1)를 따르는 난수 5개 발생" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "0.398942280401433" ], "text/latex": [ "0.398942280401433" ], "text/markdown": [ "0.398942280401433" ], "text/plain": [ "[1] 0.3989423" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" }, { "data": { "text/html": [ "0.5" ], "text/latex": [ "0.5" ], "text/markdown": [ "0.5" ], "text/plain": [ "[1] 0.5" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" }, { "data": { "text/html": [ "0" ], "text/latex": [ "0" ], "text/markdown": [ "0" ], "text/plain": [ "[1] 0" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" }, { "data": { "text/html": [ "