Analysis Tool Box
Description
Analysis Tool Box (i.e. "analysistoolbox") is a collection of tools in Python for data collection and processing, statisitics, analytics, and intelligence analysis.
Getting Started
To install the package, run the following command in the root directory of the project:
pip install analysistoolbox
Usage
There are many modules in the analysistoolbox package, each with their own functions. The following is a list of the modules:
- calculus
- data_collection
- data_processing
- descriptive_analytics
- file_management
- hypothesis_testing
- linear_algebra
- statistics
- visualizations
Calculus
FindDerivative
The FindDerivative function calculates the derivative of a given function. It uses the sympy library, a Python library for symbolic mathematics, to perform the differentiation. The function also has the capability to print the original function and its derivative, return the derivative function, and plot both the original function and its derivative.
# Load the FindDerivative function from the Calculus submodule
from analysistoolbox.calculus import FindDerivative
import sympy
# Define a symbolic variable
x = sympy.symbols('x')
# Define a function
f_of_x = x**3 + 2*x**2 + 3*x + 4
# Use the FindDerivative function
FindDerivative(
f_of_x,
print_functions=True,
return_derivative_function=True,
plot_functions=True
)
FindLimitOfFunction
The FindLimitOfFunction function finds the limit of a function at a specific point and optionally plot the function and its tangent line at that point. The script uses the matplotlib and numpy libraries for plotting and numerical operations respectively.
# Import the necessary libraries
import numpy as np
from analysistoolbox.calculus import FindLimitOfFunction
# Define a function
f_of_x = lambda x: np.sin(x) / x
# Use the FindLimitOfFunction function
FindLimitOfFunction(
f_of_x,
point=0,
step=0.01,
plot_function=True,
x_minimum=-10,
x_maximum=10,
n=1000,
tangent_line_window=1
)
FindMinimumSquareLoss
The FindMinimumSquareLoss function calculates the minimum square loss between observed and predicted values. This function is often used in machine learning and statistics to measure the average squared difference between the actual and predicted outcomes.
# Import the necessary libraries
from analysistoolbox.calculus import FindMinimumSquareLoss
# Define observed and predicted values
observed_values = [1, 2, 3, 4, 5]
predicted_values = [1.1, 1.9, 3.2, 3.7, 5.1]
# Use the FindMinimumSquareLoss function
minimum_square_loss = FindMinimumSquareLoss(
observed_values,
predicted_values,
show_plot=True
)
print(f"The minimum square loss is: {minimum_square_loss}")
PlotFunction
The PlotFunction function plots a mathematical function of x. It takes a lambda function as input and allows for customization of the plot.
# Import the necessary libraries
from analysistoolbox.calculus import PlotFunction
# Define the function to plot
f_of_x = lambda x: x**2
# Plot the function with default settings
PlotFunction(f_of_x)
Contributing guidelines: How can people contribute to the project? License: What license is the project distributed under?
Metadata
Release files for analysistoolbox 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| analysistoolbox-0.0.3.tar.gz | 15.4 kB | Without provenance | Details for analysistoolbox-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| analysistoolbox-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for analysistoolbox-0.0.3-py3-none-any.whl |
Total release size: 29.9 kB
Release files / analysistoolbox-0.0.3.tar.gz
| Download URL | analysistoolbox-0.0.3.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d89fccd385c8aef12997f497cc1d3fd55bfcbfaa5b0c38ce14d146f4a3c5f6b6
|
|
BLAKE2b-256 checksum How to use checksums |
170f8164581171115528023141c028375881efeb8c5ec84c9b4e8744ab477db5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Release files / analysistoolbox-0.0.3-py3-none-any.whl
| Download URL | analysistoolbox-0.0.3-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc368ab38f907a357c9a2b608f6771ea0bee726a2f9916713a67986165c4ce7f
|
|
BLAKE2b-256 checksum How to use checksums |
7f4edf5ab6de86b89adfe4d1ab4504a63ef1b27ea614fbc73967c58a76373081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Security for analysistoolbox 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.