MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# How to perform T test using python?

# How to perform T test using python?

This recipe helps you perform T test using python

How to perform T test using python?

The t test or check (Studentâ€™s T Test) compares 2 averages (means) and tells you if they're completely or partially different from one another. The t take a look at conjointly tells you ways important the variations are; In different words it enables you to understand if those variations may have happened unintentionally.

The t score could be a magnitude relation between the distinction between 2 teams, and also the distinction among the teams. The larger the t score, the more distinction there's between teams. The smaller the t score, the more similarity there's between teams. A t score 4 times means the teams are 4 times as completely different from one another as they're among one another. After you run a t check, the larger the t-value, the more doubtless it's that the results are repeatable. A large t-score tells you that the teams are completely different. A small t-score tells you that the teams of 4 similar.

```
import numpy as np
import pandas as pd
from scipy import stats
```

```
df=pd.read_csv('/content/sample_data/california_housing_train.csv')
df.head()
```

We will create two sample rows to measure there statistic and pvalue from the tests.

```
a = df['median_income']
b = df['median_house_value']
```

```
t2 = stats.ttest_ind(a,b)
t2
```

The test statistic is -233.0345623005931 and the corresponding p-value is 0.0 . The p-value is less than 0.05, we reject the null hypothesis. Now we have sufficient evidence to say that this data has skewness and kurtosis which is different from a normal distribution

Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

In this data science project, you will work with German credit dataset using classification techniques like Decision Tree, Neural Networks etc to classify loan applications using R.

Machine Learning Project in R-Detect fraudulent click traffic for mobile app ads using R data science programming language.

In this project you will use Python to implement various machine learning methods( RNN, LSTM, GRU) for fake news classification.

Data Science Project in Python- Build a machine learning algorithm that automatically suggests the right product prices.

Text data requires special preparation before you can start using it for any machine learning project.In this ML project, you will learn about applying Machine Learning models to create classifiers and learn how to make sense of textual data.

In this human activity recognition project, we use multiclass classification machine learning techniques to analyse fitness dataset from a smartphone tracker.

In this deep learning project, we will predict customer churn using Artificial Neural Networks and learn how to model an ANN in R with the keras deep learning package.

In this project, we are going to talk about Time Series Forecasting to predict the electricity requirement for a particular house using Prophet.

There are different time series forecasting methods to forecast stock price, demand etc. In this machine learning project, you will learn to determine which forecasting method to be used when and how to apply with time series forecasting example.