<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.0">Jekyll</generator><link href="https://minjaegil.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://minjaegil.github.io/" rel="alternate" type="text/html" /><updated>2022-04-16T12:16:56+00:00</updated><id>https://minjaegil.github.io/feed.xml</id><title type="html">Cerebrum Archive</title><subtitle>Student at UIUC</subtitle><author><name>길민재 Minjae Gil</name><email>minjaegil@gmail.com</email></author><entry><title type="html">Data Ingestion using Pandas</title><link href="https://minjaegil.github.io/python/ingest_data/" rel="alternate" type="text/html" title="Data Ingestion using Pandas" /><published>2022-03-25T00:00:00+00:00</published><updated>2022-03-25T00:00:00+00:00</updated><id>https://minjaegil.github.io/python/ingest_data</id><content type="html" xml:base="https://minjaegil.github.io/python/ingest_data/">&lt;h2 id=&quot;flat-files-csv&quot;&gt;Flat Files (CSV)&lt;/h2&gt;

&lt;h3 id=&quot;specifying-delimiters&quot;&gt;Specifying Delimiters&lt;/h3&gt;

&lt;p&gt;When reading &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tsv&lt;/code&gt; (tab-separated variables) files, we need to specify the delimiter with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sep&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;pandas&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;some_data.tsv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sep&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\t&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;limiting-columns&quot;&gt;Limiting Columns&lt;/h3&gt;

&lt;p&gt;Choose columns to load with the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;usecols&lt;/code&gt; keyword argument.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;col_names&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'STATEFIPS'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'STATE'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'zipcode'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'agi_stub'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'N1'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;col_nums&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Choose columns to load by name
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tax_data_v1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'us_tax_data_2016.csv'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;usecols&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col_names&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Choose columns to load by number
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tax_data_v2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'us_tax_data_2016.csv'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;usecols&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;col_nums&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;limiting-rows&quot;&gt;Limiting Rows&lt;/h3&gt;

&lt;p&gt;Limit the number of rows loaded with the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nrows&lt;/code&gt; keyword argument.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;data_first1000&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'some_data.csv'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nrows&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;skiprows&lt;/code&gt; to skip rows. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;skiprows&lt;/code&gt; accepts a list of row numbers, a number of rows, or a function to filter rows.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;data_next500&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'some_data csv'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                            &lt;span class=&quot;n&quot;&gt;nrows&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                            &lt;span class=&quot;n&quot;&gt;skiprows&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                            &lt;span class=&quot;n&quot;&gt;header&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;None&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;header=None&lt;/code&gt; when there are no column names.&lt;/p&gt;

&lt;h3 id=&quot;setting-data-types&quot;&gt;Setting Data Types&lt;/h3&gt;

&lt;p&gt;Dictionary types can be passed in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;na_values&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dtype&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;some_data_.csv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;                        
                    &lt;span class=&quot;n&quot;&gt;na_values&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;column1&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
                    &lt;span class=&quot;n&quot;&gt;dtype&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;column2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;handling-errors&quot;&gt;Handling Errors&lt;/h3&gt;

&lt;p&gt;Set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;error_bad_lines=False&lt;/code&gt; to skip unparseable records.&lt;/p&gt;

&lt;p&gt;Set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;warn_bad_lines=True&lt;/code&gt; to see messages when records are skipped.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;some_data.csv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                    &lt;span class=&quot;n&quot;&gt;error_bad_lines&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                    &lt;span class=&quot;n&quot;&gt;warn_bad_lines&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>길민재 Minjae Gil</name><email>minjaegil@gmail.com</email></author><category term="Python" /><category term="pandas" /><category term="data science" /><category term="python" /><summary type="html">Flat Files (CSV)</summary></entry><entry><title type="html">Linear Algebra</title><link href="https://minjaegil.github.io/math/linear_algebra/" rel="alternate" type="text/html" title="Linear Algebra" /><published>2022-03-12T00:00:00+00:00</published><updated>2022-03-12T00:00:00+00:00</updated><id>https://minjaegil.github.io/math/linear_algebra</id><content type="html" xml:base="https://minjaegil.github.io/math/linear_algebra/">&lt;h1 id=&quot;math-for-ml&quot;&gt;Math for ML&lt;/h1&gt;
&lt;p&gt;This post jots down the key points of Chapter 2 Linear Algebra from &lt;a href=&quot;https://mml-book.github.io&quot;&gt;Mathmematics for Machine Learning&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1 id=&quot;1-matrices&quot;&gt;1. Matrices&lt;/h1&gt;

