we are going to be looking at Python Tuples. Some characteristics of tuples are: Tuple data never change.Tuples are used to store multiple items in a single variable.Tuples are ordered and unchangeable.Since tuples are indexed, they can have items with the same value. https://youtu.be/2LV2T7KLJaI we start by creating a tuple called “tuple1”. Notice the type of […]
Python While Loops
We are going to be looking at the While loop in python. The while loop in python is a control flow statement that repeatedly executes a block of code as long as a specified condition is true. Example 1 Basic While Loop Here, we are using the while loop to print numberd from 1 to […]
Shapiro-Wilk Test Python
#Uniform Example General #Example with a Paired T Test
mann-whitney u test python
#similiar to t test for independent samples#that t test looks at the mean #mann-whitney u loks at rank sum difference#sort from smallest to largest (smallest rank 1 largest last rank)#example rank group 1 sum 36 rank group sum 2 42 #confirm data is not normally distributed #write null and alternative hypothesis#The Mann-Whitney U Test is […]
One-Way ANOVA
https://youtu.be/e0lum-6vuw4#Use ANOVA to compare the means of three or more groups.#Ensure the assumptions of ANOVA are satisfied before applying the test. #One Way#Independent Variable: Only one factor is analyzed (e.g., different treatments or conditions).#Testing the effect of different diets (Diet A, Diet B, Diet C) on weight loss. Here, the diet is the single factor […]
Python Regular Expressions
https://youtu.be/YlRtBs-mWUE#regex or regexpression #re.search() searches the entire string for a match. #The finditer function in Python’s re module is used to find all non-overlapping matches of a regular expression pattern in a string. It returns an iterator yielding match objects for each match. #can’t do length #split – list string split #raw text explanation#raw string […]
Python Classes
https://youtu.be/XXJdZD0SCTI#Python supports the object-oriented programming paradigm through classes#class is like the blueprint for a house#create several houses and even a complete neighborhood. Each concrete house is an object or instance that’s derived from the blueprint #Each instance can have its own properties, such as color, owner, and interior design#properties carry what’s commonly known as the […]
Python F String
https://youtu.be/8GIqXqHDNfY#f string#not a string generated by user#double quotes the best#12 examples#Ex 1: Printing a string #ex 2: multiple strings #Ex 3: functions or methods in the f string #Ex 4: (SORT OF ADVANCED CAN SKIP) #Ex: 5 Inline Expressions #ex: 9 datetime #ex 12 loops
Augmented Dickey–Fuller test
parts of the ADF test – tuple access by index
KPSS-test
parts of the ADF test -tuple access by index