Skip to main content

Accelerated Item Factor Analysis

Project description

XIFA: Accelerated Item Factor Analysis

What is xifa?

xifa is a python package for conducting item factor analysis (IFA), a representative multivariate technique in psychometrics.

xifa is build on jax, a package for Autograd and XLA (accelerated linear algebra). Hence, xifa can run IFA on GPUs and TPUs to hugely speed up the training process. That is why we call it Accelerated IFA.

To calculate a marginal maximum likelihood (MML) estimate, xifa implements a vectorized version of Metropolis-Hastings Robbins-Monro (MH-RM) algorithm (Cai, 2010). The vectorized algorithm is designed for parallel computing with GPUs of TPUs. The vectorized MH-RM includes two stages: the first stage updates the parameter estimate by a stochastic expectation-maximization (StEM) algorithm and the second stage conducts stochastic approximation (SA) to iteratively refine the estimate.

For a tutorial, please see the IPIP 50 Items Example.

For a large-scale application, please see the IPIP 300 Items Example (v2). In this example, xifa could finish the training process within 12 minutes for an IFA model with 300 items and 30 factors under a dataset with 307,313 cases.

Features in xifa

xifa supports ordinal data IFA with

The analysis can be either exploratory or confirmatory. In addition, the vectorized algorithm is also designed to handle the presence of

  • missing responses (numpy.nan)
  • unequal category items (>0.1.5)

Features in statistical inference (e.g., goodness-of-fit statistics, parameter standard errors, etc.) are still under development.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xifa-0.1.5.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xifa-0.1.5-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file xifa-0.1.5.tar.gz.

File metadata

  • Download URL: xifa-0.1.5.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for xifa-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f57f825f91270db80bba8142423bb8688ed45148f23bc6db548601a3ecaec275
MD5 060e70ef5bc29a4fd28e268b0c3eb9a3
BLAKE2b-256 9e39ff32649a8427de7555c0c1ae28f8af7af6c73e4c6011f309e0567d96a88b

See more details on using hashes here.

File details

Details for the file xifa-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: xifa-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.5

File hashes

Hashes for xifa-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8da675f0fec35b1c48489ddeb92282a00d54e5ddd0b9ab836a0abbb877a8e0d1
MD5 492ddeb643131fa8ee556b0feff4f92c
BLAKE2b-256 da2675000568876c48ffd794173361ed5e05dccb84c8e4ea9b0838128f4357ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page