&lt;h2 id=&quot;11-matrix&quot;&gt;1.1 Matrix&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Matrix&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A real-valued ($m, n$) matrix &lt;strong&gt;&lt;em&gt;A&lt;/em&gt;&lt;/strong&gt;, where $m, n \in N$, is a $m\cdot n$-tuple with $m$ rows and $n$ columns.&lt;/p&gt;

\[A = \begin{bmatrix}1 &amp;amp; 3 &amp;amp; 2\\3 &amp;amp; 2 &amp;amp;1\end{bmatrix} \in R^{2\times 3}\]

&lt;p&gt;&lt;strong&gt;Identity Matrix&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In $R^{n\times n}$, identity matrix &lt;strong&gt;&lt;em&gt;$I_{n}$&lt;/em&gt;&lt;/strong&gt; is a $n \times n$-matrix containing 1 on the diagonal and 0 everywhere else.&lt;/p&gt;

\[I_{3} = \begin{bmatrix}1 &amp;amp; 0 &amp;amp; 0\\0 &amp;amp; 1 &amp;amp;0\\0&amp;amp;0&amp;amp;1\end{bmatrix} \in R^{3\times 3}\]

&lt;h2 id=&quot;12-propoerties-of-matrices&quot;&gt;1.2 Propoerties of Matrices&lt;/h2&gt;

&lt;p&gt;Matrices can only be multiplied if their &lt;em&gt;neighboring&lt;/em&gt; dimensions match. &lt;br /&gt;
For instance, a $n\times k$-matrix &lt;strong&gt;&lt;em&gt;A&lt;/em&gt;&lt;/strong&gt; can be multiplied with a $k\times m$-matrix &lt;strong&gt;&lt;em&gt;B&lt;/em&gt;&lt;/strong&gt;, but only from the left side. Thus, &lt;strong&gt;&lt;em&gt;BA&lt;/em&gt;&lt;/strong&gt; will not defined if $m\neq n$.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Associativity&lt;/strong&gt;:     $\forall A \in R^{m\times n}, B \in R^{n \times p}, C \in R^{p\times q}: (AB)C=A(BC)$&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Distributivity&lt;/strong&gt;:     $\forall A,B \in R^{m\times n}, C,D \in R^{n\times p}: (A+B)C=AC + BC$&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Multiplication with the Identity Matrix&lt;/strong&gt;:     $\forall A \in R^{m\times n}: I_{m}A=AI_{n}=A$   ($I_{m}\neq I_{n}$ for $m\neq n$)&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;13-inverse-and-transpose&quot;&gt;1.3 Inverse and Transpose&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Inverse&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If two matrices $A,B \in R^{n\times n}$ have the property $AB=I_{n}=BA$, $B$ is called the &lt;em&gt;inverse&lt;/em&gt; of $A$ and denoted by $A^{-1}$.&lt;/p&gt;

&lt;p&gt;Note that &lt;u&gt;not every matrix has an inverse&lt;/u&gt;.&lt;/p&gt;

\[(A+B)^{-1}\neq A^{-1}+B^{-1}\]

\[(AB)^{-1}=B^{-1}A^{-1}\]

&lt;p&gt;&lt;strong&gt;Transpose&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For $A\in R^{m\times n}$ the matrix $B\in R^{n\times m}$ with $b_{ij}=a_{ji}$ is called the &lt;em&gt;transpose&lt;/em&gt; of $A$ and is written as $B=A^{\top}$.&lt;/p&gt;

\[(A+B)^{\top}=A^{\top}+B^{\top}\]

\[(AB)^{\top}=B^{\top}A^{\top}\]

&lt;p&gt;If $A=A^{\top}$, matrix $A$ is &lt;em&gt;symmetric&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1 id=&quot;2-solving-systems-of-linear-equations&quot;&gt;2. Solving Systems of Linear Equations&lt;/h1&gt;

