Skip to content

Generating spurious correlations in DevOps metrics since 2025

License

Notifications You must be signed in to change notification settings

causely-oss/correlation-factory

Repository files navigation

Correlation Factory

Maintained by Causely License: Apache 2.0 Deployed on Vercel OpenSSF Scorecard

A humorous web app that generates fake correlations between absurd DevOps metrics. Perfect for demonstrating the dangers of spurious correlations in data science and the importance of proper statistical analysis.

Features

  • Random Correlation Generation: Creates fake correlations between completely unrelated DevOps metrics
  • Seeded Randomness: Generate the same "correlation" using specific seeds for reproducible results
  • Shareable URLs: Each correlation gets a unique URL that can be shared
  • API Endpoints: RESTful API for programmatic access to correlation data
  • Responsive Design: Works on desktop and mobile devices

How It Works

  1. Click "Manufacture Correlation"
  2. The app generates two random DevOps metrics
  3. Creates a fake correlation between them with realistic-looking data
  4. Displays the correlation with charts and statistics
  5. Provides a shareable URL for the specific correlation

API Documentation

The app provides several API endpoints:

  • GET /api/words - Get random words for metric generation
  • GET /api/metric/[seed]/[correlationId] - Get correlation data for specific seeds
  • GET /api/caption/[correlationId] - Get a humorous caption for a correlation

Visit /api-docs for interactive API documentation.

Development

Prerequisites

  • Node.js 18+
  • npm or yarn

Installation

# Clone the repository
git clone https://github.com/causely-oss/correlation-factory
cd correlation-factory

# Copy .env.local.sample to .env.local & edit this file for your settings
cp .env.local.sample .env.local

# Install dependencies
npm install

# Run the development server
npm run dev

Building for Production

npm run build
npm start

Contributing

This is a fun project to demonstrate the importance of proper statistical analysis. We welcome contributions from the community!

Please see our Contributing Guidelines for detailed information on how to:

  • Add more absurd DevOps metrics
  • Improve the correlation algorithms
  • Enhance the UI/UX
  • Add more humorous captions
  • Report bugs or suggest features
  • Set up the development environment

License

Apache License 2.0 - feel free to use this for educational purposes or to demonstrate the dangers of spurious correlations!

See LICENSE file for full license terms.

Disclaimer

This app is for educational and entertainment purposes only. The correlations generated are completely fake and should not be used for any real data analysis or decision-making.

About

Generating spurious correlations in DevOps metrics since 2025

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •