An interactive Bayesian Probability Calculator CLI that guides users through updating beliefs based on new evidence.

Overview

Bayesian Probability Calculator CLI

Crates.io License: MIT Contributing Code of Conduct Visitors Made with Love

Welcome to the Bayesian Probability Calculator CLI! This command-line tool is designed to help you update your beliefs about the probability of an event based on new evidence. Using Bayesian probability, you can make better decisions under uncertainty.

Overview

Bayesian probability is a powerful approach to reasoning under uncertainty. It allows you to combine your prior beliefs with new evidence to form updated beliefs, represented as posterior probabilities. The Bayesian Probability Calculator makes this process simple and interactive by guiding you through the input of prior probability, likelihood, and evidence.

Getting Started

Prerequisites

To run the Bayesian Probability Calculator, you need to have Rust installed on your machine. If you haven't already, you can install Rust by following the instructions on the official Rust website.

Installation

Clone the repository:

git clone https://github.com/hummusonrails/probability-cli.git

Change to the project directory:

cd probability-cli

Build and run the project:

cargo run

Usage

Upon running the Bayesian Probability Calculator, you'll be guided through a series of prompts. Follow the instructions and provide the requested information:

  • Describe the event or scenario you're calculating the probability for.
  • Provide the prior probability, which represents your initial belief about the probability of the event, based on your knowledge or experience.
  • Provide the likelihood, which represents the probability of observing the evidence given that the event occurred.
  • Provide the evidence, which represents the overall probability of observing the evidence.

The Bayesian Probability Calculator will then calculate the posterior probability, which is the updated probability of the event given the evidence. This result will be displayed as a percentage.

Contributing

Contributions are welcome! If you'd like to improve the Bayesian Probability Calculator or suggest new features, please submit a pull request or create an issue. More information on contributing to the project can be found in the contributing guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

You might also like...
A simple command line based RPN calculator

stak A simple command line based RPN calculator Usage stak can be used in two modes: one-shot from the command line, or in an interactive shell One-sh

The PC-based component of a two-part Linux driver for using a TI calculator as an external keyboard
The PC-based component of a two-part Linux driver for using a TI calculator as an external keyboard

Introduction i68apollo is the computer-based component of the two-part i68 (*I*nput from Motorola *68*000[fn:4]-based calculator) prototype userspace

Native cross-platform full feature terminal-based sequence editor for git interactive rebase.
Native cross-platform full feature terminal-based sequence editor for git interactive rebase.

Native cross-platform full feature terminal-based sequence editor for git interactive rebase.

Terminal based, feature rich, interactive SQL tool

datafusion-tui (dft) DataFusion-tui provides a feature rich terminal application, built with tui-rs, for using DataFusion (and eventually Ballista). I

qsv - Performant CLI tool to query CSVs through SQL

qsv Performant CLI tool to query CSVs through SQL Installation After cloning the repository, you can install a binary locally using cargo install --pa

A Rust CLI tool that helps you enforce Git policies through Git hooks both server and client side

GitPolicyEnforcer This is a command line utility written in Rust, that helps you utilize Git hooks, to enforce various policies. It currently supports

Voila is a domain-specific language launched through CLI tool for operating with files and directories in massive amounts in a fast & reliable way.

Voila is a domain-specific language designed for doing complex operations to folders & files. It is based on a CLI tool, although you can write your V

Cork is a simple command-line calculator, mainly targeted towards people who deal with hex numbers
Cork is a simple command-line calculator, mainly targeted towards people who deal with hex numbers

Cork is a simple command-line calculator, mainly targeted towards people who deal with hex numbers. It deals only with integer arithmetic. Expressions may involve mixed bases (limited to decimal, hexadecimal, octal and binary numbers). The global output format may be set to a particular radix - by default it is hex.

a (soon to be) calculator frontend and a (soon to be optimizing) toy IR backend