&lt;h2 id=&quot;21-approach&quot;&gt;2.1 Approach&lt;/h2&gt;

&lt;p&gt;Converting a system of equations into the compact matrix notation $Ax=b$,&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Find a &lt;em&gt;particular solution&lt;/em&gt; to $Ax=b$.&lt;/li&gt;
  &lt;li&gt;Find all solutions to $Ax=0$.&lt;/li&gt;
  &lt;li&gt;Combine the solutions from steps 1 and 2 to get the &lt;em&gt;general solution&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Explanation.&lt;/em&gt;&lt;/strong&gt; Adding 0 to our particular solution does not change the particular solution since:&lt;/p&gt;

\[A(x+x^{\prime})=Ax+Ax^{\prime}\]

&lt;h2 id=&quot;22-row-echelon-form&quot;&gt;2.2 Row-Echelon Form&lt;/h2&gt;
&lt;p&gt;A matrix is row-echelon form if:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;All rows that contain only zeros are at the bottom of the matrix.&lt;/li&gt;
  &lt;li&gt;Looking at nonzero rows only, the first nonzero number from the left (also called the &lt;em&gt;pivot&lt;/em&gt; or the &lt;em&gt;leading coefficient&lt;/em&gt;) is always strictly to the right of the pivot of the row above it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example of row-echelon form matrix:&lt;/p&gt;

\[\begin{bmatrix}A&amp;amp;|&amp;amp;b\end{bmatrix}=\begin{bmatrix}1 &amp;amp; -2&amp;amp; 1&amp;amp;-1&amp;amp;1&amp;amp;|&amp;amp;0\\0 &amp;amp; 0 &amp;amp;1&amp;amp;-1&amp;amp;3&amp;amp;|&amp;amp;-2 \\ 0&amp;amp;0&amp;amp;0&amp;amp;1&amp;amp;-2&amp;amp;|&amp;amp;1 \\ 0&amp;amp;0&amp;amp;0&amp;amp;0&amp;amp;0&amp;amp;|&amp;amp;0\end{bmatrix}\]

&lt;p&gt;&lt;strong&gt;Obtaining a Particular Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The row-echelon form helps to determine a particular solution.&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;First, express the right-hand side of the equation system using the &lt;em&gt;pivot columns&lt;/em&gt;:&lt;/li&gt;
&lt;/ol&gt;

\[\lambda_{1} \begin{bmatrix}1 \\0 \\ 0 \\0 \end{bmatrix} + \lambda_{2} \begin{bmatrix}1 \\1 \\ 0 \\0 \end{bmatrix} +\lambda_{3} \begin{bmatrix}-1 \\-1 \\ 1 \\0 \end{bmatrix} =\begin{bmatrix}0\\ -2 \\ 1 \\0 \end{bmatrix}\]

&lt;ol&gt;
  &lt;li&gt;Find $\lambda_3 = 1, \lambda_2 = -1,\lambda_1 = 2$&lt;/li&gt;
  &lt;li&gt;Put everything together &lt;u&gt;including the non-pivot columns&lt;/u&gt; for which we set the coefficients implicitly to 0.&lt;/li&gt;
  &lt;li&gt;Therefore, we get the particular solution $x=[2, 0, -1, 1, 0]^{\top}$.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Reduced Row Echelon Form&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Also called row-reduced echelon form or row canonical form,&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;It is in row-echelon form&lt;/li&gt;
  &lt;li&gt;Every pivot is 1.&lt;/li&gt;
  &lt;li&gt;The pivot is the only nonzero entry &lt;u&gt;in its column&lt;/u&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example of reduced row-echelon form matrix:&lt;/p&gt;

\[A=\begin{bmatrix}1 &amp;amp; 3 &amp;amp; 0 &amp;amp; 0 &amp;amp; 3\\ 0 &amp;amp; 0 &amp;amp; 1 &amp;amp; 0 &amp;amp; 9 \\ 0 &amp;amp;0 &amp;amp; 0 &amp;amp; 1 &amp;amp; -4 \end{bmatrix}\]

