You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
How to calculate the coefficient related to the expression of the krawtchouk moments
3 views (last 30 days)
Show older comments
Hello I need to calculate this term

using this formulate

Where 2F1 in matlab is the hypergeometric function
Any answer can help me I'm stack with this problem 2 weeks please help
14 Comments
Torsten
on 24 Mar 2016
It's very unusual that 1/p instead of x is the independent variable in the hypergeometric function. Are you sure your notation of 2F1 is the usual MATLAB notation used under
?
Best wishes
Torsten.
jenny jenny
on 24 Mar 2016
Thanks Torsen for your comment Yes I'm sure It's the hypergemetric function and I need to calculate ak,n,p like I mentionned in the comment :
jenny jenny
on 24 Mar 2016
Thank you so mutch Toresten But I don't understand how can that help me to calculate

jenny jenny
on 24 Mar 2016
Edited: Walter Roberson
on 24 Mar 2016
thank you Torsten for my case I have
- N=20 p=0.5 n=0
- N=20 p=0.5 n=1
- N=20 p=0.5 n=2
- N=20 p=0.5 n=3
For the value of x I 're now what value I affected to x :(
Torsten
on 24 Mar 2016
You got it ?
If you enter
the result is
a_0,3,0.5,20 = 1
a_1,3,0.5,20 = -0.333918
a_2,3,0.5,20 = 0.0350877
a_3,3,0.5,20 = -0.00116959
I hope you receive the same results in MATLAB, too, using the taylor() command.
Best wishes
Torsten.
Torsten
on 24 Mar 2016
I can't see your uploaded file. Better attach it here using the "Attach File" button.
Best wishes
Torsten.
Torsten
on 24 Mar 2016
But I already gave you the correct code:
syms x
taylor(hypergeom([-3, -x], [-20], 2),x)
Best wishes
Torsten.
Torsten
on 24 Mar 2016
Then I don't see another way as to copy the results from MATHEMATICA.
Best wishes
Torsten.
jenny jenny
on 24 Mar 2016
Thanks a lot Toreson I think this is the correct answer But I have this warning in matlab I don't understand why but I'm appricate your time and your answer thank you so mutch
Answers (1)
Walter Roberson
on 23 Mar 2016
hypergeom([-n, -x], [-N], 1/p)
Just like when you asked before; see http://www.mathworks.com/matlabcentral/answers/274492-calculate-the-krawtchouk-moments-invariants#comment_351830
5 Comments
jenny jenny
on 24 Mar 2016
Edited: jenny jenny
on 24 Mar 2016
thanks for your answer But what I need is to calculate

where
1) n=0 and (k=0 k=1 k=2 k=3)
2) n=1 and (k=0 k=1 k=2 k=3)
3) n=2 and (k=0 k=1 k=2 k=3)
4) n=3 and (k=0 k=1 k=2 k=3)
and p=0.5
my problem is about how to determinate the value of

using

Walter Roberson
on 24 Mar 2016
Insufficient information about your notation. How is "a subscript k comma n comma p" defined?
On the left hand side you have a finite series of low order. On the right hand side you have something that is defined by an infinite summation. Clearly they cannot be defined by the taylor expansion of hypergeometric, as that would be a finite series that could at best approximate the hypergeometric.
jenny jenny
on 24 Mar 2016
thank you so much for your answer I well use ak,n,p to calculate an other term all I have is this information (eaglity with the hypergeom) in the article they say that I use this egality to calculate ak,n,p please help :'( :'( what about the comment of Torsten
jenny jenny
on 25 Mar 2016
hello every body in a book of informatique I have find this information it's correcte

were


See Also
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)

