+
    i              	          ^ RI HtHtHtHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHtHt ]! R
4      w  tt]! R]]4      t]! R]]4      t]! R]]4      t]! R]]4      t]! R]^4      t]! R]^4      t]! R^^4      t]! R^^4      t ]! R]^4      t!]! R]^4      t"]! R]^4      t#]! R]^4      t$]! R]]4      t%]! R^^4      t&]! R^ ^4      t']! ^]]! R^^4      ,          .]'^ ..4      t(R t)R t*R t+R# )    )ExpectationNormalVariance
Covariance)raises)symbols)
ShapeError)Matrix)MatrixSymbol)
ZeroMatrix)RandomMatrixSymbol)ExpectationMatrixVarianceMatrixCrossCovarianceMatrixzj,kABCDabA2B2XYZWRX2normalnormal2c            	      ^
   \        \        4      p V \        \        4      u;8X  d   \        \        4      8X  g   Q h Q hV P                  4       \        8X  g   Q h\        \        4      p V \        \        4      u;8X  d   \        \        4      8X  g   Q h Q hV P
                  \        ^38X  g   Q hV P                  \        8X  g   Q hV P                  ^8X  g   Q h\        V \        4      '       g   Q h\        \        \        ,          \        ,           4      p V \        \        \        ,          \        ,           4      8X  g   Q hV P                  4       \        \        \        4      ,          \        ,           8X  g   Q h\        V \        4      '       g   Q hV P
                  \        ^38X  g   Q h\        \        \        ,          4      p V P                  4       V 8X  g   Q h\        \        \        ,          \        ,          \        ,          4      p V P                   ^ ,          P                   \        \        \        \        38X  g   Q hV P                  4       \        \        \        \        ,          \        ,          4      ,          8X  g   Q h\        \        \"        ,           \        \"        ,
          P$                  ,          4      p V P                  4       \        \        \        P$                  ,          4      \        \        \"        P$                  ,          4      ,
          \        \"        \        P$                  ,          4      ,           \        \"        \"        P$                  ,          4      ,
          8X  g   Q h\        \        \        ,          \&        \"        ,          ,           4      p V P                  4       \        \        \        4      ,          \&        \        \"        4      ,          ,           8X  g   Q h\        \        4      P)                  4       \+        ^^\,        ,          .^ ^ ..4      8X  g   Q h\+        \/        R^^4      \/        R^^4      .\/        R^^4      \/        R^^4      ..4      p\+        \/        R^^4      \/        R^^4      .\/        R^^4      \/        R^^4      ..4      p\        \        W,           4      4      P)                  R	R
