일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 독사방여기요
- 기자조선
- 풍백
- 단군
- 통계
- 후한서
- 패수
- ANOVA
- 우분투
- categorical variable
- 지리지
- Histogram
- 히스토그램
- 기자
- 고구려
- t test
- 선형회귀분석
- post hoc test
- R
- 낙랑군
- 유주
- spss
- 태그를 입력해 주세요.
- linear regression
- repeated measures ANOVA
- 창평
- 통계학
- 신라
- 한서지리지
- 한서
- Today
- Total
목록독단론 (438)
獨斷論
책 홈페이지: https://xcelab.net/rm/statistical-rethinking/ 2M1 풀이 # Define grid p_grid = seq(from=0, to=1, length.out=20) # Prior prior = rep(1, 20) # Likelihood # 2M1 (1) W = 3 N = 3 ## 2M1 (2) #W = 3 #N = 4 ## 2M1 (3) #W = 5 #N = 7 likelihood = dbinom(x=W, size=N, prob=p_grid) # Posterior posterior = likelihood * prior posterior = posterior / sum(posterior) # Plot plot(p_grid, posterior, type="b", ..
앞서 1과 2에서는 JAGS모델을 별도의 파일에 저장하여 R script에서 불러들였다. 이는 모델 전체를 이해하는데 도움이 되지 않는다. 여기서는 별도의 *.jags 파일을 작성하지 않고 R script에 직접 입력하는 방법을 알아보자. 입문1을 아래와같이 R script만으로 JAGS를 이용할수 있다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 setwd("d:/tmp/rcode/") rm(list = ls()) x
간단한 회귀분석(linear regression)을 베이시언(Bayesian)으로 수행하여 보자 아래 데이터 파일을 R의 working directory에 내려받은 후에 R에서 읽는다. R에서 데이터를 아래와 같이 읽어들인다 1 2 3 4 5 rm(list = ls()) setwd("d:/tmp/rcode/") regdat
패키지 설치JAGS를 먼저 컴퓨터에 설치한다. 현재 버전은 4.3.0 http://mcmc-jags.sourceforge.net/ R에서 JAGS를 사용하기 위하여 rjags를 R에 설치한다. R console에서 아래 스크립트를 실행 > install.packages("rjags") 데이터 내려받기평균과 표준편차를 알지 못하는 가상의 데이터 example1.csv를 내려받아 R의 working directory에 저장한다. JAGS 모델 작성 이제 평균과 표준편차를 모르는 표준정규분포를 따르는 example1.csv 데이터의 평균과 표준편차를 베이시언Bayesian 추론하여보자. JAGS 모델은 다음과 같다. 12345678 model { for (i in 1:N) { x[i] ~ dnorm(mu, t..
After a summer of racial reckoning, is America ready to learn the truth about Thanksgiving? Eryn Dion, USA TODAY NETWORK Updated 3:45 a.m. PST Nov. 23, 2020 After a summer of racial reckoning, is the country finally ready to learn the truth about the 'first Thanksgiving'?The traditional story of Thanksgiving, and by extension the Pilgrims — the one repeated in school history books and given the ..
By definition, there will always be a significant gap between what the median wage is in a state versus what the top 10% earn. However, the size of this gap can vary widely depending on where you live. For example, if you live in New York or Washington, D.C., you’ll need to earn four times the median income to crack the top 10%. In other states, like Alaska, top 10% incomes are less than three t..
25 States Where Americans Don't Want To Live Anymore They're the places where moving vans most often take residents out of state. By Esther Trattner Jun. 11, 2020 We adhere to strict standards of editorial integrity to help you make decisions with confidence. Please be aware that some (or all) products and services linked in this article are from our sponsors. Americans seeking a better way of l..
Python qtconsole은 기본적으로 하얀 바탕에 검은 글씨로 되어 있어서 오래 코딩하다보면 눈이 아픈데 이걸 좀 바꿔보자.Anaconda prompt에서 jupyter qtconsole이라 입력하자(예전에는 ipython qtconsole이었는데 이제 바뀌었다).(base) C:\Users\your_name>jupyter qtconsole위와같은 희멀건한 창이 뜨고 글꼴도 매우 작다.이를 한번 원하는데로 바꿔보자. C:\Users\your_name\.jupyter\안에 jupyter_qtconsole_config.py가 있는지 보고 없으면 아래와 같이 anaconda prompt에서 실행한다.(base) C:\Users\your_name>jupyter qtconsole --generate-conf..