Wednesday, May 29, 2024

Monday, May 27, 2024

Trend Analysis using linear and non-linear Regression

 If you want to show regression effect of two numerical variable with two different categorical or binary variable then you can use this styleimport seaborn as snsimport matplotlib.pyplot as pltimport numpy as npfrom sklearn.linear_model import LinearRegressionfrom sklearn.metrics import r2_scoresns.set_theme(style="ticks")#...

Box Plot in Python with Sig-Bar

You can show your dependent variable effect with other two categorical or binary variables suign this method.Step 1: make a pivot tableimport pandas as pd# Assuming df is your existing DataFrame# Create the pivot tablepivot_table = df.pivot_table(values='tit', index='g_type', columns='n_lane', aggfunc='count',...

Saturday, July 8, 2023

Big Data Preparation

In order to feed the proposed network with a certain data dimension and improve the accuracy of the model, the raw data collected by motion sensors need to be pre-processed as follows.1. Linear Interpolation:The datasets mentioned above are realistic and the sensors worn on the subjects are wireless....

Thursday, March 23, 2023

Friday, September 30, 2022

Monday, June 28, 2021

Descriptive Statistics in Python

 pip install researchpyimport pandas as pdimport researchpy as rpdf = pd.read_csv("https://raw.githubusercontent.com/researchpy/Data-sets/master/blood_pressure.csv") df.info()df['bp_before'].describe()df['sex'].describe()df['sex'].value_counts()df['bp_before'].kurtosis()df['bp_before'].sk...