Skip to content

priyankaChandramohan/NumPy-Broadcasting-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NumPy Broadcasting Project

This project explores the concept of broadcasting in NumPy, which allows for performing operations on arrays with different shapes. It also demonstrates how to perform data standardization using broadcasting and conduct hypothesis testing using the Chi-squared test.

Project Structure

The project is structured as follows:

  • numpy_basics.py: Python script containing code for the NumPy tasks.
  • requirements.txt: File specifying the required packages and their versions.

Getting Started

To run the project, follow these steps:

  1. Clone the repository: git clone https://github.com/priyankaChandramohan/NumPy-Broadcasting-Project
  2. Navigate to the project directory: cd NumPy-Broadcasting-Project
  3. Install the required packages using pip: pip install -r requirements.txt
  4. Run the numpy.py script: python numpy.py

Project Tasks

  1. Basic Broadcasting:
  • Perform binary operations on an array and a scalar.
  • Create a vector using the arange function and perform element-wise addition with a scalar.
  1. Broadcasting with Matrices:
  • Create a 10x10 matrix using broadcasting techniques.
  1. Data Standardization:
  • Generate a fake dataset with 50 examples and 5 dimensions.
  • Compute the mean and standard deviation of each column.
  1. Hypothesis Testing with Chi-squared Test:
  • Analyze a survey response table using the Chi-squared test to determine if there is a relationship between age groups and movie genre inclination.

Dependencies

The project requires the following packages:

  • NumPy (version 1.20.0 or higher)
  • SciPy (version 1.6.0 or higher)

You can install the required packages using the pip install -r requirements.txt command.

About

This project explores the concept of broadcasting in NumPy, which allows for performing operations on arrays with different shapes. It also demonstrates how to perform data standardization using broadcasting and conduct hypothesis testing using the Chi-squared test.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages