Sayed Hassan MIS410
Sayed Hassan MIS410
Answer: Input:
Output:
2. Find the mean and standard deviation of weekly sales and comment on the results
Answer: Input:
Output:
Interpret:
The average weekly sales figure, represented by a mean of 1009002, signifies that, on average, weekly
sales amount to approximately 1009002. It serves as a central point where sales data tends to cluster.
The standard deviation, on the other hand, measures how much the weekly sales data varies or spreads
around the mean, which is 139166.9. A larger standard deviation indicates a broader range of sales
values, indicating that the mean may be far out of the range from the sales data for any given week.
Conversely, a smaller standard deviation implies greater consistency and less unpredictability in the
weekly sales figures.
3. Construct a boxplot and describe the distribution of weekly sales.
Answer: Input:
Output:
Interpret: A box and whisker plot—also called a box plot—displays the five-number summary of a set of
data. The five-number summary is the minimum, first quartile, median, third quartile, and maximum.
The boxplot reveals that the median value, approximately 990,000, is at the center of the box, which
represents the interquartile range (IQR) spanning from the 25th percentile (Q1) to the 75th percentile
(Q3) of the "Weekly Sales" distribution. The whiskers extending from the box show the range within 1.5
times the IQR. An outlier is present.
Based on the boxplot, it can be observed that the distribution of "Weekly Sales" appears relatively
symmetric with a slight right-skew. The majority of data points are concentrated within the IQR, with
only one outlier. The proximity of the median to the center of the box suggests that the data is evenly
distributed around this central value.
4. Draw a scatterplot between weekly sales and temperatures, and comment on the
relationship.
Ans. Input:
Output:
Interpret: In this scatterplot, the horizontal x-axis depicts temperatures, and the vertical y-axis illustrates
weekly sales. Each data point on the scatterplot corresponds to a particular week's sales and the
associated temperature.
The arrangement of points on the scatterplot can be employed to examine the relationship between
weekly sales and temperatures. If there is a noticeable pattern or trend, it indicates a connection
between these two variables
5 Draw a line plot for weekly sales
Input:
Output: