Page 164 - Touhpad Ai
P. 164

Explanation:
              u  sns.histplot() is used to create the histogram.
              u  bins=6 groups the data into 6 logical ranges or intervals.
              u  color='skyblue' is optional but adds a nice visual touch.
              Output:




























              In Excel, select the data, click on Insert   Choose the Chart Type.
































              Scatter Plot
              A scatter plot or scatter chart is used to visualise the relationship between two variables in a dataset. It utilises an x-y
              coordinate system where each data point is represented by a dot. A trend line may be added to a scatter plot in some
              instances. For example:


                 No. of Hours Studied   4   3.5    5    2    3    6.5  0.5   3.5  4.5   5     1    1.5   3   5.5   7
                     Percentage        82    82   90    74   40   94    51   75   86    85   62    75   70   89   95




                 162    Touchpad Artificial Intelligence - XI
   159   160   161   162   163   164   165   166   167   168   169