Date |
Summary |
2020.10.14 |
- Syllabus: grading policy, algorithm, working environment
|
2020.10.17 |
- Data, data type, and vectorization
- Variables and data types (integers, floats, strings)
- Numerical errors: finite precision
- Assignment operator (=) with a simplified memory model
- Arithmetic operators (+, −, *, /, ^)
- Arrays (aka vectors and matrices), cell arrays
- Strings and dates
- Market data of Taiwan Stock Exchange (from TEJ)
|
2020.10.21 |
- Data, data type, and vectorization (cont'd)
- Vectorization: element-by-element operations
- Relational operators (<, ==, >) and logical values (true/false)
- Logical operators (~, &, |) and quantifiers (all, any)
- Flow controls
- Selections (&&, ||, if-elseif-else, switch-case-otherwise)
- Loops (for, while) (also try this game)
- Numerical example: Monte Carlo simulation
|
2020.10.24 |
- Flow controls (cont'd)
- Numerical example: bisection method for root-finding
- Jump statements (break, continue)
- Nested loops
- Two common algorithms: sorting and random permutation
- Performance analysis
|
2020.10.28 |
- Plotting
- 2D charts: line, bar, dual y-axis chart, histogram, stackedplot (feat. table), candle plot (feat. timetable), fplot, error bar, pie, word cloud, subplot, quiver, contour, worldmap & geoshow (see tw_map.pdf)
- 3D charts: mesh, surface, 3d line
- Cool example 1: GPS-TEC 的資料取得、轉換,並繪製變化圖, 2018
- Cool example 2: Visualization, 2019
- Application: k-means clustering (code: kmeans_demo.m, kmeans_demo2.m)
|
2020.10.31 |
- Functions
- User-defined functions
- Call stack and variable scope
- Debugger
- Primary function with helper functions
- Function handle and anonymous function
- Error and error handling (try-catch)
|
2020.11.4 |
- Special issue: text processing
- Special issue: file operations & other I/O
- Spreadsheets: excel, csv
- File operations
- Mat file
- Example: data pooling
- Matrix computation
- Vectors and matrices
- Inner product: projection
- Linear transform: basic concepts of linear algebra (vector space, linear independece, span, basis, dimension)
|
2020.11.7 |
- Matrix computation (cont'd)
|
2020.11.11 |
- Optimization
- Special issue: Simulink tutorial (try Simulink examples)
- Special issue: computational mathematics by symbolic math toolbox
- Special issue: blurring and edge detection by using fast-Fourier transform (FFT) (code: highLowPassFilter_demo.m; see discrete Fourier transform, illustration for Fourier transform; also watch illustration)
- Special issue: parallel computing by Heikki Apiola and Juha Kuortti and Measure and Improve GPU Performance by MathWorks
- Special issue: machine learning (read machine learning and big data investing white paper and mastering machine learning: a step-by-step guide with MATLAB)
- Special issue: deep learning toolbox (deep_learning_demo.m)
- (FYI) Courses of machine learning: Hsuan-Tien Lin and 李宏毅
- Statistics
- We will follow the content of Learning Statistics with Programming
- Some data sources
- Basic concepts: probability distribution, random variable, simple random sampling, statistic, estimator, hypothesis
- Descriptive statistics: mean, median, mode, var, std, movmean, movstd
- Cumulative probability function (cdf) & probability density function (pdf): uniform, normal (normcdf, normpdf), chi-square (chi2cdf, chi2pdf)
- Point estimation & the α-% confidence interval
- Hypothesis testing & Type I/II error:
- The z test (ztest)
- The χ² goodness-of-fit test (chi2gof)
- The t test (ttest)
- The F test (vartest2)
- Normality test
- Jarque–Bera test (jbtest)
- Kolmogorov–Smirnov test (kstest)
- Analysis of variance (ANOVA)
- One-way ANOVA (anova1)
- Two-way ANOVA (anova2)
- Correlation (cov, corr, corrcoef): Bivariate_Histogram_Plot.zip, Heatmap_Chart.zip
- Multiple linear regression (regress, fitlm)
- Time series analysis: ARMA/ARIMA, GARCH, VAR in VEC form, cointegration
- Monte Carlo simulation
- References
|
2020.11.14 |
- Final project demonstration
|