The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
54 views

conditional expectation doesn't work with SmoothKernelDistribution

I'm trying to calculate a conditional expectation E[ x | x > a ], where the distribution of x is inferred from a finite ...
0
votes
2answers
47 views

Constructing a table from a constraint on another table

I have a 1000X6 table, where in each row the first three columns are dependent on the second three. I then make smaller tables of 1000X2 from these first three columns and basically ...
1
vote
2answers
107 views

How to select elements from a list by condition?

Considering I have a list: F = {f1, f2, f3, f4} I want to perform exponent on the list F = Power[#, 2]& /@ F Now I ...
1
vote
1answer
192 views

solve recursion equation with condition

How can I find $f(x)$ in terms of $x$ in the following equation? $ -k\, x \,f(x) + k \, (x + 1)\, f(x + 1) - r \, f(x) + r\, f(x - 1) =0$ $r$ and $k$ are constants and $f(x)$ should satisfy: ...
1
vote
1answer
120 views

Generate conditions seems to not work [closed]

I am trying to compute the following integral Integrate[E^(I*k*Omega*t), {t,0,T}, GenerateConditions->True] for which Mathematica returns ...
0
votes
2answers
533 views

Evaluate conditional expression

I solved an integral and get a conditional expression as the result. The conditions are quite heavy but if I use Assumptions within my ...
4
votes
2answers
165 views

Why Refine does not simplify Cos[2*Pi*FractionalPart[1/2*(i + j + k)]] to $(-1)^{i+j+k}$?

I am obtaining in Mathematica: Cos[2*Pi*FractionalPart[1/2*(i + j + k)]] We know that for $i, j, k$ being positive integers this expression after simplification ...
0
votes
1answer
150 views

How to use ParametricPlot Wih Conditions (or similar)

I´m analizyng the game "Battle of the Buddies" similar to "Prisioner´s Dilenma" All works fine, BUT... I want to draw in red the point whose coordinates are less than the coords of a strategy. ...
0
votes
1answer
143 views

Start animation after choosing of initial values without Animate

I want to simply set some parameters with sliders and click a button to start animation. I know that I can manage this with Animate and Manipulate, but my animation is written like in this post, ...
0
votes
2answers
253 views

Conditional Table

I have following : SeedRandom[2] Table[Table[RandomInteger[100, {100, 10}][[r, s]] == x[r + s], {r, 1, 10}], {s,1,10}] How can I set condition inside Tables?Such ...
0
votes
1answer
240 views

How to define a function with different types of arguments by setting conditions on function's domain?

I need help in order to properly define a function of $4$ variables. Given that: ...
2
votes
2answers
145 views

Conditioned Probability Task

I have this task with two questions I would like to compute in Mathematica. Suppose a pair of random variables $(X, Y)$ has a equal distribution on the following 7 points: $\begin{matrix} ...
10
votes
5answers
428 views

ListPlot under conditions

I have a data file containing several columns and thousands lines of data. Below I present a small portion of it, in order to express my issue: ...
0
votes
0answers
261 views

Simultaneous Equation Solving Under Nonnegative and Bounding Conditions

I have nonlinear equations to solve parametrically; ...
0
votes
2answers
74 views

Implementation of a condition in a Function

I have defined that stoptime {5, 2, 10, 2, 1, 11, 11, 1, 5, 11} and have the following function pvcosts = (-5/1.05^#) &[stoptime] Now I want that everytime "stoptime" is 11, the function gets ...
4
votes
2answers
247 views

Extracting data from a table under conditions

I have a very large table with two columns. Let's say the name of first column is E and the name of the second is P. How can I get the E values when P = 0.
0
votes
0answers
50 views

Else branch of If expression doesn't print [duplicate]

Possible Duplicate: Evaluating an If condition to yield True/False I am trying to print 1 when a is found and ...
2
votes
5answers
428 views

How to leave function unevaluated programmatically?

Is it possible to write a function in such manner, that it can be either evaluated or left unevaluated? This is a general question. Sample below is just a sample. No need to find solution for this ...
3
votes
1answer
369 views

How to implement Condition programmatically?

I am writing my own symbolic functions with custom symbolic properties. So often I wish to introduce some automatic simplifications or evaluations, which return the same head as it's argument. This ...
3
votes
3answers
211 views

How to set a function as a parameter?

In case I want to know whether a given function $f(t)$ have some property, I tried to write something like this: ...
4
votes
1answer
115 views

NExpectation not up to expectations with Boole or Conditioned

Context I am interested in computing numerically the number of extrema at a given threshold for random fields. These numbers are expectations of MultinormalDistributions. Problem This integral ...