&lt;p&gt;&lt;strong&gt;Obtaining a General Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The reduced row-echelon form helps to determine a particular solution. We can use the &lt;strong&gt;Minus-1 Trick&lt;/strong&gt;:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Augment matrix $A$ to a $5\times 5$ matrix by adding rows of such form at the places where the pivots on the diagonal are missing:&lt;/li&gt;
&lt;/ol&gt;

\[{\widetilde{A} =\begin{bmatrix}1 &amp;amp; 3 &amp;amp; 0 &amp;amp; 0 &amp;amp; 3\\ \color{blue}0 &amp;amp;\color{blue} -\color{blue}1 &amp;amp; \color{blue}0 &amp;amp; \color{blue}0 &amp;amp; \color{blue}0\\ 0 &amp;amp; 0 &amp;amp; 1 &amp;amp; 0 &amp;amp; 9  \\ 0 &amp;amp;0 &amp;amp; 0 &amp;amp; 1 &amp;amp; -4 \\ \color{blue}0 &amp;amp;\color{blue} 0 &amp;amp; \color{blue}0 &amp;amp; \color{blue}0 &amp;amp; \color{blue}- \color{blue}1\end{bmatrix}}\]

&lt;ol&gt;
  &lt;li&gt;Read out solutions of $Ax=0$ by taking the columns of $\widetilde{A}$, which contain $-1$ on the diagonal:&lt;/li&gt;
&lt;/ol&gt;

\[{x\in R^5 :x=\lambda_{1} \begin{bmatrix}3 \\-1 \\ 0 \\0 \\ 0\end{bmatrix} + \lambda_{2} \begin{bmatrix}3 \\0 \\ 9 \\-4 \\-1\end{bmatrix}}\]

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1 id=&quot;3-vector-spaces&quot;&gt;3. Vector Spaces&lt;/h1&gt;

&lt;h2 id=&quot;31-groups&quot;&gt;3.1 Groups&lt;/h2&gt;

&lt;p&gt;Consider a set $\mathcal{G}$ and an operation $\otimes:\mathcal{G}\times\mathcal{G}\rightarrow\mathcal{G}$. Then $G=(\mathcal{G},\otimes)$ is called a &lt;em&gt;group&lt;/em&gt; if:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Closure&lt;/strong&gt; of $\mathcal{G}$ under $\otimes$:   $\forall x,y \in \mathcal{G} : x \otimes y \in \mathcal{G}$&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Associativity&lt;/strong&gt;:   $\forall x,y,z \in \mathcal{G} : (x \otimes y)\otimes z = x \otimes (y \otimes z)$&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Neutral element&lt;/strong&gt;:   $\exists e \in \mathcal{G}  ,\forall x \in \mathcal{G}: x \otimes e = x$ and $e \otimes x = x$&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Inverse element&lt;/strong&gt;: $\forall x \in \mathcal{G}, \exists y \in \mathcal{G} : x\otimes y = e$ and $y \otimes x = e$ where $e$ is the neutral element.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Abelian Group&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Group $G=(\mathcal{G},\otimes)$ is called an &lt;em&gt;Abelian group&lt;/em&gt; if it additionally meets the condition that $\forall x,y \in \mathcal{G}: x \otimes y = y \otimes x$ (commutative).&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;$(\mathbb{Z},+)$ is an Abelian group&lt;/li&gt;
  &lt;li&gt;$(\mathbb{N}_0 ,+)$ is not a group:   Although it possesses a neutral element (0), the inverse elements are missing&lt;/li&gt;
  &lt;li&gt;$(\mathbb{Z},\cdot)$ is not a group:    Although it possesses a neutral element (1), the inverse elements are missing&lt;/li&gt;
  &lt;li&gt;$(\mathbb{R}, \cdot)$ is not a group since 0 doesn’t possess an inverse element&lt;/li&gt;
  &lt;li&gt;$(\mathbb{R}$ \ {0} $,\cdot)$ is Abelian&lt;/li&gt;
  &lt;li&gt;$(\mathbb{R}^{m\times n},+)$, set of $m\times n$-metrices is Abelian&lt;/li&gt;
  &lt;li&gt;$(\mathbb{R}^{n\times n},\cdot)$ depends on whether it has an inverse (regular) or not:
    &lt;ul&gt;
      &lt;li&gt;Neutral element: The identity matrix $I_n$ is the neutral element&lt;/li&gt;
      &lt;li&gt;Inverse element: If the inverse exists, then in exactly this case is a group and is also calledd the &lt;em&gt;general linear group&lt;/em&gt;&lt;/li&gt;
      &lt;li&gt;Since matrix multiplication is not commutative, the group is not Abelian&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*$\mathbb{Z}$ : set of integers  &lt;br /&gt;