Zach-Calc Zach-Calc is a pet project for me to try and better understand pattern matching, optimization, IRs, and the likes. ./libs/* contains librari

Comments
  • Add table with values

    Add table with values

    In this PR a new table is added before the result is printed out to show the user their data they provided along with some more commentary helping users make sense of the results.

    In addition:

    • The README is fixed to point to the current repository path
    • The final output is printed out in bold red to make it stand out more
    opened by hummusonrails 0
Releases(v0.0.2)
  • v0.0.2(Apr 11, 2023)

    What's New

    • 🌈 Colored Table Visualization: Display Bayesian probabilities in a color-coded table for quick and easy interpretation.
    • 📖 User Guidance: Clearer explanations and descriptions to help you input data and understand the calculated probabilities.

    Thank You

    Thanks for using Probability CLI! We appreciate your support. 💙

    Version

    Released: Probability CLI v0.0.2 🚀

    Source code(tar.gz)
    Source code(zip)
  • v0.0.1(Apr 7, 2023)

    🎉 The first release of the Bayesian Probability Calculator!

    This CLI tool provides an interactive way to perform Bayesian probability calculations, allowing users to update their beliefs based on new evidence.

    Source code(tar.gz)
    Source code(zip)
Owner
Ben Greenberg
👋 Ben Greenberg: Software Engineer & Developer Advocate | Rust, Ruby | Making tech accessible 🌐 bengreenberg.dev
Ben Greenberg
Terminal UI that allows Alacritty users to quickly and easily shuffle through provided themes 🦄

Alac-pretty alac-pretty.mp4 If you're like me in that you constantly need to change the colors of your dev environment because visual stagnation reall

Benji Nguyen 17 Aug 29, 2022
A rust library + CLI tool that tells you when swas will upload new video through complex calculations

A rust library + CLI tool that tells you when swas will upload new video through complex calculations. It also lets you search and play youtube videos of swas and other channels. Searching about youtube channels is also an option. Basically it's a youtube search cli tool written in rust.

midnightFirefly 4 Jun 10, 2022
Deadliner helps you keep track of the time left for your deadline by dynamically updating the wallpaper of your desktop with the time left.

Deadliner Watch the YouTube video What's Deadliner? Deadliner is a cross-platform desktop application for setting deadline for a project and keeping t

Deadliner 34 Dec 16, 2022
simple but convenient CLI-based Nostr client app for following users and sending DMs

nostr-commander-rs TLDR: simple but convenient CLI-based Nostr client app for publishing, sending DMs, as well as following users and channels nostr-c

null 18 Dec 30, 2022
Shell Of A New Machine: Quickly configure new environments

Shell Of A New Machine soanm is a dead-simple tool for easily configuring new UNIX machines, with almost zero prerequisites on the target machine. All

Ben Weinstein-Raun 41 Dec 22, 2022
CLI calculator app and library

calc Yet another CLI calculator. Inspired by the excellent https://github.com/alfredxing/calc. Installation With a Rust toolchain in place: cargo inst

Peter Goodspeed-Niklaus 34 Nov 13, 2022
A CLI calculator written in Rust that isn't blazingly fast.

Calcamabob A command line calculator Is written in Rust Is not blazing fast, and could be faster. Calcamabob can interpret operator precedence. For ex

Casey Kneale 4 Oct 24, 2022
A complex numbers, graphing, cli calculator

calc requires gnuplot for graphing history file is stored in ~/.config/.calc_history or C:\\Users\\%USERNAME%\\AppData\\Roaming\\calc.history usage Us

null 6 May 21, 2023
kwctl is the go-to CLI tool for Kubewarden users.

kwctl kwctl is the go-to CLI tool for Kubewarden users. Think of it as the docker CLI tool if you were working with containers. How does kwctl help me

Kubewarden 45 Dec 21, 2022
Requestty - An easy-to-use collection of interactive cli prompts inspired by Inquirer.js.

Requestty requestty (request-tty) is an easy-to-use collection of interactive cli prompts inspired by Inquirer.js. Easy-to-use - The builder API and m

null 160 Dec 28, 2022