본문 바로가기

전체 글

(124)
macOS에서 도커 사용 방법 두가지 Option 1: Docker Desktop = Linux VM + Docker GUI (더럽다)Option 2: Colima (VM) + docker-cli (Linux에서 쓰던 방식과 유사하게 사용 가능) Colima이든 Docker Desktop이든 모두 macOS Virtualization.Framework를 쓰며 이건 Apple에서 직접 만든 가상머신이다. macOS에 기본으로 포함되어 있다. Option 2를 사용하는 경우 brew를 이용해 colima를 설치하면 바로 docker명령어가 작동한다. 따로 docker-cli를 설치할 필요 없다. 만약 colima를 사용해서 docker compose를 하는데 아래와 같은 오류가 발생한다면error getting credentials - err:..
Computing moments of Poisson random variable First, prove that the sum of pmf of Poisson equals one, just for my information.\[\begin{aligned}\sum_{x=0}^\infty \frac{\lambda^x e^{-\lambda}}{x!}&=e^{-\lambda}\sum_{x=0}^\infty \frac{\lambda^x}{x!}\\&=e^{-\lambda}\left[e^{\lambda y}\right]_{y=0}\\&=e^{-\lambda}e^{\lambda}\\&=1\end{aligned}\] We compute the second moment of Poisson random variable.\[\begin{aligned}E[X^2]&=\sum_{x=0}^\infty x^2..
Sigma algebras between minimal sufficient statistic and sufficient statistic Let \(T_1\) be a sufficient statistic and \(T_2\) be a minimal sufficient statistic.By the definition of minimal sufficient statistic, \(T_2\) is a function of any other sufficient statistics.So,\[T_2=h(T_1)\]It means that if \(T_1\) is determined then \(T_2\) is determined automatically.\[T_1 \rightarrow h \rightarrow T_2\]We can expect \(\sigma(T_2)\subset \sigma(T_1)\).Check this expectation...
[회귀] Slope 유의성에 대한 가설검정 시 chi squared statistic과 f statistic의 차이 다음과 같은 회귀모형을 가정한다.\[\boldsymbol{y}=X\boldsymbol{\beta} + \boldsymbol{\epsilon}, \quad \boldsymbol{\epsilon}\sim N(0,\sigma^2 I),\quad \boldsymbol{\beta}=\begin{bmatrix}\beta_0 \\ \boldsymbol{\beta}_1 \end{bmatrix}\]그리고 아래의 가설을 테스트 하고자 한다.\[H_0:\; \boldsymbol{\beta}_1=0\quad\text{versus}\quad H_1:\;\boldsymbol{\beta}_1\neq 0\](일반적으로, 어떤 효과가 유의한지를 테스트하므로 slope인 \(\boldsymbol{\beta}_1\)를 대상으로 한다.)회..
[회귀] \(SSE/(n-k-1)\) 가 \(\sigma^2\)의 consistent estimator임을 보이기 확률수렴 정의로 갈 수도 있지만, bias와 variance가 \(n\rightarrow \infty\)이면 0이 됨을 보이고, 따라서 MSE도 0으로 가므로 consistent estimator라고 보일 것이다.\[\hat{\sigma}=\frac{SSE}{n-k-1}=\frac{1}{n-k-1} y^\top (I-H)y\]이때 \(H\)는 hat matrix이다.\[\begin{aligned}E[\hat{\sigma}]&=\frac{1}{n-k-1}E[y^\top (I-H)y]\\&=\frac{\sigma^2}{n-k-1}E\left[\frac{y^\top (I-H) y}{\sigma^2}\right]\\&=\frac{\sigma^2}{n-k-1}(n-k-1)\\&=\sigma^2\quad \ther..
Notation of P in graphical models In graphical models, I have come across one notation denoting the two different concepts of probability measure and distribution.The same symbol \(P\) is used for both probability measures and pdfs/pmfs.So, basically, both are seen in the literature. \(A\) is an event, and \(X\) is a random variable.\[\begin{aligned}P(A):&\quad \text{probability of event A}\\P(X):&\quad \text{pdf/pmf of random v..
[Linux] NVIDIA driver 삭제법 NVIDIA 홈페이지에서 .sh파일로 드라이버를 설치했다면 아래의 명령어로 삭제할 수 있다.sudo nvidia-uninstall
[Linux] Manual installation of deb package (can be used for Fedora) Note: This includes how to translate a systemd service file for Debian to the corresponding one for Fedora.ProblemWe have a deb package, which has to be installed on a Fedora machine. The command line tool alien doesn't work for our deb package. In this case, this manual installation can be used.This is verified on the RustDesk's preview build:https://rustdesk.com/blog/unattended-remote-access-w..