*$\mathbb{N}_0$: set of natural numbers including zero  &lt;br /&gt;
*$\mathbb{R}$ : set of real numbers  &lt;br /&gt;
*$\mathbb{R}$ \ {0} : set of real numbers excluding zero&lt;/p&gt;

&lt;h2 id=&quot;32-vector-spaces&quot;&gt;3.2 Vector Spaces&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Vector Spaces&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A real-valued &lt;em&gt;vector space&lt;/em&gt; $V = (\mathcal{V},+,\cdot)$ is a set $\mathcal{V}$ with two operations:
\(+: \mathcal{V}\times \mathcal{V} \rightarrow \mathcal{V}\) 
\(\cdot: \mathbb{R}\times \mathcal{V} \rightarrow \mathcal{V}\)
*$+:$ inner operations (vector addition)  &lt;br /&gt;
*$\cdot:$ outer operation (scalars)&lt;/p&gt;

&lt;p&gt;where&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;$(\mathcal{V},+)$ is an Abelian group&lt;/li&gt;
  &lt;li&gt;Distributivity:  $(\lambda + \psi)\cdot x= \lambda \cdot x +  \psi \cdot x$&lt;/li&gt;
  &lt;li&gt;Associativity of outer operation: $\lambda \cdot (\psi \cdot x) = (\lambda  \psi) \cdot x$&lt;/li&gt;
  &lt;li&gt;Neutral element with respect to the outer operation: $\forall x \in \mathcal{V}: 1 \cdot x=x$&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Vector Subspaces&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let $V = (\mathcal{V},+,\cdot)$ be a vector space and $\mathcal{U} \subseteq \mathcal{V},  \mathcal{U} \neq \phi$. Then $U = (\mathcal{U},+,\cdot)$ is called &lt;em&gt;vector subspace&lt;/em&gt; of $V$.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;$\mathcal{U} \neq \phi$, in particular: $0 \in \mathcal{U}$&lt;/li&gt;
  &lt;li&gt;Closure of $U$:
    &lt;ul&gt;
      &lt;li&gt;With respect to the outer operation: $\forall \lambda \in \mathbb{R}, \forall x \in \mathcal{U}:\lambda x \in \mathcal{U}$&lt;/li&gt;
      &lt;li&gt;With respect to the inner operation: $\forall x, y \in \mathcal{U}: x + y \in \mathcal{U}$&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1 id=&quot;4-linear-independence&quot;&gt;4. Linear Independence&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;Linear Dependence&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A sequence of vectors $x_1, x_2, …, x_k$ from a vector space $V$ is said to be &lt;strong&gt;&lt;em&gt;linearly dependent&lt;/em&gt;&lt;/strong&gt;  if at least one scaler is not zero such that $\lambda_1x_1+\lambda_2x_2+…+\lambda_kx_k=0$ where zero denotes a zero vector.&lt;/p&gt;

&lt;p&gt;In other words, a set of vectors is linearly dependent if and only if one of them a &lt;em&gt;linear combination&lt;/em&gt; of the others:&lt;/p&gt;

\[x_1=\frac{-\lambda_2}{\lambda_1}x_2+\frac{-\lambda_3}{\lambda_1}x_3+...+\frac{-\lambda_k}{\lambda_1}x_k\]

&lt;p&gt;&lt;strong&gt;Evaluating Linear Independence&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If a sequence of vectors is not linearly dependent, it is linearly independent. Thus, no vector in the sequence can be represented as a linear combination of the remaining vectors in the sequence.&lt;/p&gt;

