Conditional Statements and Logical Operators in Python Use if, elif, and else to control the flow of your program based on conditions. You can write nested conditions (conditions inside other conditions) for more complex logic. Python supports comparison operators (like ==, !=, <, >, <=, >=) to compare values. You can combine conditions using logical […]
Python Variables
Variables are used to store data in a computer’s memory. A variable’s name should clearly describe the kind of data it holds. In Python, you don’t need to declare the data type of a variable—Python automatically detects it. Some common data types in Python include: Integers (int) for whole numbers Floats for decimal numbers Booleans […]
Python Convert Data Types
We are going to be looking at: type castingconverting data typestype conversionhttps://youtu.be/fEPwzKUEFtk we use the type() methd to see what type something is. Here we can see the type of “11.5” is a float. Implicit: Automatically handled by Python (no manual conversion needed) Explicit: Manually converting one data type to another Example 1 – Addition […]
Python Data Types
We are going to be looking at the datatypes in Python The data types in Python includes. int, float, none, range, complex, bool, strings, list, set, touple, dict Lets start with numbers. we have the int, float, complex and bool Example 1 Integers the type() function is used to return the type of value of […]
Python Operators
We are going to be Covering Arithmetic, Comparism, Logical and Assignment Arithmetic Operators Arithmetic Operators are used to perform mathematical operations like addition, subtraction , multipliation e.t.c Example 1 Addition Here we add a + b using th python addition operator Example 2 Subtraction Here, we subtract b from a using the python subtraction operator […]
Python tuples
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 ANOVA (Analysis of Variance) is a statistical method used to compare the means of three or more groups to determine whether at least one group mean is significantly different from the others. If the difference in means is only due to random variation, we accept the null hypothesis (H₀). If the differences are larger […]
