일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- it
- AUTOSAR
- 자동매매
- can
- 토플
- 임베디드
- 오토사
- GeorgiaTech
- probability
- TOEFL
- 클라우드
- 토플 라이팅
- 백트레이더
- 확률
- 백테스트
- 퀀트
- 프로그래밍
- 비트코인
- 아마존 웹 서비스
- Cloud
- toefl writing
- backtrader
- backtest
- 블록체인
- AWS
- 암호화폐
- 파이썬
- 개발자
- python
- 자동차sw
- Today
- Total
목록Study (130)
Leo's Garage
import numpy as np# Example matrixmatrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])# Calculate the rank of the matrixrank = np.linalg.matrix_rank(matrix)print("Rank of the matrix:", rank) # Rank of the matrix is 2In linear algebra, the rank of a matrix A is the dimension of the vector space generated (or spanned) by the columns. This corresponds to the ma..

예시 코드는 아래와 같다. # PACKAGE# First load the worksheet dependencies.# Here is the activation function and its derivative.sigma = lambda z : 1 / (1 + np.exp(-z))d_sigma = lambda z : np.cosh(z/2)**(-2) / 4# This function initialises the network with it's structure, it also resets any training already done.def reset_network (n1 = 6, n2 = 7, random=np.random) : global W1, W2, W3, b1, b2, b3 W1 = r..
Numpy에서 Matrix 형태로 Data를 선언한 뒤에 목적에 맞게 Column이나 Row로 분리할 수 있다. import numpy as npdata = np.array([[1,2,3],[4,5,6],[7,8,9]])print('data is', data)x = data[:,0] # convert data column 0 to rowprint('x is', x)y = data[:,1] # convert data column 1 to rowprint('y is', y)z = data[:,2] # convert data column 2 to rowprint('z is', z)a = data[0,:] # convert data row 0 to rowprint('a is', a)print('the shape..

Databases Relational databases Define relationships between tables of data inside the database Tables rows = records, columns = fields Combined Data Schema Introducing queries 아주 큰 Datasets에 적합하다. SELECT FROM SELECT name FROM patrons; patrons 테이블에서 name 필드에 해당하는 값을 가져와 SELECT card_num, name FROM patrons; patrons 테이블에서 card_num과 name 필드에 있는 값을 가져와 Writing queries Aliasing rename columns SELECT na..

Data Workflow Data Collection & Storage → Data Preparation → Exploration & Visualization → Experimentation & Prediction Data engineer는 Data Collection & Storage와 연관되어 있다. Data Engineer는 the correct data in the right form to the right people as efficiently as possible A data engineer’s responsibilities Ingest data from different sources Optimize databases for analysis Remove corrupted data Develo..
Mac에서 Ruby를 update할 때는 아래와 같이 수행하자. 이 경우, rbenv로 버전을 관리할 수 있다. rbenv 설치 brew install rbenv ruby-build ruby 설치 rbenv install 2.x.x ruby 버전 번경 rbenv global 2.x.x rbenv local 2.x.x ruby path 수정 echo 'export PATH="HOME/.rbenv/shims:PATH"' >> ~/.zshrc echo 'eval "$(rbenv init -)"' >> ~/.zshrc source ~/.zshrc 이후에 reby Gem을 이용하여 jekyll themes를 적용할 때는 아래를 수행한다. bundle install bundle exec jekyll serve

Poisson Distribution N(t)는 발생한 어떤 사건의 수를 의미하며 t에 대한 함수이다. 이 t는 시간일 수도 있고, 길이나 부피일 수도 있다. Lamda는 단위 시간 혹은 길이,부피에 대한 사건이 발생할 평균값이다. 여기서 Counting Process는 t동안 발생하는 사건의 수에 대한 확률 과정이다. 말이 좀 어색한데 예를 들어 1시간에 오는 버스의 수도 Counting Process라고 할 수 있다. 푸아송 과정은 t시간 동안에 발생하는 사건의 수를 나타내는 확률과정인데 정상성과 독립성을 만족하면서, 초기 사건의 수가 0번이고, 발생할 사건의 수가 푸아송 분포를 따라야 한다. 1번 문장의 첫번째 식을 살펴보자. 충분히 작은 시간구간 h에서 사건이 0회 발생할 확률은 다음과 같다. h..

Geometric and Negative Binomial Distributions Geometric Distribution은 첫 성공이 나올 때까지 하는 시도에 대한 확률 분포이다. 따라서 성공할 확률은 p이고 실패할 확률은 q, 1-p이다. mgf는 위와 같이 X 대신에 E^tx를 대입했을 때의 기대값을 의미한다. mgf는 어떤 pmf, pdf 외에 어떤 확률 분포의 특징을 가늠할 수 있는 지표 중의 하나이다. mgf의 1차 미분값은 기대값이다. 그에 대한 증명은 위와 같다. 2차 미분은 분산과 같다 . 그래서 mgf를 구하면 이 확률 분포에 대한 여러가지 성질을 구할 수 있다. s만큼 시간이 지난 후에 t만큼 더 지났을 때 확률과 t만큼 지났을 때 확률이 갔다는 것은 과거의 사건이 미래에 영향을 주지..

Hypergeometric Distribution Hypergeometric Distribution은 여러 종류의 물체가 섞여 있을 때에 각각 고르는 경우에 대한 확률 분포를 의미한다. 단, 여기서 한 번 선택한 물체는 다시 넣지 않는다. 확률은 위와 같이 구할 수 있다. Hypergeometric Distribution는 기대값과 분산은 수학적으로 전개하면 위와 같이 구할 수 있다. 사실 Hypergeometric은 Binomial과 유사한 부분이 있다. 평균은 동일하지만 분산은 Hypergeometic이 좀 더 크다.