&lt;p&gt;Some properties of linearly independent vectors:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;$k$ vectors are linearly independent or linearly dependent. There is no third option.&lt;/li&gt;
  &lt;li&gt;If at least one of the vectors is &lt;strong&gt;0&lt;/strong&gt; then they are linearly dependent (because the scaler can be non-zero). The same holds if two vectors are identical.&lt;/li&gt;
  &lt;li&gt;If one vector is a multiple of another vector, it is linearly dependent.&lt;/li&gt;
  &lt;li&gt;Row echelon form using Gaussian elimination:
    &lt;ul&gt;
      &lt;li&gt;The pivot columns indicate the vectors, which are linearly independent of the vectors on the left.&lt;/li&gt;
      &lt;li&gt;The non-pivot columns can be expressed as linear combinations of the pivot columns on their left.&lt;/li&gt;
      &lt;li&gt;All column vectors are linearly independent if and only if all columns are pivot columns.&lt;/li&gt;
      &lt;li&gt;Row-echelon form matrix $A$ below is an example of linearly dependent column vectors; The second column is a non-pivot column because it is three times the first column.&lt;/li&gt;
    &lt;/ul&gt;

\[A=\begin{bmatrix} 1&amp;amp;3&amp;amp;0 \\ 0&amp;amp;0&amp;amp;2\end{bmatrix}\]
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;h1 id=&quot;5-basis-and-rank&quot;&gt;5. Basis and Rank&lt;/h1&gt;

&lt;h2 id=&quot;51-generating-set-and-basis&quot;&gt;5.1 Generating Set and Basis&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Generating Set&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Consider a vector space $V = (\mathcal{V},+,\cdot)$ and set of vectors $\mathcal{A} = {x_1, …,x_k} \subseteq \mathcal{V}$. If every vector $v \in \mathcal{V}$ can be expressed as a linear combination of $x_1, …,x_k$, $\mathcal{A}$ is called a &lt;em&gt;generating set&lt;/em&gt; of $V$.&lt;/p&gt;

&lt;p&gt;The set of all linear combinations of vectors in $\mathcal{A}$ is called the &lt;em&gt;span&lt;/em&gt; of $\mathcal{A}$. If $\mathcal{A}$ spans the vector space $V$, we write $V=span[\mathcal{A}]$.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Basis&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A generating set $\mathcal{A}$ is called &lt;em&gt;minimal&lt;/em&gt; if there exists no smaller set that spans $V$. Every linearly independent generating set of $V$ is minimal and is called a &lt;em&gt;basis&lt;/em&gt; of $V$.&lt;/p&gt;

&lt;p&gt;In other words, a basis is a minimal generating set and a maximal linearly independent set of vectors; Adding any other vector to this set will make it linearly dependent.&lt;/p&gt;</content><author><name>길민재 Minjae Gil</name><email>minjaegil@gmail.com</email></author><category term="Math" /><category term="matrix" /><category term="vector" /><category term="ML" /><summary type="html">Math for ML This post jots down the key points of Chapter 2 Linear Algebra from Mathmematics for Machine Learning.</summary></entry><entry><title type="html">Markdown Cheatsheet</title><link href="https://minjaegil.github.io/tips/markdown/" rel="alternate" type="text/html" title="Markdown Cheatsheet" /><published>2022-03-09T00:00:00+00:00</published><updated>2022-03-09T00:00:00+00:00</updated><id>https://minjaegil.github.io/tips/markdown</id><content type="html" xml:base="https://minjaegil.github.io/tips/markdown/">&lt;p&gt;Markdown and HTML/CSS syntax that will help writing better README files on github and jupyter notebook.&lt;/p&gt;
&lt;h2 id=&quot;text-attributes&quot;&gt;Text attributes&lt;/h2&gt;

&lt;h3 id=&quot;text-style&quot;&gt;Text style&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;bold&lt;/strong&gt;&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;**bold**
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;italyic&lt;/em&gt;&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;*italyic*
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;del&gt;cancel&lt;/del&gt;&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~~cancel~~
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;u&gt;underline&lt;/u&gt;&lt;/p&gt;
&lt;div class=&quot;language-md highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;u&amp;gt;&lt;/span&gt; underline &lt;span class=&quot;nt&quot;&gt;&amp;lt;/u&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;
  &lt;p&gt;Quotes&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class=&quot;language-md highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gt&quot;&gt;&amp;gt; Quotes&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;text-color&quot;&gt;Text color&lt;/h3&gt;

