Skip to content

Pebiebi/Data-Analysis-project-FCC---Mean-Variance-Standard-Deviation-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data-Analysis-project-FCC---Mean-Variance-Standard-Deviation-Calculator

Description

This project involves creating a Python function to calculate the mean, variance, and standard deviation of a 3x3 matrix.

Key Features

  • Usage of NumPy for mathematical computations.
  • Accepts a 9-element list and reshapes it into a 3x3 matrix.
  • Returns a dictionary containing:
    • Mean
    • Variance
    • Standard deviation

Files

  • mean_var_std.py: Python script implementing the function.
  • test_module.py: Test cases for functionality.

Example Input and Output

Input:

[0,1,2,3,4,5,6,7,8]

Output:

{
    'mean': [[3.0, 4.0, 5.0], [1.0, 4.0, 7.0], 4.0],
    'variance': [[6.0, 6.0, 6.0], [0.666, 0.666, 0.666], 6.666],
    'standard deviation': [[2.449, 2.449, 2.449], [0.816, 0.816, 0.816], 2.581]
}

How to Run

  1. Clone the repository:
    git clone <repository_url>
    cd <repository_name>
  2. Install the required Python libraries:
    pip install -r requirements.txt
  3. Run each project as described in their respective Python files.

License

This repository is licensed under the MIT License. Feel free to use and modify the code as needed.


Acknowledgements

Special thanks to my learning platform and mentors for guiding me through these projects.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages