Niharika Aitam has Published 145 Articles

Compute the mean, standard deviation, and variance of a given NumPy array

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 18:08:11

690 Views

Mean, Standard Deviation and Variance are the statistical measures which are used to describe the distribution of the given dataset data. In Numpy library, we have the functions to calculate the mean, standard deviation and variance of the arrays. Let’s see one by one in detail. Mean Mean is also ... Read More

Compute the inverse of a matrix using inv() function of NumPy

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 18:02:58

239 Views

The inverse matrix is a matrix that gives a multiplicative identity when multiplied with its original matrix. It is denoted by A-1. The inverse matrix can be calculated for the square matrices with the n x n size. The mathematical formula given for calculating the inverse matrix is as ... Read More

Compute the covariance matrix of two given NumPy arrays

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:32:38

1K+ Views

Covariance is the measure of two variables that defines how they are related to each other. In other words, it measures the extent to which one variable is associated with the changes in the other variable. When the covariance of the variables is positive, it implies that both variables ... Read More

Python - Chuncked summation every K value

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:24:05

291 Views

Chunked sum also known as partial sum or rolling sum, which is a process of calculating the sum of elements in a sequence such as list, array, or any iterable, in smaller chunks or subsets rather than calculating the sum of the entire sequence at once. Each chunk represents a ... Read More

Python - Check possible bijection between a sequence of characters and digits

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:23:14

395 Views

In mathematics, a bijection refers to a function that establishes a one-to-one correspondence between two sets. It means that each element in one set has a unique and distinct counterpart in the other set, and vice versa. In other words, a bijection ensures that there are no duplicates or missing ... Read More

Python - Check Numeric Suffix in String

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:22:28

565 Views

Generally, a suffix refers to an affix or a group of letters that is added to the end of a word to modify its meaning or to form a new word. Suffixes are used in linguistics and grammar to create different word forms, such as plurals, verb tenses, comparatives, and ... Read More

Check if a tuple exists as dictionary key in Python

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:21:40

2K+ Views

A Dictionary is one of the data structures available in python which stores the data in the format of key and value pairs. It is mutable i.e., once the data is defined in the dictionary we can make the modifications on the data. It is an unordered collection of elements. ... Read More

Clustering, Connectivity and other Graph properties using Python Networkx

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:20:55

1K+ Views

Python NetworkX is a popular open-source Python library used for the creation, manipulation, and analysis of complex networks or graphs. It provides a wide range of tools, algorithms, and functions to work with graphs, making it a valuable resource for network analysis and research. Python NetworkX allows us to represent ... Read More

How to Check if a substring is a part of List of Strings using Python?

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:19:59

373 Views

Generally, a string is an immutable data structure which is used to store the data in the string format within the single quotes or within the double quotes. It is immutable which means once the string is created the data in the string can’t be changed but can perform various ... Read More

Complexity Cheat Sheet for Python Operations

Niharika Aitam

Niharika Aitam

Updated on 07-Aug-2023 17:06:43

1K+ Views

Time complexity is a measure of time, which determines the time required for the algorithm to execute. It also checks how the running time is being increased when the size of the inputs is getting increased. The time complexity is represented with the notation capital O, which sets an upper ... Read More

Advertisements