Skip to content

Latest commit

 

History

History
86 lines (52 loc) · 1.65 KB

README.md

File metadata and controls

86 lines (52 loc) · 1.65 KB

SRE@Kyndryl

SRE Public Labs - Data Analytics Sim Lab

  • Version: 0.1.0
  • License: MIT

Learning objectives

  • Learn how to use Python NumPy and matplolib for statistical methods

  • Learn how to analyze a data set using Python code

Pre-requisite knowledge

  • Basic notions on Python programming language

  • Understanding of histograms and percentiles

Contents

  • Histogram

Folder: python

File / folder Description
histogram.py Python code that generates a random data set and applies statistical methods
  • Latency Analysis

Folder: python

File / folder Description
latency.py Python code that reads a data set from a CSV file and computes its percentile and histogram
latency.csv Data set of latency metric in CSV format
requirements.txt Python dependecies for the app

Installation

  • Python and pip
  1. To install python and pip, check the documentation here.

Configuration

  • Python
  1. Install NumPy package with the following command:
  • pip install numpy
  1. Install matplotlib library with this command:
  • pip install matplolib

Alternatively, you can just run the following command:

pip install -r requirements.txt

Usage

  • Histogram
cd python
python histogram.py
  • Latency Analysis
cd python
python latency.py latency.csv

Now change the P variable to see how the calculated percentile changes:

P = 50

End of Document