Write a program which computes the posterior probability

Assignment Help Other Subject
Reference no: EM132346703

Part I: Bayesian program induction

Write a program which computes the posterior probability that any given set of strings (e.g., aab, bbaa, aaaaab) was generated by Program 1 versus Program 2. Here each candidate program is represented by a probabilistic context-free grammar. Write your code in such a way that it can be easily extended to handle a larger space of potential programs. Test whether your code is working and be prepared demonstrate and explain the result.

1. P(Program 1)=0.7

2. P(Program 2)=0.3

3. Program 1:

4. P(S-->aSb)=0.5

5. P(S-->bSa)=0.2

6. P(S-->a)=0.1

7. P(S-->b)=0.2

8. Program 2:

9. theta ~ Beta(0.1,0.1)

10. P(S-->Xa)=theta

11. P(S-->bY)=1-theta

12. P(Y-->aY)=0.4

13. P(Y-->a)=0.6

14. P(X-->Xb)=0.2

15. P(X-->b)=0.8

Hint: If you do not already have a favorite probabilistic program induction framework, you can use WebPPL.

Part II: Inducing decision rules from demonstrations

In the Mouselab paradigm (Payne, Bettman, & Johnson, 1988) for studying multi-alternative risky choice participants repeatedly choose between n gambles based on a payoff matrix that specifies how much each gamble will pay depend on which of the k possible outcomes will occur. The probabilities of the k possible outcomes are shown in the first column of the payoff matrix and the payoffs of the n gambles are shown in columns 2 to n+1. Critically, the entries of the payoff matrix are initially concealed from the participant; to uncover the payoff of Gamble g in the event of outcome the participant has to click on the corresponding cell of the payoff matrix as illustrated in Figure 1 (attached).

Previous research has found that people use different decision strategies in this paradigm. One of these decision rules is the Take-The-Best heuristic (TTB). TTB inspects only the payoffs for the most probably outcome (e.g., BROWN in the example show in Figure 1) and then chooses the gamble whose payoff in the event of the most probable outcome is highest. Another strategy that people have been found to use is called "Satisficing" (SAT). Satisficing starts by inspecting all payoffs of the first gamble. If all of them are larger than its aspiration level (e.g., $0.15) then it selects that gamble. Otherwise, it inspects all payoffs of the second gamble, compares their minimum to its aspiration level and so on. A third strategy that people often use is Satisficing-Take-The-Best (SAT-TTB). SAT-TTB is like TTB except that it stops inspecting payoffs as soon as it finds a single payoff that is above its aspiration level (e.g., $0.15).

The Mouselab paradigm records the sequence of clicks that the participant makes, and this sequence of clicks, in turn, reveals the participants decision-making strategy. Figure 2 (attached) illustrates the sequence of clicks that the SAT-TTB strategy generated in one example problem. In a decision-making experiment participants make a series of decisions and the payoffs and probabilities are different every time.

Tasks:

a) Express the TTB, SAT, and SAT-TTB heuristics as rules that can be used to generate the corresponding click sequences.

b) Formulate a grammar for decision rules from which the decision rules you formulated can be derived as sentences.

c) Use the decision rules you formulated in part a) to generate click sequences for a Mouselab paradigm with 5 gambles and 4 outcomes.

d) Develop a method that takes in the grammar you formulated and the click sequences you generated with one of the rules and returns a simple decision rule that is consistent with those click sequences.

References - Payne, J. W., Bettman, J. R., & Johnson, E. J. (1988). Adaptive strategy selection in decision making. Journal of Experimental Psychology: Learning, Memory, and Cognition, 14(3), 534.

Attachment:- Assignment File.rar

Reference no: EM132346703

Questions Cloud

Most development in business ethics : In each of the last five decades i business ethics, which decade saw the most development in business ethics? why? and which decade saw the most ethical dilemma
We have been talking about free market capitalism : We have been talking about free market capitalism, which is about government NOT being involved in business activity in any way
Effectiveness of a marketing campaign : Which term describes the service used by researchers in an attempt to provide an overall assessment of the effectiveness of a marketing campaign across multiple
Use of health services but behavior : Can the Behavioral Model of Health Care Utilization be used to explain not only the use of health services but behavior? Explain your response
Write a program which computes the posterior probability : Write a program which computes the posterior probability that any given set of strings (e.g., aab, bbaa, aaaaab) was generated by Program 1 versus Program 2
Institute of business ethics : The Institute of Business Ethics has identified three simple ethical tests to use for a business decision, please name and explain them?
Strategic marketing plan : What are the best ways to go about writing a strategic marketing plan?
Higher education for emergency service workers : In your opinion, is there a need to require some form of higher education for emergency service workers, and if so, at what point of their career?
Evaluate david hume view regarding art criticism : Explain the connections between pleasure, contemplation, and judgment in aesthetic appreciation. Evaluate David Hume's view regarding art criticism.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd