How would you write this equation in MATLAB? (challenging)

  • Context: MATLAB 
  • Thread starter Thread starter leealex0201
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on implementing a mutual information function in MATLAB to calculate its global maximum. The user has vectors P(x) and P(x|spike), referred to as A and B, both of which are 1-by-100 vectors. The key requirement is to compute the gradient of the function, which is essential for optimization. Participants are encouraged to provide additional insights or information to assist in the MATLAB implementation.

PREREQUISITES
  • Understanding of mutual information concepts
  • Proficiency in MATLAB programming
  • Knowledge of gradient calculation techniques
  • Familiarity with vector operations in MATLAB
NEXT STEPS
  • Research MATLAB gradient functions, specifically 'gradient' and 'diff'
  • Explore optimization techniques in MATLAB, such as 'fminunc' or 'fmincon'
  • Study mutual information calculations in statistical analysis
  • Learn about MATLAB's symbolic toolbox for function differentiation
USEFUL FOR

This discussion is beneficial for data scientists, MATLAB programmers, and researchers focused on statistical analysis and optimization of mutual information functions.

leealex0201
Messages
1
Reaction score
0
Hello guys,

I would like to put this equation into the MATLAB to calculate the global maximum of mutual information function. In order to do that, I notice that I need a gradient of the function which is described as in attached files.

I do have the vector for P(x) and P(x|spike). Let's say they are called A and B respectively. Then, how do I write this down in MATLAB to calculate the gradient?

FYI, A and B are 1-by-100 vectors.
 

Attachments

  • Screen Shot 2014-04-25 at 10.18.59 AM.png
    Screen Shot 2014-04-25 at 10.18.59 AM.png
    6.1 KB · Views: 609
  • Screen Shot 2014-04-25 at 10.22.30 AM.png
    Screen Shot 2014-04-25 at 10.22.30 AM.png
    3.3 KB · Views: 564
Physics news on Phys.org
I'm sorry you are not finding help at the moment. Is there any additional information you can share with us?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K