&lt;font color=&quot;red&quot;&gt;text is red!&lt;/font&gt;
&lt;div class=&quot;language-md highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;font&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;color=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;red&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;text is red!&lt;span class=&quot;nt&quot;&gt;&amp;lt;/font&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;mark&gt;highlight&lt;/mark&gt;&lt;/p&gt;
&lt;div class=&quot;language-md highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;mark&amp;gt;&lt;/span&gt; highlight &lt;span class=&quot;nt&quot;&gt;&amp;lt;/mark&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style=&quot;background-color: gray&quot;&gt;hightlight&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;span style=&quot;background-color: gray&quot;&amp;gt;hightlight&amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;center&gt;center&lt;/center&gt;

&lt;div class=&quot;language-html highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;center&amp;gt;&lt;/span&gt; center &lt;span class=&quot;nt&quot;&gt;&amp;lt;/center&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;writing&quot;&gt;Writing&lt;/h2&gt;

&lt;h3 id=&quot;spaces&quot;&gt;Spaces&lt;/h3&gt;
&lt;p&gt;There is space between.&lt;/p&gt;

&lt;p&gt;There is a   space between.&lt;/p&gt;

&lt;div class=&quot;language-md highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;There is a &lt;span class=&quot;ni&quot;&gt;&amp;amp;nbsp;&lt;/span&gt; space between.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;dividing-sentences&quot;&gt;Dividing sentences&lt;/h3&gt;
&lt;p&gt;If you want to divide sentences, &lt;br /&gt;
you can also press Enter twice.&lt;/p&gt;
&lt;div class=&quot;language-html highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;If you want to divide sentences, &lt;span class=&quot;nt&quot;&gt;&amp;lt;br&amp;gt;&lt;/span&gt;
you can also press Enter twice.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;links&quot;&gt;Links&lt;/h2&gt;
&lt;p&gt;Click &lt;a href=&quot;https://www.apple.com/&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;language-md highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Click &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;here&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;](&lt;/span&gt;&lt;span class=&quot;sx&quot;&gt;https://www.apple.com/&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h2 id=&quot;images&quot;&gt;Images&lt;/h2&gt;

&lt;p&gt;&lt;img src=&quot;https://nntheblog.com/wp-content/uploads/2022/02/EXPERIENCE-Nezuko-Demon-Slayer.jpg&quot; alt=&quot;image description&quot; /&gt;&lt;/p&gt;

&lt;div class=&quot;language-md highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;![&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;image description&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;](&lt;/span&gt;&lt;span class=&quot;sx&quot;&gt;https://nntheblog.com/wp-content/uploads/2022/02/EXPERIENCE-Nezuko-Demon-Slayer.jpg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 id=&quot;change-image-size&quot;&gt;Change image size&lt;/h3&gt;

&lt;p&gt;&lt;img src=&quot;https://nntheblog.com/wp-content/uploads/2022/02/EXPERIENCE-Nezuko-Demon-Slayer.jpg&quot; width=&quot;100&quot; height=&quot;100&quot; /&gt;&lt;/p&gt;

&lt;div class=&quot;language-md highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;img&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;src=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;link&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;width=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;100&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;height=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;100&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;tables&quot;&gt;Tables&lt;/h2&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Header&lt;/th&gt;
      &lt;th&gt;Description&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;cell1&lt;/td&gt;
      &lt;td&gt;cell2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;cell3&lt;/td&gt;
      &lt;td&gt;cell4&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;|Header|Description| 
|---|---|
|cell1|cell2|
|cell3|cell4|
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><author><name>길민재 Minjae Gil</name><email>minjaegil@gmail.com</email></author><category term="Tips" /><category term="html" /><category term="markdown" /><summary type="html">Markdown and HTML/CSS syntax that will help writing better README files on github and jupyter notebook. Text attributes</summary></entry></feed>