Artificial Intelligence & BA - Assignment-3
Artificial Intelligence & BA - Assignment-3
2. **Using Libraries:**
Import the `numpy` library in a Jupyter Notebook and create a NumPy array with the values `[1, 2, 3, 4, 5]`. How do
you find the standard deviation of this array using `numpy`?
Plot the points (1, 2), `(2, 4)`, and `(3, 6)`.
[4, 5, 6]})
R Programming
How do you calculate the mean of a vector `c(10, 20, 30, 40, 50)` in R? Write the code to perform this calculation.
2. **Using Libraries:**
Install and load the `ggplot2` library in R. Write the code to create a simple scatter plot of `x = c(1, 2, 3)` and `y = c(2,
4, 6)` using `ggplot2`.
Create a bar plot in R for the vector `c(5, 10, 15)` with the labels `c("A", "B", "C")`.
1. **Bar Plot:**
Create a bar plot in Jupyter Notebook using Matplotlib for the following data:
Label the x-axis as "Categories" and the y-axis as "Values". What is the code to generate this bar plot?
2. **Histogram:**
Use 5 bins and label the x-axis as "Value" and the y-axis as "Frequency". What is the code?
3. **Pie Chart:**
Create a pie chart in Jupyter Notebook using Matplotlib for the following data:
Add a title "Distribution of Categories". What is the code to generate this pie chart?
For Private Circulation Only
4. **Box Plot:**
Using the following data, create a box plot in Jupyter Notebook with Matplotlib:
Label the y-axis as "Values". What is the code to generate this box plot?
***********************