7      \        W,           4      8X  g   Q h\        \        W,           4      4      P)                  4       \+        ^^.^^..4      8X  g   Q hR# )   N11N12N21N22M11M12M21M22F)deepN)r   r   r   expandr   shapekrowscols
isinstancer   r   m1r   r   r   argsr   Tr   doitr
   jr   )exprx1x2s      j/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/stats/tests/test_symbolic_multivariate.pytest_multivariate_expectationr;   )   s   q>D;q>9%6q%999999;;=Aq>D;q>9%6q%999999::!Q99>>99>>d-....qsQwD$QqS1W----;;=A/22Q6666d-....::!Qr"uD;;=D   r"uRx{#D99Q<RR 0000;;=B0Br:::::AAyy()D;;=-ae47H1337OO!!ACC%()+<QqssU+CD D D D qsQqSy!D;;=A/22Q7H7K5KKKKKr?!Va1X1v,>%????	E2q6%Q/0E2q6%Q/0 
B 
E1a&1-.E1a&1-. 
B
 {27+,11u1=ARSUSZA[[[[{27+,113vBx"b>R7SSSS    c                     \        \        R  4       \        \        4      p V \        \        4      u;8X  d   \	        \        4      8X  g   Q h Q hV P                  4       \        \        \        4      8X  g   Q h\        \        P                  4      p V \        \        P                  4      u;8X  d    \	        \        P                  4      8X  g   Q h Q hV P                  4       \        \        \        4      8X  g   Q h\        \        4      p V \        \        4      u;8X  d   \	        \        4      8X  g   Q h Q hV P                  \        \        38X  g   Q hV P                  \        8X  g   Q hV P                  \        8X  g   Q h\        V \        4      '       g   Q h\        \        \        ,          4      p V \	        \        \        ,          4      8X  g   Q hV P                  4       \        \	        \        4      ,          \        P                  ,          8X  g   Q h\        V \        4      '       g   Q hV P                  \        \        38X  g   Q h\        \        \        ,          \        ,          4      p V P                  4       \        \        ,          \	        \        4      ,          \        P                  ,          \        P                  ,          8X  g   Q h\        \         \"        ,          4      p V P                  4       V 8X  g   Q h\        \$        \         ,          \&        ,          \"        ,          4      p V P(                  ^ ,          P(                  \$        \         \&        \"        38X  g   Q hV P                  4       V 8X  g   Q h\        \        \        ,          \        \*        ,          ,           4      p V P                  4       ^\        ,          \-        \        \*        4      ,          \        P                  ,          \        \	        \        4      ,          \        P                  ,          ,           \        \	        \*        4      ,          \        P                  ,          ,           8X  g   Q hR# )c                       \        \        4      # N)r   r    r<   r:   <lambda>,test_multivariate_variance.<locals>.<lambda>Y   s    x{r<   N)r   r	   r   r   r   r,   r   r.   r4   r   r-   r/   r0   r1   r   r   r2   r   r   r   r3   r   r   r7   s    r:   test_multivariate_variancerD   X   s   
:*+A;D8A;3."333333;;=Jq!,,,,ACC=D8ACC=7N133$777777;;=Jq!,,,,A;D8A;3."333333::!Q99>>99>>dN++++AaC=D>!A#&&&&;;=AnQ//3333dN++++::!QAaCE?D;;=AaCq 11!##5acc9999BrE?D;;=D   BrE"HRK D99Q<RR 0000;;=D   AaC!A#ID;;=AaC 5a ;;ACC?nQ''+,./q0A.A!##.EF F F Fr<   c                  :   \        \        R  4       \        \        R 4       \        \        P                  \
        P                  4      p V P                  R8X  g   Q hV P                  4       \        ^^4      8X  g   Q h\        \        \
        4      p V \        \        \
        4      u;8X  d   \        \        \
        4      8X  g   Q h Q hV P                  4       \        \        \        4      8X  g   Q hV P                  \        \        38X  g   Q hV P                  \        8X  g   Q hV P                  \        8X  g   Q h\        V \        4      '       g   Q h\        \        \        ,          \        ,           \
        4      p V P                  4       \        \        \        4      8X  g   Q h\        \        \         4      p \        V \        4      '       g   Q hV P                  4       V 8X  g   Q h\        \        \        4      p \        V \        4      '       g   Q hV P                  4       \#        \        4      8X  g   Q h\        \        \         ,           \$        4      p \        V \        4      '       g   Q hV P                  4       \        \        \$        4      \        \         \$        4      ,           8X  g   Q h\        \        \        ,          \         4      p \        V \        4      '       g   Q hV P                  4       \        \        \        \         4      ,          8X  g   Q h\        \        \&        \         ,          4      p \        V \        4      '       g   Q hV P                  4       \        \        \         4      \&        P                  ,          8X  g   Q h\        \        \        ,          \        ,           \&        P                  \         ,          \
        ,           4      p \        V \        4      '       g   Q hV P                  4       \        \        \        \         4      ,          \&        ,          8X  g   Q h\        \        \        ,          \&        \         ,          ,           \        ,           \(        P                  \$        ,          \*        P                  \,        ,          ,           \
        ,           4      p \        V \        4      '       g   Q hV P                  4       \        \        \        \,        4      ,          \*        ,          \        \        \        \$        4      ,          \(        ,          ,           \&        \        \         \,        4      ,          \*        ,          ,           \&        \        \         \$        4      ,          \(        ,          ,           8X  g   Q hR# )c                  >    \        \        \        P                  4      # r?   )r   r   r   r4   r@   r<   r:   rA   3test_multivariate_crosscovariance.<locals>.<lambda>~   s    z!QSS1r<   c                  *    \        \        \        4      # r?   )r   r   r   r@   r<   r:   rA   rG      s    z!Q/r<   N)r"   r"   )r   r	   r   r   r4   r   r-   r,   r   r   r.   r/   r0   r1   r   r   r   r   r   r   r   r   r   rC   s    r:   !test_multivariate_crosscovariancerI   }   s   
:12
:/0 acc133D::;;=Jq!,,,,aD:a#B'<Q'BBBBBB;;=Jq!,,,,::!Q99>>99>>d12222acAgq!D;;=Jq!,,,,aDd12222;;=D   aDd12222;;=N1----a!eQDd12222;;=1!Q7:OPQST:UUUUUac1Dd12222;;=A3Aq99999a1Dd12222;;=1!Q7;;;;acAgqss1uqy)Dd12222;;=A3Aq99!;;;;acAaCi!mQSSUQSSU]Q%67Dd12222;;=A3Aq99!;a@UVWYZ@[>[\]>]]
!!Q'
'
)*,-.CAq.I,I!,KL L L Lr<   N),sympy.statsr   r   r   r   sympy.testing.pytestr   sympy.core.symbolr   sympy.matrices.exceptionsr	   sympy.matrices.denser
   "sympy.matrices.expressions.matexprr   "sympy.matrices.expressions.specialr   sympy.stats.rvr   -sympy.stats.symbolic_multivariate_probabilityr   r   r   r6   r.   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r2   r;   rD   rI   r@   r<   r:   <module>rS      sM   A A ' % 0 ' ; 9 -C C u~1aaaaaa$1$1sAq!sAq!sAq!sAq!sAq!a#	!Q	&Aq
!!"QK 
,T^#FJ/Lr<   