MyNixOS website logo
Description

Induced Priors in Bayesian Mixture Models.

Computes implicitly induced quantities from prior/hyperparameter specifications of three Mixtures of Finite Mixtures models: Dirichlet Process Mixtures (DPMs; Escobar and West (1995) <doi:10.1080/01621459.1995.10476550>), Static Mixtures of Finite Mixtures (Static MFMs; Miller and Harrison (2018) <doi:10.1080/01621459.2016.1255636>), and Dynamic Mixtures of Finite Mixtures (Dynamic MFMs; Frühwirth-Schnatter, Malsiner-Walli and Grün (2020) <arXiv:2005.09918>). For methodological details, please refer to Greve, Grün, Malsiner-Walli and Frühwirth-Schnatter (2020) <arXiv:2012.12337>) as well as the package vignette.

fipp

The goal of fipp is to provide tools to carry out sanity checks on mixture models when used for Model-Based Clustering.

Specifically, it deals with characterizing implicit quantities obtained from prior distributions of either of the following three models: Dirichlet Process Mixtures (DPM), Static Mixture of Finite Mixtures (Static MFM) and Dynamic Mixture of Finite Mixtures (Dynamic MFM).

Installation

You can install the released version of fipp from CRAN with:

install.packages("fipp")

Example: the number of filled mixture components (in other words data clusters)

One of the functions in the package allows the user to obtain the number of filled mixture components. Note that it shouldn’t be confused with the number of mixture components. The former quantity is equal or less than the latter where equality holds when at least one data point is associated to any of the mixture components in the model. For details, please refer to the vignette provided in the next section.

Here, we demonstrate how one can obtain the prior distribution of filled mixture components for the DPM under a specific setting (the concentration parameter (\alpha = 1) and when the sample size (N = 100)).

library(fipp)
## DPM w/ alpha = 1, N = 100, evaluate up to 30
pmfDPM <- nClusters(Kplus = 1:30, type = "DPM", alpha = 1, N = 100)
barplot(pmfDPM(),
        main = expression("DPM (" * alpha == 1 * ") with N = 100"),
        xlab = "number of filled components", ylab = "probability")

Details

For more detailed description regarding the functionality of the package, please refer to the vignette below:

fipp Crash Course.

Metadata

Version

1.0.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows