In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Variance Covariance Matrix in Alteryx

paigeblackstone
6 - Meteoroid

Hi Everyone,

 

I have 16 million lines of data that I am hoping to perform a variance covariance matrix on. Does anyone know of a way to do this in Alteryx? I just installed the predictive tools to see if there was something in there but I'm not seeing anything. Please let me know of any way you can help. Thanks!

2 REPLIES 2
JohnJPS
15 - Aurora

Hi @paigeblackstone,

I would try the generic R tool, perhaps with the following code:

df = read.Alteryx("#1", mode="data.frame")
dm = data.matrix(df)
dmCov = cov(dm)
dfCov = data.frame(dmCov)
write.Alteryx(dfCov, 1)

If you want to code your R in great detail, there is a great write-up with code here.

Hope that helps!

John

jdunkerley79
ACE Emeritus
ACE Emeritus

That's a fun challenge to do generically in Alteryx.

 

I stuck a macro together which does it using core tools.

 

2018-08-31_22-28-58.jpg2018-08-31_22-29-21.jpg

 

It is a pretty complex macro, building dynamic formula and summarize tools but it should be quick as doesn't sort or join incoming data set.

 

Macro on gallery: https://gallery.alteryx.com/#!app/Covariance%2BMatrix/5b89b0b78a933710d8de43b2

 

Attached a demo workbook

 

 

Labels
Top Solution Authors