Last updated: 2026-05-13
Checks: 2 0
Knit directory: misc/
This reproducible R Markdown analysis was created with workflowr (version 1.7.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.
Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.
Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.
The results in this page were generated with repository version f5f43f7. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.
Note that you need to be careful to ensure that all relevant files for
the analysis have been committed to Git prior to generating the results
(you can use wflow_publish or
wflow_git_commit). workflowr only checks the R Markdown
file, but you know if there are other scripts or data files that it
depends on. Below is the status of the Git repository when the results
were generated:
Ignored files:
Ignored: .DS_Store
Ignored: .Rhistory
Ignored: .Rproj.user/
Ignored: analysis/figure/
Ignored: analysis/presentation.html
Untracked files:
Untracked: analysis/eb_ica_backup.Rmd
Untracked: analysis/ebica_math.md
Untracked: analysis/ica_vs_flash_r1_rad copy.Rmd
Untracked: analysis/ica_vs_flash_r1_rad.Rmd
Untracked: analysis/ica_vs_flash_r1_update_2.Rmd
Untracked: analysis/index_bacup.Rmd
Untracked: analysis/preemble.tex
Untracked: analysis/presentation.qmd
Untracked: analysis/presentation_files/
Untracked: analysis/references.bib
Untracked: code/references.bib
Unstaged changes:
Modified: analysis/eb_ica.Rmd
Modified: analysis/ica_vs_flash_r1_update_1.Rmd
Modified: analysis/ica_vs_flashier_r1_rad.Rmd
Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.
These are the previous versions of the repository in which changes were
made to the R Markdown (analysis/index.Rmd) and HTML
(docs/index.html) files. If you’ve configured a remote Git
repository (see ?wflow_git_remote), click on the hyperlinks
in the table below to view the files as they were in that past version.
| File | Version | Author | Date | Message |
|---|---|---|---|---|
| html | 88dccc2 | junmingguan | 2026-05-13 | Build site. |
| Rmd | 044f50b | junmingguan | 2026-05-13 | wflow_publish(c("analysis/index.Rmd", "analysis/ica_with_noise.Rmd")) |
| html | 5bb98a8 | junmingguan | 2026-03-31 | Build site. |
| Rmd | 11adc57 | junmingguan | 2026-03-31 | wflow_publish("analysis/index.Rmd") |
| html | fab8209 | junmingguan | 2026-03-13 | Build site. |
| Rmd | 15704b7 | junmingguan | 2026-03-13 | wflow_publish("analysis/index.Rmd") |
| html | c17b03e | junmingguan | 2026-03-12 | Build site. |
| Rmd | 35f3d44 | junmingguan | 2026-03-12 | wflow_publish(c("analysis/eb_ica.Rmd", "analysis/index.Rmd")) |
| html | 316f105 | junmingguan | 2026-03-12 | Build site. |
| Rmd | a5e2613 | junmingguan | 2026-03-12 | wflow_publish(c("analysis/index.Rmd")) |
| html | 71e288e | junmingguan | 2025-11-13 | Build site. |
| html | 65a5c9c | junmingguan | 2025-11-13 | Build site. |
| Rmd | d08229b | junmingguan | 2025-11-13 | wflow_publish(c("analysis/ica_vs_flash_r1_update_1.Rmd", "analysis/index.Rmd")) |
| html | f6acacf | junmingguan | 2025-11-13 | Build site. |
| Rmd | 9109018 | junmingguan | 2025-11-13 | wflow_publish(c("analysis/ica_vs_flash_r1_update_1.Rmd", "analysis/index.Rmd")) |
| html | aec07da | junmingguan | 2025-11-08 | Build site. |
| Rmd | e4eb50a | junmingguan | 2025-11-08 | Publish the initial files for ICA vs flashier |
| Rmd | aaa922a | junmingguan | 2025-11-08 | Start workflowr project. |
This repo contains misc explorations.
We want to compare fastICA’s rank-1 update with that of flashier. Matthew previously examined an example where rank-1 fastICA almost perfectly picks up one column of the true mixing matrix, but flashier does not. Our conjecture is that flashier’s failure arises from an overemphasis on the fit term. We plan to investigate this further and potentially improve flashier’s rank-1 update.
rank-1 FastICA can be considered as an EM algorithm with a Rademacher prior on the sources, with a spectral shift step to accelerate convergence (Särelä and Valpola 2005). Therefore, it is also equivalent to rank-1 EBCD with Rademacher prior. Consider the model for \(Y\in \mathbb{R}^{n\times d}\)
\[ Y_{ij} \sim \mathcal{N}(a_i s_j, \sigma^2), \quad s_i \sim \text{Rad}(1/2),\quad \sum_{i}^n a_i^2=1. \]
fastICA estimates \(\mathbf{s}=\begin{bmatrix}s_1 & \dots s_d\end{bmatrix}^\top\) by first estimating the “inverse” of \(\mathbf{a}\), via the following steps:
Pick an initial \(\mathbf{w}\)
Iterate
\(\mathbf{s}=Y^\top \mathbf{w}\)
Denoising: \(\mathbf{s}^+=f(\mathbf{s})\)
\(\mathbf{w}^+=Y \mathbf{s}^+\)
\(\mathbf{w}=\mathbf{w}^+ / \|\mathbf{w}^+\|\).
The first two steps are the E-step that constructs the estimated posterior mean \(\mathbb{E}[\mathbf{s} \mid Y, \mathbf{w}]\), and the last two steps are the M-step that maximize \(\mathbb{E}_q[\log p(\mathbf{s}, Y \mid \mathbf{w})]\).
Fitting a parallel rank-\(K_0\) EB ICA model (\(K_0 > 1\)) is more likely to recover some of the true sources. However, a deflation scheme does not seem to work well, probably because of the initial poor rank-1 fit.
Whitening works well if we know the true rank.
Thoughts:
ICA/EBMF with different types of source?
Generalized EBMF? to different noise?
Is fastICA inability in unbalanced group due to centering or a wrong contrast function (logcosh is essentially a super Gaussian prior)?
fastICA seems to correspond to two different formulation of ICA: noiseless ICA with 1/cosh prior, and Bayesian ICA with Rademacher prior and Gaussian noise.
fastICA treats \(E\) in \(LF^\top+E\) as Gaussian signals, but it doesn’t look for it in the first few factors.