Q1.

Draw a plot depicting the superiority of a method in terms of Average quality and number of changes in the quality (average value for all video samples and network profile). Each buffer configuration should have a separate single plot.

In [13]:
Out[13]:
profile sample method quality change inefficiency stall numStall avgStall overflow numOverflow qoe bufSize
0 p1 v1 Method1 1784.40 8 0.312697 0.714 1 0.714 0.000 0 512299.0 240
1 p1 v1 Method1 2009.71 11 0.327201 0.000 0 0.000 48.781 17 578385.0 120
2 p1 v1 Method1 2616.02 95 0.270815 0.000 0 0.000 55.229 92 622398.0 30/60
3 p1 v1 Method2 2189.01 25 0.518530 0.000 0 0.000 0.000 0 606435.0 240
4 p1 v1 Method2 2878.43 14 0.401456 0.000 0 0.000 0.000 0 823815.0 120
  1. We have three different buffer configurations, therefore here we have 3 seperate plots
  2. To check the superiority of a method, below we represent each point(quality and change) in a scatter plot.
  3. Under different network configurations, we can get the average of change time and quality for all samples first.
In [14]:
  • For the same buffer size for all the network profile and sample, we calculate the average value of the change number and quality.
  • When the buffer size is 240, we can see Method 3 has the lowest value of average change, and Method 5 possesses the highest quality.
In [15]:
  • For the same buffer size for all the network profile and sample, we calculate the average value of the change number and quality.
  • When the buffer size is 120, we can see the change for Method 3 is the lowest, while Method 5 has the highest quality over the others, and Method 1 is the worst among all methods.
In [16]:
  • For the same buffer size for all the network profile and sample, we calculate the average value of the change number and quality.
  • When the buffer size is 30/60, we can see the average of change number for Method 3 is superior over other methods, and in terms of quality, Method 5, 6, 9 are superior over others.

In summary, combine the three separate plots into a subplot sharing the same y-axis, we can notice Method 3 is better than other methods.

In [17]:

Q2.

Draw a single plot for all buffer configurations showing QoE (average value for all video samples and network profile) for all methods. You are expected to show the comparison of the QoE of a method in all buffer configurations as well as the comparison of all methods using the single plot.

In [18]:
  • Bar chart is very intuitive when comparing different categories, and since there are different buffer configurations under the ten methods, stacked bar chart is applied for better demonstration.
  • In terms of average QoE for all video samples and network profile, we plot the whole 10 methods under three different buffer configurations.
  • Under 30/60 and 120 buffer configuration, we can see Method 5 has the highest QoE compared to others, while when the configuration buffer is 240, Method 10 is better even then Method 5.

Q3.

Draw plots to show the correlation between inefficiency and quality for all methods in all buffer configurations.

In [19]:
  • The relationship between inefficiency and quality is shown in the above plot, while there seems a weak connection between the two attributes. We can observe there is a cluster when inefficiency is between 0.2 and 0.4 which means quality value is under a relative stable range. To test whether it's true under different buffer congigurations, we use seaborn to segment the points, the results is show in below figures.
In [20]:
In [21]:

Q4.

We would like to know the methods which have the minimum number of stalls for video V7 under all network profiles. Draw appropriate plot for it.

In [22]:
  • An intuitive way to compare stalls under different methods is to sum them up, so we can see most of the methods have zero stalls regardless of network conditions.

If we want to take a closes look at the distributions of all stalls, box and violin chart are both good ways to illustrate the points.

In [23]:
  • First we extract all the V7 sample regardless of network conditions, then plot all stalls in all the methods, we can discover that Method 2,5,6,7,8,9 and 10 all have the minimum stalls which is 0.
  • To show that stalls, here we use the boxplots for demonstration, and since some of the methods have zero stalls, we move the x-axis down to -1 to represent this situation.
In [24]: