MATLAB Program Probabilities of Scatters Node Over A Square Region


Assume the same set up as in Q1—100 nodes scattered over a 100 X 100 square grid. Use Poisson distribution to find the following. Do not use Binomial distribution.

I) What is the probability that a node located somewhere at the center of a square region has no links with the other 99 nodes when d=30. You can use the calculator or write a program to find this probability.

Meu  = n * nLink/(n-1*n-1)

II) What is the probability that the same node has exactly 1 link when d=30.

X = 1

III) What is the probability that the node has exactly 2 links when d=30. Since you are doing the same thing, writing a small program would help.

IV) Now, repeat the process for 3, 4, 5, 6, …. links. Essentially, what you obtain is the degree distribution.

Just use a for loop in the program.

V) What is the Expected degree of that node?

VI) Plot the degree distribution (No. of links in the x-axis and corresponding probabilities on the y-axis).

VII) Compare the plots you obtained for d=30 from the program (Q1) and from the analysis. The best would be to draw on top of each other. Make sure you have the same range for the x and y axes. Do they plots agree with each other? Why?


This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to write a program that scatter nodes uniformly randomly over a square region and to find various probabilities of nodes

Answer is in MATLAB format


Download Full Solution


  • HWA

    this is a very good website

  • HWA

    I have 50 questions for the same test your page is showing only 28

  • HWA

    hi can you please help or guide me to answer my assignments. thanks

  • HWA

    hi can anyone help or guide me to my assignments. thanks

  • HWA

  • HWA

    This solution is perfect ...thanks

  • HWA

    Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes

  • HWA

    Perfect bank of solution. 

  • HWA

    great !

  • HWA
    Paul Brandon-Fritzius

    thanks for the quick response. the solution looks good. :)

  • HWA
    tina Johnson

    thnx for the answer. it was perfect. just the way i wanted it. 

  • HWA

    works fine.