2

I am trying to do something like this:

ContourPlot3D[
 Expand[Correlation[{0, 1, 2}, {b1, b2, b3}] == .5], {b1, -5, 
  5}, {b2, -5, 5}, {b3, -10, 10}]

But apparently this make the computer freeze.

qed
  • 275
  • 2
  • 7

1 Answers1

6

First simplify your function:

f[b1_, b2_, b3_] = FullSimplify[Correlation[{0, 1, 2}, {b1, b2, b3}], 
  Assumptions -> {b1, b2, b3} \[Element] Reals]

enter image description here

The plot. Teared edge is where singularity happens. Stripes help you to see where the slope is steeper.

ContourPlot3D[
 f[b1, b2, b3] == .5, {b1, -5, 5}, {b2, -5, 5}, {b3, -10, 10}, 
 MeshFunctions -> {#3 &}, MeshShading -> {Red, Automatic}, 
 ContourStyle -> Directive[Opacity[0.5], Yellow]]

enter image description here

Vitaliy Kaurov
  • 73,078
  • 9
  • 204
  • 355