CSC 306 - Statistical Computing Assignment
1) Procedures for Installing Python and Libraries for Data
Analysis
Step 1: Download Python from [Link] and install it. Ensure you check 'Add Python
to PATH' before clicking Install Now.
Step 2: Verify installation by opening Command Prompt or Terminal and typing:
python --version
Step 3: Install required libraries using pip:
pip install pandas numpy scipy matplotlib
2) Python Program to Draw a Rectangle Using Asterisks
rows = 5
columns = 10
for i in range(rows):
for j in range(columns):
print("*", end="")
print()
3) Functions of the Four Python Libraries
Pandas: Used for data analysis and manipulation. Works with DataFrames and handles CSV/Excel
files.
NumPy: Used for numerical computations and array operations.
SciPy: Used for scientific and statistical computations.
Matplotlib: Used for creating graphs and data visualizations.