Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

PDF plot

  1. Jun 16, 2010 #1
    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
     

    Attached Files:

  2. jcsd
  3. Jun 16, 2010 #2
    What have you attempted so far?
     
  4. Jun 17, 2010 #3
    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
     
  5. Jun 17, 2010 #4
    Forget about Matlab for a minute and focus on the mathematics. Suppose that you have some data of the form

    [tex]
    X_1, X_2, \ldots, X_n \sim F
    [/tex]

    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?
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook