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 6987931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:00:12+00:00 2026-05-27T19:00:12+00:00

I would like to compute the Covariance Matrix of the image below. Pixel based.

  • 0

I would like to compute the Covariance Matrix of the image below. Pixel based. That is considering each Black Pixel of the Disks as vectors.

While the units below are in centimeter, there are 32 pixels per cm on the screen I am using.

Ahead of the Covariance Matrix computation itself, I can`t figure out the way to obtain all the pixels vector.

enter image description here

frmXY = {{6.59, 1.59}, {33.41, 28.41}};

stim = {{10.85, 21.91, 0.97}, {16.8, 5.26, 0.97}, {11.78, 7.11, 0.97}, 
        {12.64, 14.13, 0.97`}, {20.24, 16.16, 0.97}, {29.51, 8.06,1.53}, 
        {22.42, 5.78, 1.53}, {27.13, 16.47, 1.53}}


Graphics[{EdgeForm[Thick],White, Rectangle @@ frmXY, Black,
          Disk @@@ (stim /. {a_, b_, c_} :> {{a, b}, c})}, ImageSize -> 300]
  • 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-05-27T19:00:13+00:00Added an answer on May 27, 2026 at 7:00 pm

    It is not clear from your question as to what constitutes the random variable that describes your model/system and I don’t understand what it is that you’re trying to take the covariance matrix of.

    However, here’s a simple example showing how to obtain the covariance matrix and compute the eigenvalues and eigenvectors (basically, reproduce your first plot).

    list = RandomReal[
       MultinormalDistribution[{0, 0}, {{6, 3}, {3, 3}}], {5000}];
    sampleCov = Covariance@list;
    {eigValues, eigVectors} = Eigensystem@sampleCov;
    
    Show[ListPlot@list, 
     Graphics[{Red, Arrowheads[0.03], 
       Arrow[{{0, 0}, #}] & /@ (eigValues eigVectors)}]]
    

    enter image description here

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

Sidebar

Related Questions

I would like to compute the width for each TableViewerColumn so that it fits
I have data that I would like to compute some statistics with. The data
I would like to compute time that spans between two particular moments: - start
The script below illustrates a capability of set and frozenset that I would like
I have a excel table and I would like to compute values based on
Given a matrix d x n (d-dimensional, n-object) I would like to compute the
For given floating point numbers x and a , I would like to compute
I am developing a computer baseball game based on statistics. I would like to
Would like a for loop in jquery so that: For every hover_link: show hidden
I would like to compute similarity between licenses' txt files so I could then

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.