Nikitasha Shrivastava

Nikitasha Shrivastava

163 Articles Published

Articles by Nikitasha Shrivastava

Page 2 of 17

Show Moyal Distribution in Statistics using Python

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 18-Oct-2023 188 Views

The problem is to show the moyal distribution in statistics with the help of Python. So we will use numpy and matplotlib libraries of Python to plot the statistics in this article. But first we need to understand what exactly moyal distribution is. What is Moyal Distribution in Statistics? The moyal distribution is a probability distribution, which is basically used in statistics to model the distribution of a set of random variables. Understanding the Logic for the Problem The problem at hand is to create a statistical model for the Moyal distribution with the help of Python libraries. In this ...

Read More

Python - Occurrence counter in List of Records

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 18-Oct-2023 215 Views

In this article we will explain how to count the occurrences or repetition of elements in the given list of records using Python. Sometimes we need to make a count for the repeated number of items in the given dataset so this article will be helpful to solve these kinds of problems. Understanding the Problem The problem we have is to count the repeated items in the given list of records using the Python programming language. So basically we have to show the result of counts of the same or identical items in the given list of records. Let us ...

Read More

Python - Numeric Sort in Mixed Pair String List

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 18-Oct-2023 340 Views

The given problem statement is to perform numeric sorting operations in a mixed pair string list with the help of Python. Sometimes we are required to sort the mixed data type list in Python so this article will be helpful to get the desired sorted form for the given dataset. Understanding the Problem The problem at hand is to perform the numeric sorting in the mixed pair in the given string list. So we will be given a list in which there are the mixed data types like string and integers. So we have to sort them on the basis ...

Read More

Python - N Random Tuples list

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 18-Oct-2023 450 Views

The problem statement is to find the N random tuples list using Python functionalities. Sometimes we need to generate some random numbers or we can say random tuples in our daily life applications. So in this problem we can generate random tuples using the random library of Python. Understanding the Problem So let us understand the problem first, suppose we have given the limit of the tuple numbers and also the number of tuples we have to generate using the algorithm. To understand this phenomenon we will see the below image − Number of tuples = 5 Minimum value ...

Read More

Python - Number of positions where Substrings Match of Length K

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 17-Oct-2023 254 Views

In the given problem statement we have to find the number of positions on which substrings match of length K using Python programming. So this problem can be helpful to get all the K length substrings from the input string. Understanding the Problem The problem at hand requires an input string in which there are some substrings. So we have to show the number of positions of the substrings match in the given string. For example let’s see the below image − In the above image we can see that the value of K is ‘aaab’ so after counting ...

Read More

Python - Nth smallest Greater than K

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 17-Oct-2023 218 Views

The given problem statement is required to find the Nth smallest greater than K using Python. So we can use a combination of iteration and sorting techniques to find the required element. Understanding the Problem The problem at hand is to find the Nth smallest but greater than the number K with the help of Python. Basically we are required to find the number which is greater than K but it should be the Nth number from the number K in the sorted list. For example we will understand this phenomena with the help of the below image − ...

Read More

Python - Non-overlapping Random Ranges

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 17-Oct-2023 225 Views

The problem at hand is to find the non overlapping random ranges with the help of Python. Sometimes in Python we need to extract random ranges which are non overlapping. This application will be helpful while working with data. Understanding the Problem In this problem statement we will be given three parameters like starting values, ending value and also the number range. So on the basis of these values we will have to generate the non-overlapping random ranges using Python. Suppose we have a starting value as 1 and ending value is 50 and number range is 2 so the ...

Read More

Python - Non-Overlapping occurrences of N Repeated K character

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 17-Oct-2023 171 Views

In this article we have to find the non -overlapping occurrences of N repeated K characters using Python. These kinds of problems are very common while working with strings in Python. Understanding the Problem The problem at hand is to find the non-overlapping occurrences of N repeated K characters. In simple terms we will be given a string and in that string there will be some repeated characters so we have to find out the appearances of specific characters and show the count for it. Here N is any character in the given input string and K is the count ...

Read More

Python - Non-None elements indices

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 17-Oct-2023 175 Views

The problem at hand is to get the indices of non-none elements in the given input list and implement the solution using Python. Sometimes we need to find the empty of none values in the given dataset so this problem will be helpful to solve these kinds of problems. Understanding the Problem In the given problem we have to find the non-none item's indices in the given input lists. This problem can be helpful to filter out none values from the list or whenever we want to perform operations on none items. For example we will be given a list ...

Read More

Python - Nested Records List from Lists

Nikitasha Shrivastava
Nikitasha Shrivastava
Updated on 17-Oct-2023 220 Views

The problem at hand is that we have to create an algorithm for getting the nested records list from the given multiple lists with the help of Python. Sometimes we need to combine the given lists for a reason in real life applications. So this problem will be helpful to solve those problems. Understanding the Logic for the Problem In this problem we will be given two or more lists and we have to combine and form a nested records list by applying the logic. So we will use different approaches to do this task. First we will use the ...

Read More
Showing 11–20 of 163 articles
« Prev 1 2 3 4 5 17 Next »
Advertisements