Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8603331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:17:55+00:00 2026-06-12T02:17:55+00:00

I have a matrix in excel. I need to normalize rows and then calculate

  • 0

I have a matrix in excel. I need to normalize rows and then calculate entropy of each row (considering it as a probability distribution).

For e.g. suppose my matrix is:

2   0   3   5
0   1   0   0
1   0   3   2

After row normalization the matrix becomes:

0.2000         0    0.3000    0.5000
     0    1.0000         0         0
0.1667         0    0.5000    0.3333

Assuming each row is a probability distribution, the entropy of each row is:

1.0297
     0
1.0114

I want to calculate above entropy values without producing intermediate row-normalized matrix.

Is it possible to do this in Excel?

Note: Entropy of a probability distribution is defined as:

H(X) = sum over all x {-p(x) * log(p(x))}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:17:56+00:00Added an answer on June 12, 2026 at 2:17 am

    If you have your original matrix in A1:D3 try this formula in F1

    =SUM(-A1:D1/SUM(A1:D1)*IF(A1:D1<>0,LN(A1:D1/SUM(A1:D1))))

    confirmed with CTRL+SHIFT+ENTER (so that curly braces appear around the formula in the formula bar)

    copy to F3

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a matrix in SAS IML. For each pair of rows (say vectors
I have a matrix and a vector each with 3000 rows: fe = [-0.1850
Possible Duplicate: correlation matrix in r I have an excel sheet which has 700
I have a matrix of data (the columns represent time, and the rows spectrum
i am using vsto, to work with excel-2007... let's consider i have a matrix
We have an existing Traceability Matrix in Excel that has columns like: Project Business
Guys I have problem to make a random matrix by considering some constraint and
Suppose I have Matrix A: A = 1 2 3 4 5 6 For
Possible Duplicates: How to subtract a vector from each row of a matrix? How
I have a matrix M and a matrix L that contains 'pair of rows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.