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)
machine learning imbalanced classes
#Read over#data professor#emma Ding#mahesh huddar#ritvik mathPart 1 Load a Dataset Part 2 SIMPLE EDA Part 3 Set Up the Data Part 4 BASELINE MODEL – NO FIXING THE IMBALANCE part 5Oversampling ExampleOversampling Example 1 RandomOverSampler To start we’re going to create a simple dataframe in python led to overfitting part 6Oversampling Method Example 2 SMOTE […]