전체 글
Matrix Calculations, Eigen Vector
Q1. Let M be the following matrix: (a) Find the inverse of M. To find the inverse of M, we need to find det(A). det(A) = ad - bc where det(A) = ad - bc = (2*1) - (-3)(-2) = (2)-(6) = -4 Then, rearrange M Multiply by 1/det(A) This gives M^-1 of: (b) Using your answer to (a) or otherwise, find the solution to the following system of equations: 2 ways of solving this question. 1) Using M^-1 2) Usin..
인구와 부동산 가격의 관계
부동산 가격과 생산가능 인구의 관계는 어떨까? 생산인구가 줄어들면 과연 그나라의 부동산 가격이 무너지는것일까? 1. 생산가능 인구 1970년부터 2030년까지의 생산가능인구 그래프이다.1985년 이후 프랑스와 독일의 생산인구가 줄어들기시작함. 1995년 이후 일본의 생산가능 인구가 줄어들기 시작함. 한국의 경우엔 2015년 이후로 줄어들기 시작하는것으로 보인다. 2. 부동산 가격 http://www.economist.com/blogs/dailychart/2011/11/global-house-prices 1985년부터 생산인구가 줄기시작한 프랑스와 독일의경우 1990년 초반까지 상승 후, 프랑스의 경우는 1990년말 부터 약간의 조정을거친 후 급격히 상승하였고, 독일의 경우는 거의 횡보라고 볼수있음. 일본..
포커게임 카드 확률 구하기
Finding probability of Poker Hands - 포커게임 카드 확률 구하기 조건: 덱은 1 ~ 13(rank) 와 4개의 suit로 이루어진 52장의 카드. 1. 1 Pair 2장의 카드가 같은 숫자가 나와야한다. 즉, C1 C2 / C3 C4 C5 일때, rank(C1) = rank(C2) Step1. 페어가 될 rank를 고르는 경우의 수 = 13C1 - 13장의 rank중 하나의 숫자를 고른다. Step2. 페어의 suit를 고르는 경우의 수 = 4C2 - 각 rank별로 4개의 suit가 있고, Step1에서 고른 rank당 가질수 있는 suit의 경우의 수 Step3. 나머지 3장의 rank를 고르는 경우의 수 = 12C3 - 1에서 한장을 골랐으므로, 13가지 rank중 남은..
리눅스 디렉토리 구조
Linux Directory Structure Most Linux-like OS uses FHF(Filesystem Hierarchy Standard) structure. This means files are categorized and stored into different folders under ROOT(/) directory, based on their types, usage and purpose. In usual cases those directories are: /bin, /sbin, /etc, /boot, /mnt, /usr, /lib, /home, /dev, /proc, /var, /tmp, /opt, /media 1. / Root Directory는 리눅스 시스템에서 최상위 디렉토리이다...
Transaction Management
What does it mean by ACID properties in database transaction? Atomicity: All database operations of a transaction must be entirely completed or entirely aborted. Consistency: It must take the database from one consistent state to another. i.e. If DB goes down during the transaction, it should revert back to the original starting state. Isolation: Data used during execution cannot be used by the ..
Python으로 코스피 지수 불러오기
우선 pandas-datareader를 설치해야한다. 설치방법은 Windows 검색 - cmd - 관리자 권한으로 실행 - 아래 명령어 입력 pip install pandas-datareader - Pandas Datareader library를 이용, 야후에서 2007년 1월1일부터 2017년 10월31일까지 KOSPI index를 불러옴 - 종가의 Median과, descriptive statistics, correlation을 구하고 line차트를 그렸음 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 import pandas_datareader as wb import pandas as pd import datetime import m..