From REF to RREF
Lasso Regression
https://youtu.be/LmpBt0tenJE#LASSO stands for Least Absolute Shrinkage and Selection Operator#L1 regularization #address overfitting – A model that is too complex may fit the training data very well#but perform poorly on new, unseen data #will get rid ofe useless features (make coefficients independent var next to 0)#- automatic feature selection # lead to a simpler model that […]
Python Augmented Matrix
Example 1 Example 2 row operations Multiply the first row by 3 add: 2nd row to the first subtract 2nd row from the 3rd
web scraping with python
Part 1 Getting your first page Failed to retrieve page: 403 | a client does not have the necessary permissions to access a specific web page or resource on a server URL2 = “https://www.compreoalquile.com” Failed to retrieve page: 404 | page doesnt exist Example 2 Checking robots.txt file #Do not scrape disallowed paths — it’s unethical […]
BeautifulSoup4 find vs find_all
Part 1 Parsing the HTML From your first page. snapshot of html at that time Example 3 use soup.prettify() Example 4 – Grab Page title Example 5 – Grab Page H2 (This only grabs the first one…) Example 6 – Grab Page title text #Next two examples take a look at find vs find all#| […]
python levenes test
Example 1 – Manual Example # 100m race times for college and pro athletes #Calculate the medians # Calculate absolute deviations from the median # Calculate mean of absolute deviations # Calculate sum of squared deviations from the mean of deviations # Combine for total squared deviations # Total number of observations # Degrees of […]
python one sample z test
Example 1 More Manual
scipy chi square test of independence
https://youtu.be/Jb9sxlnhZMo#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 Test for Independence#This test checks if there’s an association between two categorical variables by […]
Python One-Sample T-Test
One-Sample T-Test Used to compare the mean of a single sample to a known value (usually a population mean). Example 1 Manual Calculation Step 5: Degrees of freedom and p-value Example 2 – Shoes Two Tail Example 3 – Rookie Batting Average One Tail rookie batting average is the same as the population mean (0.250)Rookie […]