Programming Scripts Articles

Page 12 of 33

How To Calculate Studentized Residuals In Python?

Jay Singh
Jay Singh
Updated on 28-Dec-2022 1K+ Views

Studentized residuals are typically used in regression analysis to identify potential outliers in the data. An outlier is a point that is significantly different from the overall trend of the data, and it can have a significant influence on the fitted model. By identifying and analyzing outliers, you can better understand the underlying patterns in your data and improve the accuracy of your model. In this post, we will be closely looking at Studentized Residuals and how you can implement it in python. What are Studentized Residuals? The term "studentized residuals" refers to a particular class of residuals that have ...

Read More

How To Perform Dunnís Test In Python?

Jay Singh
Jay Singh
Updated on 28-Dec-2022 2K+ Views

Dunn's test is a statistical technique for comparing the means of several samples. When it's required to compare the means of numerous samples to identify which ones are noticeably different from one another, Dunn's test is frequently employed in a range of disciplines, including biology, psychology, and education. We shall examine Dunn's test in−depth in this article, along with a python implementation. What is Dunn’s Test? Dunn's test is a statistical analysis used to compare the means of numerous samples. It is a form of multiple comparison test used to compare the means of more than two samples to identify ...

Read More

How to Perform Bartlettís Test in Python?

Jay Singh
Jay Singh
Updated on 28-Dec-2022 987 Views

Many statistical tests and procedures presume that the data is normal and has equal variances. These criteria frequently determine whether a researcher can apply a parametric or non-parametric test, frame hypotheses in specific ways, and so on. Bartlett's test is a prominent inferential statistics test that deals with data from a normal distribution. This post will show you how to run Bartlett's test in python. What is Bartlett’s test?  Bartlett's test is a statistical test that determines whether or not samples have equal variances. It is a hypothesis test that analyzes the variances of two or more samples to see ...

Read More

How to compare two arrays for equality in Perl?

Mukul Latiyan
Mukul Latiyan
Updated on 26-Dec-2022 3K+ Views

In Perl, there are two ways to check if two arrays are equal. We can compare two arrays in Perl with the help of "Storable freeze" function or by creating our own custom function. In this tutorial, we will explore both these approaches with the help of examples. Example 1 Let's first explore the "Storable freeze" code and understand how it works. Consider the code shown below. use Storable qw/freeze/; use strict; $Storable::canonical = 1; my @countriesOne = ('India', 'China', 'Russia', 'USA', 'Germany'); my @countriesTwo = ('India', 'China', 'Russia', 'USA', 'Germany'); my @countriesThree = ...

Read More

How to check if a variable has a numeric value in Perl?

Mukul Latiyan
Mukul Latiyan
Updated on 26-Dec-2022 4K+ Views

Suppose we get a variable at runtime in Perl and we want to check if the value that it contains is numeric or not, then we can use the two approaches shown in this tutorial. We will use two simple examples to demonstrate how it works. Example  The most basic approach is to use the length and do keywords and then ignore the warnings. Consider the code shown below for the same. $x = 100; if (length(do { no warnings "numeric"; $x & "" })){ print "x is numeric"; } else { print ...

Read More

How to check if a Perl hash already contains a key?

Mukul Latiyan
Mukul Latiyan
Updated on 26-Dec-2022 5K+ Views

Let's consider a scenario where we would want to know if a Perl hash already contains a key or not. To do so in Perl, we can use the exists() function. In this tutorial, we will explore the exists function with the help of two examples. The exists() Function in Perl In Perl, the exists() function checks whether a particular element exists or not in an array or a hash. If the requested element appears in the input array or hash, this function returns "1", else it returns "0". Example 1 Consider the code shown below. In this example, we ...

Read More

How to check if a Perl array contains a particular value?

Mukul Latiyan
Mukul Latiyan
Updated on 26-Dec-2022 9K+ Views

In Perl, we can check whether an array contains a particular value or not with the help of the "grep" keyword. The grep function in Perl is used to filter the input supplied in the function as a parameter out of the list of items. Similar to Linux, it uses the given input to find the matching value. The grep() Method "grep" is a built-in function in Perl, we can pass our regular expression inside this function. It will check the input for matching values and return a list based on whether the condition is true or false. Syntax As ...

Read More

How to break out of a loop in Perl?

Mukul Latiyan
Mukul Latiyan
Updated on 26-Dec-2022 11K+ Views

In most programming languages, we can use the "break" keyword to break out of any type of loop. In Perl too, we have the "break" keyword available, but the keyword that is used the most to break out of a loop is the "last" keyword. The "last" Statement in Perl The "last" statement is used in Perl loops to exit a loop immediately; it is the equivalent of the "break" statement in C/C++ and Java. In practice, you often use the "last" statement to exit a loop if one of the conditions is met, for example, you find an ...

Read More

Design a Digital Clock in Neumorphism Style using JavaScript

Imran Alam
Imran Alam
Updated on 08-Dec-2022 495 Views

In this tutorial, we will be discussing how to design a digital clock in neumorphism style using JavaScript. Neumorphism is a new design trend that has been gaining popularity in recent years. It is characterized by soft, rounded shapes and subtle shadows. The HTML We will start by creating a basic HTML structure for our clock. We will need a container element, and within that, we will have an element for the clock face and another for the control buttons. Below is the HTML code for our clock − Start Stop ...

Read More

How to iterate a JavaScript object's properties using jQuery?

Lokesh Badavath
Lokesh Badavath
Updated on 18-Nov-2022 2K+ Views

In this article, we are going to learn how to iterate a JavaScript object’s properties using jQuery. The simplest way to iterate over an object with JavaScript is to use a for in loop. The for statement will iterate over the objects as an array, but the loop will send the key to the object instead of an index as a parameter. This loop is used to iterate over all non-Symbol iterative properties of an object. The hasOwnProperty() method can be used to check if the property belongs to the object itself. The value of each key of the ...

Read More
Showing 111–120 of 328 articles
« Prev 1 10 11 12 13 14 33 Next »
Advertisements