https://colab.research.google.com/drive/1xDMi4lOvL9L1v_qW_uapz3DhJE8Rh3_Q?authuser=2 Example 1 generate Poisson-Distributed Random Variables Numpy Example 2 generate Poisson-Distributed Random Variables Scipy Example 3 Calculating Poisson Probability Mass Function (PMF) Part 1 # is a function that gives the probability that a discrete random variable is exactly#equal to a particular value. In other words, the PMF describes the distribution of a#discrete random […]
Binomial distribution python
https://youtu.be/bZfnCdLLxAI#sns.distplot hist=True#To do Mean, Variance, STD#probabiliy of less or equal to K Occurences #Exmaple 1 Creation in Numpy (YouTube Subscribers) Example 2 Creation in Scipy Coin Flip Example 3 Calculate PMF #Probability of Exaxtyl K Occurences #n= sample size #k = number of SUCCESS #p = probability Example 4 Calculate CDF #Probability of less of […]
Harmonic Mean in Python
Example 1 Manual Calc Example 2 statistics Example 3 scipy
Geometric Mean in Python
Example 1 Manual Example 2 Numpy Example 3 Scipy Example 4 Scipy Percentages Growth Rate Growth Rate
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 […]
scipy chi square goodness of fit
https://youtu.be/Fv-U-pZ4HbI#The Chi-Squared test determines whether there’s a significant association between categorical variables.#It compares the observed frequencies (counts) to the expected frequencies, calculated under the null hypothesis that the variables are independent or that the observed distribution fits a given distribution. #Chi-Squared Goodness-of-Fit Test#This test assesses if the observed frequencies for a single categorical variable match […]
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
time series stationary python
#https://www.kaggle.com/datasets/camnugent/sandp500
time series seasonality python
Lets look at a specific year nowdf[“Date”] = pd.to_datetime(df[“Date”]) Summary Statistics by a Period (week, month, quarter etc)