Plotting PDF for Inter Packet Arrival Times

  • Thread starter Thread starter mmmd_yaseen
  • Start date Start date
  • Tags Tags
    Pdf Plotting
AI Thread Summary
The discussion revolves around a user new to MATLAB seeking assistance in plotting the Probability Density Function (PDF) for inter-packet arrival times from a dataset in a .dat file. The data consists of three columns: port number, and the inter-packet arrival times for two packets. The user has successfully imported the data into MATLAB and is experimenting with the PDF and histogram commands but has not yet achieved the desired plot. The conversation also touches on the mathematical foundation of obtaining a PDF from a set of observations, emphasizing the need to understand the underlying distribution of the data. The user seeks guidance on effectively using MATLAB commands to replicate a specific plot they have in mind.
mmmd_yaseen
Messages
2
Reaction score
0
Hi Everyone,

Iam new one to join the MATLAB .My task is to plot PDF for the given data from the .dat file
I have three columns which contains as below like .The first column says port no , second and third is the inter packet arrival times of packet 1 and packet 2 . The whole data is huge ,so i have taken only few sample of it and pasted here . out this I need to plot PDF of the second and third column alone. Also see the attached plot . I need to reproduce some what similar to it. Kindly help me in how to proceed with this.

80 0.005177 0.000118
80 0.000118 0.000251
80 0.000251 0.009230
80 0.009230 0.001253
80 0.001253 0.000168
80 0.009923 0.000126
80 0.000126 0.000182
80 0.000182 0.009233
80 0.009233 0.024833
80 0.024833 0.000209
80 0.000209 0.000161
80 0.000161 0.000152
80 0.000152 0.008845
80 0.008845 0.001277
80 0.001277 0.000170
80 0.000170 0.008761
80 0.008761 0.000168
80 0.000168 0.000148
80 0.000168 0.184677
 

Attachments

  • tvport.JPG
    tvport.JPG
    14.8 KB · Views: 398
Physics news on Phys.org
What have you attempted so far?
 
Iam new to MATLAB .As of now i have just imported the data into the matlab. I just playing around with the PDF and hist command to reproduce the somewhat similar to it. But i haven't achieved it. So if you could explain the above commands with regards to the above data and graph that would be helpful and encouraging .

Thanks
 
Forget about Matlab for a minute and focus on the mathematics. Suppose that you have some data of the form

<br /> X_1, X_2, \ldots, X_n \sim F<br />

i.e., you have n observations that you think are distributed according to some distribution F. How do you obtain the PDF for the distribution F from the data?
 
Back
Top