Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
Tags
- reshape
- 가우시안표준정규분포
- slicing
- randn
- It
- RM MINI
- 리뷰
- Python
- 스마트싱스허브
- IOT
- Zwave
- LinearRegression
- 한글경로
- 다윈
- 노션
- 스마트 플러그
- 2610
- 스마트싱스
- newaxis
- St
- 적외선 중계기
- RM MINI3
- 브로드링크
- 포엠아이
- 맥북m1
- numpy
- 필립스 휴 플레이
- 오뭘샀
- 필립스 휴
- QQ플롯
Archives
- Today
- Total
창작은 어렵다. 하지만 기록은 쉽다.
python: randn()과 rand()의 차이 본문

import numpy as np
import matplotlib.pyplot as plt
x = np.random.randn(100,1)*10
y = x + np.random.randn(100,1)+5
plt.plot(x,y,'o')
plt.show()
rand(): 균일한 확률분포로 실수난수 생성
randn(): 기댓값이 0, 표준편차 1인 가우시안 표준 정규 분포를 따르는 난수 생성

*기댓값이 0 == 평균이 0
*표준편차가 1 == 분산이 1 == 평균으로부터의 거리의 평균이 1
가우시안 정규분포 : datascienceschool.net/view-notebook/e10461cfcade4717b5be74f6ab4d1a9d/
rand()와 randn() : wotres.tistory.com/entry/python-rand-%EC%99%80-randn-%EC%B0%A8%EC%9D%B4
평균, 분산, 표준편차 : m.blog.naver.com/PostView.nhn?blogId=leerider&logNo=100189039096&proxyReferer=https:%2F%2Fwww.google.com%2F
Comments